Automated reinstall of software from package list
By jeltsch on Sun, 11/20/2016 - 08:32If I need to reinstall a Ubuntu/Debian-based Linux OS (or mirror a software selection to another machine), this is how it can be done. On the source machine:
su
dpkg --get-selections > ~/Package.list
cp -R /etc/apt/sources.list* ~/
apt-key exportall > ~/repository.keys
Then just copy the files to the target machine: