Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

List of the most useful Ubuntu administration commands.

Package Management

List All Installed Packages

See exactly what is installed in your system,

Code Block
dpkg --get-selections > installed-software.txt

The same list can also be used to install the same packages on another machine... Note I have not tested this command myself yet.

Code Block
dpkg --set-selections < installed-software.txt
dselect

Determine Package Program Belongs To

Find out what packages if any use the specified folder,

Code Block
languagebash
dpkg -S "/etc/ssl/certs"
openssl, ca-certificates: /etc/ssl/certs
Note

The package lookup will only work against the original binary. If it does not appear to work, check if the file you are referencing is actually a symbolic link and follow the links to the real binary file.

List all files relate to a package,

...