Skip to content

Instantly share code, notes, and snippets.

Last active March 6, 2021 09:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?


dpkg name format


List 32-bit packages

dpkg --list | grep i386

What version is currently installed for [package]?

dpkg --status [package]

[file] is installed by which [package]?

dpkg --search [file]

What files are installed with [package]?

dpkg --listfiles [package]

Upgrade packages

apt-get upgrade never installs new packages and never remove existing packages.

apt upgrade never removes existing packages but might install new packages. It also upgrades kernel packages and kernal image if any.

apt full-upgrade upgrades packages and kernel packages. It might install new packages or remove existing ones if it is necessary for the ugrade.

Key management

apt-key add [pgp-key]

apt-key del [id]


List WiFi networks within range

nmcli device wifi list

List managed network connections

nmcli connection show

Connect to WiFi network

nmcli device wifi connect [ssid] password [password]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment