Package Manager is a tool (either CLI tool or GUI tool) that helps in managing the packages and software in an operating system. Package Manager provides services like Configuration, Installation, Removing/Uninstalling/Erasing of any kind of software packages. Mostly these tools are linked with online repositories where different software packages are stored related to the operating system. It is just like the Google Play Store in mobiles and Microsoft Store in Windows. But it is much easier to manage in these tools mostly based on Linux operating system. The above-mentioned name is also package management tools. Some are advance and structured and some are limited.
apt is a CLI package manager tool which after the apt-get and apt-cache but this tool is much more structured and advance. This tool has omitted the requirement to get and cache. This could perform all the tasks to get and cache as well as can perform some more advance and stable commands.
apt-get is a CLI package management tool. This tool is Debian based and used in different Debian based operating systems like Ubuntu, Kali Linux, etc. Even though both apt and apt-get tool is available in every Debian based os.
Using apt-get/apt command
1. To install a package.
apt-get install firefox OR apt install firefox
2. To remove a package.
apt-get remove firefox OR apt remove firefox
3. To remove a package along with its configuration files.
apt-get purge firefox OR apt purge firefox
4. Remove all the packages that are of no use.
apt-get autoremove OR apt autoremove
apt-cache is a CLI tool for searching the apt software packages. This tool is also used to get information about different packages.
1. To search for the package details.
apt-cache search firefox OR apt search firefox
2. To get in-depth package details.
apt-cache show firefox OR apt show firefox
apt-config is a cli tool to the configuration settings for different apt software packages. This helps in better understanding and implementing different configuration settings. This is mainly intended for shell scripting and debugging.
Mostly used properties.
shell - get configuration values via shell evaluation. dump - show the active configuration setting.
- apt-get command in Linux with Examples
- apt command in linux with examples
- How to speed up the downloading of packages using apt-fast in Ubuntu?
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference and Similarities between PHP and C
- Difference between Time Tracking and Time and Attendance Software
- Difference Between Single and Double Quotes in Shell Script and Linux
- Difference between ++*p, *p++ and *++p
- Difference Between DOS and Windows
- Difference between User Level thread and Kernel Level thread
- What’s difference between The Internet and The Web ?
- Difference between Priority Inversion and Priority Inheritance
- What’s difference between Linux and Android ?
- What’s difference between header files "stdio.h" and "stdlib.h" ?
- Difference between HTML and HTTP
- Difference between http:// and https://
- What's difference between MMU and MPU?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.