Package Management Introduction
On any Linux platform we need a good packagement manager. Using Graphical Interface we can install, remove softwares.
There are many command line package managers, based on the linux distributions you may have any of the following package manager.
- dpkg - Debian Package Manager for debian system. Using dpkg you can install, remove, store and get information about .deb packages.
- apt - Advance packageing Tool using on Ubuntu and its derivatives like Link Mint etc
- aptitude - Used on Debian, you need to install it additionally and use it
- Synaptic Package Manager - Can be installed additionally and used its graphical package manager
- DNF – Dandified Yum Used on rpm based system, modern package manager on fedora and red hat based system.
- Pacman Package Manager – for Arch Linux and its deriatives
Lets see one apt package manager which is used on Ubuntu based system and how we can manage the packages using this manager.
Apt Package Manager
- Install package
sudo apt install vlc
- Find dependancy of package
sudo apt depends vlc
- Search for package
sudo apt search kazam
apt-cache search kazam
- Get details of the package
sudo apt show kazam
- Checking for broken packages
sudo apt --fix-missing update
- Install broken packages
sudo apt install -f
- Remove software package
sudo apt remove vlc
- Remove package and configuration
apt-get --purge remove vlc
- Remove no longer needed packages
sudo apt-get autoremove
- Update and Upgrade the system
You will get have similar operations in other package management systems also.
Read more about other package management systems