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

Re: keeping package selection with new install



Rick Thomas wrote:
> This is great.  Thanks!
>
> One question:  This seems to loose the "automatically installed"
> information kept by aptitude.  Is there a way to do it that preserves
> aptitude's "automatic" attribute?

Yes. Run
$ aptitude search '~i!~M'

to get a list of the manually installed packages. Then install these
packages again, and they will pull whatever is necessary and mark those
dependencies as automatically installed.

The list generated by aptitude that way is not ready for use in
reinstallation (because of the status and description), but you can get
only a list of names with
$ aptitude search '~i!~M' | awk '{print $2}'

(and other dozens of ways, probably more efficient ;-) ).

-- 
The world is coming to an end ... SAVE YOUR BUFFERS!!!

Eduardo M KALINOWSKI
ekalin@gmail.com
http://move.to/hpkb


Reply to: