Backup and restore the packages on a debian system
This is only a way to backup and restore installed packages on your system.
I use this when I change from workstation to have my trusted set of packages installed 😉
You might need to install dselect as it’s no longer part of a standard Debian install: apt-get install dselect
And then: dpkg --get-selections > selections
Install the new Debian system, copy the selections file and then: avail=`mktemp`
apt-cache dumpavail > "$avail"
dpkg --merge-avail "$avail"
rm -f "$avail"
dpkg --set-selections < selections
This entry was posted by Stas Zytkiewicz on August 9, 2017 at 12:06 pm, and is filed under Linux. Follow any responses to this post through RSS 2.0.
You can skip to the end and leave a response. Pinging is currently not allowed.