Debian install the same packages to another PC
mouse 136 · person cloud · link
Last update
2023-11-16
2023
11-16
«install manually installed packages»
1
2
3
4
5
6
# backup (list of manually installed packages)
apt-mark showmanual > packages.txt

# restore
apt-get -s install -- `cat packages.txt | grep -v "^#" | tr "\n" ' '` 2>&1
aptitude -s --visual-preview install -- `cat packages.txt | grep -v "^#" | tr "\n" ' '`