[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dependency based boot sequencing



On Tue, Sep 08, 2009 at 08:50:25PM -0700, Daniel Burrows wrote:
> On Wed, Sep 09, 2009 at 12:41:18AM +0900, Osamu Aoki <osamu@debian.org> was heard to say:
> > On Tue, Sep 08, 2009 at 07:54:24AM -0700, Daniel Burrows wrote:
> > > On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger <ckrogrr@frankensteinface.com> was heard to say:
> > > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and
> > > > smartpm.
> 
>   [snip]
> 
> > >   aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge
> > > 
> > >   ;-)
> > 
> > What is the advantage of above over
> > 
> >  aptitude purge '~c'
> > 
> > After all we use nice tool called aptitude :-)
> > 
> > Unless some --force option is used with dpkg, they do the same.
> 
>   True, but aptitude isn't actually doing any package management there
> (it could be run as a non-root user).  If you have something against it,
> I figured maybe just using it to generate a list of packages, to be
> processed later with an acceptable tool, might be more palatable.

I see your point.

Anyway, it is nice way to show how these --disable-columns -F '%p' are
used for scripting.  I tend to use interactive mode with "l". It was
refereshing to find these tricks for command line scripting in current
manpages.  Thanks.
 
Osamu

PS: I got lost since it should be something like

 $  aptitude --disable-columns -F '%p' search '~c' | sudo xargs dpkg --purge

to get dpkg to work as root while running aptitude in user mode.


Reply to: