Home DPKG Get Selections
Post
Cancel

DPKG Get Selections

Quick way to get a copy of your debain packages and reinstall

  • Export installed packages
1
dpkg --get-selections > dpkg.list
  • Update the cache
1
sudo apt update
  • Install dselect
1
sudo apt install dselect
  • Update dselect
1
sudo dselect update
  • Set selections
1
sudo dpkg --set-selections < dpkg.list
  • Install from dpkg.list
1
sudo apt-get dselect-upgrade
This post is licensed under CC BY 4.0 by the author.