Debian

apt and dpkg โ†“

list files in package โ†“

dpkg-query -L package
# or if not installed
apt-file list package
apt-cache search string
# alias 'search' in stretchbang

aptitude search '?and(~i, ~Araring-backports)'
# list installed with backport upgrades

aptitude search '~Abackports ?not(~S ~i ~Abackports)'
# list all available backport packages (installed or not)

version โ†“

apt-cache policy packname
# or just
apt-cache policy
# some sort of repository status

update / upgrade โ†“

sudo apt update && sudo apt dist-upgrade
# alias 'up' in stretchbang

install from backports โ†“

sudo apt install -t stretch-backports packname

install with no recommends โ†“

sudo apt install --no-install-recommends packname
# only the main dependencies (packages in the Depends field) are installed.

clean stuff โ†“

sudo apt autoremove # removes unused deps
sudo apt autoclean  # clears downloaded cache

DontBreakDebian โ†“

https://wiki.debian.org/DontBreakDebian

SysInfo โ†“

ram โ†“

sudo /usr/sbin/dmidecode --type memory

general โ†“

inxi -F -c 0