automate/001_apt_set-selections.sh

10 lines
446 B
Bash
Executable File

#!/usr/bin/env bash
# apply the result of 001_apt-get-selections.sh from the livecd (install your prefered programs beforehand)
## Restore:
dpkg --set-selections < /var/tmp/packages.list
debconf-set-selections /var/tmp/debconf-settings.list
update-alternatives --set-selections < /var/tmp/alternatives-settings.list
cat /var/tmp/pkgs_auto.lst | xargs apt-mark auto
cat /var/tmp/pkgs_manual.lst | xargs apt-mark manual
apt-get autoremove