Date created: 01/21/20 08:50:16. Last modified: 01/21/20 08:50:16

'apt' & 'dpkg' Notes

List installed packages:

apt list --installed

or

aptitude search '~i!~M'

or

dpkg --get-selections | grep -v deinstall

 

Export and install a list of packages:

dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

sudo dpkg --set-selections < ~/Desktop/packages && sudo apt-get -u dselect-upgrade