Ubuntu dpkg useful one liners

From richud.com
Jump to: navigation, search

Just a little cheat sheet for dpkg

List files in package

$ dpkg -L remmina

See installed packages

$ dpkg --get-selections | head
account-plugin-aim				install
account-plugin-facebook				install
account-plugin-flickr				install
account-plugin-google				install
account-plugin-icons				install
account-plugin-identica				install
account-plugin-jabber				install
account-plugin-salut				install
account-plugin-twitter				install

Install packages from machine A to machine B


dpkg --get-selections > packages.txt

copy packages.txt to machine B


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