How to use apt-get/apt command In Linux
1. To install a package.
apt-get install firefox
( or )
apt install firefox
- The following screenshot illustrates on installation of firefox on systems.
2. To remove a package.
apt-get remove firefox
( or )
apt remove firefox
- The following screenshot illustrates on uninstallation of firefox on systems.
3. To remove a package along with its configuration files.
apt-get purge firefox
( or )
apt purge firefox
- The following screenshot illustrates on removing of packages with its configuration files.
4. Remove all the packages that are of no use.
apt-get autoremove
( or )
apt autoremove
- The following screenshot illustrates on removing all the packages that are of no use.
Difference Between APT, APT-GET, APT-CACHE and APT-CONFIG
apt, apt-get, apt-cache, and apt-config lie in some specific roles within the Debian package management system. Apt (Advanced Package Tool) is a high-level interface for managing software packages combining the functionalities of apt-get and apt-cache. In this article, we discuss on each component and its play of distinct roles in Debian systems.
Table of Content
- What is Package manager?
- Using apt-get/apt command
- APT-CACHE
- APT-CONFIG
- What is the difference between apt cache and apt file?