Skip to content

Instantly share code, notes, and snippets.

@karakays
Last active Mar 6, 2021
Embed
What would you like to do?

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