> >    dpkg --get-selections > file  # save package settings.
> >    dpkg --set-selections < file  # set package settings.
> 
> Once you've done that, is there a way to simply tell the system to
> install, uninstall, upgrade, whatever, to exactly what the current
> package selection settings are?

Before backup:
dpkg --get-selections \* > file  # save all package settings

Restore:
apt-get update
dpkg --set-selections < file  # set package settings
apt-get dist-upgrade          # apt-get upgrade doesn't install not
                              # installed packages

Stony

Reply via email to