APT vs APT-GET
Source: APT vs APT-GET What’s Difference from TutorialsPoint
APT-GET gives you more control over package management process, while APT is more automated and handles package dependencies for you.
APT is more compatible with newer versions of Debian-based distributions, while APT-GET may be more compatible with older versions of these distributions.
Another key difference between APT and APT-GET is way they handle package configuration files. When you install a package using APT-GET, it prompts you to configure package by asking you a series of questions. This can be useful if you need to customize package’s configuration to suit your needs. However, it can also be time-consuming and confusing for new users.
APT, on other hand, uses a “debconf” system to manage package configurations. “debconf” system automatically configures packages based on pre-set defaults, without requiring any input from user. This can make package installation process faster and more efficient, especially if you’re installing multiple packages at once.
Finally, APT and APT-GET also have different ways of handling package errors. APT is designed to handle errors more gracefully than APT-GET, and will often provide more helpful error messages that can help you diagnose and fix issue. APT-GET, on other hand, can sometimes give cryptic error messages that are difficult to understand.
Apt
Source: Chapter 8. The Debian package management tools
apt update
- To update the list of packages known by your system. This command should be executed regularly to update the package lists.
apt list –upgradable
- To list all packages for which newer versions are available
apt upgrade
- To upgrade all the packages on your system (without installing extra packages or removing packages)
apt full-upgrade
- To upgrade all the packages on your system, and, if needed for a package upgrade, installing extra packages or removing packages.
apt install foo
- To install the
foopackage and all its dependencies.
apt remove foo
- To remove the foo package from your system.
apt purge foo
- To remove the foo package and its configuration files from your system.
apt search word
- To find packages whose description contain
word.
apt show package
- To print the detailed information of a package
apt-cache depends package
- To print the packages a given package depends on.
apt-cache showpkg package
- To print detailed information on the versions available for a package and the packages that reverse-depends on it
