Skip to content

12_Package management

Davood Dorostkar edited this page Dec 17, 2023 · 5 revisions

Ubuntu

working config for /etc/apt/sources.list:

deb http://ir.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://ir.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://ir.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://ir.archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse

Debian

working config for /etc/apt/sources.list:

deb http://debian.asis.ai/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://debian.asis.ai/debian bullseye-updates main contrib non-free

Package Details

show its source repo

apt policy <package>

show all available packages

apt list

show all installed packages

apt list --installed

Check if package installed

apt list <package>

show minimal info (installed+not installed)

apt list -a <package>
Clone this wiki locally