Graduate Program KB

Package Management

Each Linux distro uses its own package management tool - Ubunutu uses apt for package management (advanced package tool) - Red Hat uses yum for package management

apt

apt is a package management tool used by Ubuntu. It is used to install, update, and remove packages.
Keep in mind that there are some old use cases that are still there for backwards compatibility.
This is because apt is essentially a combination of old other tools: apt-get, apt-update. apt-remove, apt-cache, etc.
For example: - apt-get is used to install, update, and remove packages - apt install is used to install sufficient now along with apt uninstall and apt update. Some more useful commands: - sudo apt autoremove is used to remove packages that were installed as dependencies but are no longer needed - sudo apt update is used to update the package list - sudo apt upgrade is used to upgrade the packages - sudo apt full-upgrade is used to upgrade the packages and remove any packages that are no longer needed

Snaps

Snaps are a new way of packaging applications. They are self-contained and can be installed on any Linux distro.
Were created for installing "untrusted" code.
Snaps are installed using the snap command. - snap install is used to install a snap - snap remove is used to remove a snap - snap list is used to list all the snaps installed on the system - snap find is used to search for a snap Snaps are more secure than apt. They also update automatically... this was intentional fior security reasons.

Return