Skip to content

Instantly share code, notes, and snippets.

@tugrulyatagan
Created September 11, 2014 19:08
Show Gist options
  • Save tugrulyatagan/acec9bb17673c85e795c to your computer and use it in GitHub Desktop.
Save tugrulyatagan/acec9bb17673c85e795c to your computer and use it in GitHub Desktop.
migration
cp -r /etc/apt/preferences.d apt.preferences.d
cp /etc/apt/sources.list sources.list
update-alternatives --get-selections > alternatives.selection
dpkg --get-selections '*' > dpkg.selection
sudo debconf-get-selections > debconf.selection (sudo apt-get install debconf-utils)
# copy *.selecttion to new system
dselect update
sudo debconf-set-selections < debconf.selection
sudo update-alternatives --set-selections < alternatives.selection
sudo dpkg --set-selections < dpkg.selection
sudo apt-get -u dselect-upgrade # or dselect install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment