I have done more experiments and have come up with these notes for now.
#BACKUP
dpkg --get-selections | awk '$2 == "install"' > packagesNG_installed
aptitude -F '%p' search '~i~M' > packagesNG_autoinstalled
debconf-get-selections | grep -Ev '^[[:space:]]*(#|$)' > packagesNG_debconf
# RESTORE
# ma
Boyd Stephen Smith Jr. iguanasuicide.net> writes:
> In post.gmane.org>, J.M.Roth wrote:
> >Now... I've been playing a little bit with this.
> >
> >First, I get some
> >warning: Unknown type error, skipping line
> >using debconf-set-selections < ...
>
> Hrm, that's somewhat troubling. It won't
Boyd Stephen Smith Jr. iguanasuicide.net> writes:
> >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)
>
> Actually, it only works in that case. Of course, because of the search
> terms
Boyd Stephen Smith Jr. 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 pack
4 matches
Mail list logo