On Wed, Oct 01, 2008 at 08:29:41AM +0100, Bob Cox <[EMAIL PROTECTED]> was heard 
to say:
> > I know that aptitude gui interface can show all those obsolete packages 
> > by sections. my questions are:
> > 
> > - how can I tag all obsolete packages in a section, then remove them?
> > - how can I get such obsolete packages list on command line?

  [snip]

> To answer the first question, probably *something* like this:
> 
> for file in `aptitude search ~o | cut -b 5- | awk '{print $1}'`; do aptitude 
> remove $file; done
> 
> although I am sure there are neater, more elegant solutions.

  For instance, you could do

    $ aptitude remove "~o~sSECTION"

  or just push "-" on the header of the group if you're using the
curses interface.

  Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to