apt

How to List packages $ apt list

How to search packages $ apt search {pkgNamehere}

How to find info about packages $ apt show {pkgNamehere}
See policy of apt package $ apt list -a {pkgNameHere}

List all installed packages $ apt list –installed
List package dependency $ apt depends {pkgNameHere}

How do I performs recursive dependency listings similar to apt-cache?
$ apt rdepends {pkgNames}

How do I edit the source information file i.e. /etc/apt/sources.list?
$ sudo apt edit-sources

hold/unhold a package? apt hold {pkgName}, $ apt unhold {pkgName}

Fetch updates: $ sudo apt update To download package information from all configured sources

Apply package and security updates: $ sudo apt upgrade To upgrade all packages currently installed on the system

Simply type the following two commands to apply all security and package updates:
$ sudo apt update && sudo apt upgrade

To see the list of packages that can be upgraded on the system, enter:
$ apt list –upgradable

How to perform full system upgrade $ sudo apt full-upgrade

How to install a new packages $ sudo apt install {pkgNameHere}

How to remove a packages $ sudo apt remove {pkgNameHere}

The purge option to remove both package and config files $ sudo apt purge {pkgNameHere}

The autoremove option $ sudo apt autoremove
The autoremove option is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed as dependencies changed or the package(s) needing them were removed in the meantime.