Skip to content

Instantly share code, notes, and snippets.

@karakays
Last active March 6, 2021 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karakays/3463468135e400a90baf4c3f02db59bd to your computer and use it in GitHub Desktop.
Save karakays/3463468135e400a90baf4c3f02db59bd to your computer and use it in GitHub Desktop.

APT

dpkg name format

[name]_[version]-[revision]_[architecture].deb

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]

Connections

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]

Displays

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