Managing Debian packages with apt-get and apt-cache

DEBIANUBUNTULINUXLPIC1-101DPKGAPT

2/6/2026

Look at the file with repository information

$ cat /etc/apt/sources.list

How to install, update, and remove packages

$ sudo apt-get update

$ sudo apt-get install procinfo

$ sudo apt-get remove procinfo

Determine whether a package is installed

$ dpkg -s procinfo

View a package's dependencies

$ apt-cache depends procinfo