Snippets

Francesco Facconi Clone packages from server to local machine

Created by Francesco Facconi
1
2
3
4
5
6
7
8
# I use this in a nightly cron job to have an updated list of my system's packages:

dpkg --get-selections > packages.txt

# Then on my local system I use this to sync the packages up manually:

sudo dpkg --set-selections < packages.txt
sudo apt-get dselect-upgrade

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.