Debian Notes

Check OS version

Check OS, point release, etc. for Debian-ish distros:

head -n 99 /etc/{issue,debian_version,os-release}


The apt binary has shortcuts for commands like apt-get update, apt-cache show, etc.


# Get security updates
sudo apt update && sudo apt upgrade

# Find packages related to the regexp "emacs"
apt search emacs

# Show information about package "emacs"
apt show emacs

# Install Emacs
sudo apt install emacs25-nox