Subject: Restoring packages from backup
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 09/26/2002 05:27:45
On Debian Linux one can do backups like this:
dpkg --get-selections "*" >package_states
and then include package_states in your backup. This saves a list
describing the installation status of each Debian package.
After installing the base Debian system, setting up the network, etc, do
dpkg --set-selections <package_states
apt-get upgrade dist-upgrade
This sets the list of installed packages to what you had before the crash.
apt-get will then automagically fetch and install these packages in the
right order, so you don't need to have backed up the actual packages
Is there a way to get a similar backup/restore scheme happening in NetBSD?