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

Re: Question about get-selections



Boyd Stephen Smith Jr. <bss <at> iguanasuicide.net> writes:

> 
> On Thursday 26 March 2009 22:09:28 Paul E Condon wrote:
> >Your suggestion does raise in interesting issue: given a set of
> >installed packages in a --get-selections file, and given that the
> >dependency information is available in the packages, what is the
> >minimum set of install commands to aptitude that will reconsturct the
> >installation from scratch? 

That issue still interests me, as far as a final and official
solution is concerned.

> To save the state of the Debian packages installed:
> dpkg --get-selections | \
> 	awk '$2 = "install"' > installed_package_selections
> aptitude search '~i~M' | awk '{print $3}' > auto_installed_packages

I'd rather do 
aptitude -F '%p' search '~i~M' > auto_installed_packages
Your command does not work if the package state is e.g. 'i A'
(note the space)

And as I said: please keep me posted on this :)


Reply to: