Examples: Installing and Updating Packages with Apt

Examples: Installing and Updating Packages with Apt

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

List installed packages

Use apt list --list installed, optionally using grep to limit the search

$ apt list --installed | grep qua
pngquant/focal,now 2.12.2-1 amd64 [installed]
quarto/now 1.3.433 amd64 [installed,local]

Install .deb package

sudo dpkg -i my-file.deb

Uninstall .deb package

To find out the package name, get package from .deb file

Run $ sudo apt remove my-package-name where my-package-name is the name of the package installed by the .deb file.

Get package name from .deb file

Run $ dpkg --info my_deb_file.deb

$ dpkg --info quarto-1.3.433-linux-amd64.deb  | grep Package:
 Package: Quarto

Dialogue & Discussion