In this post, we will see installation methods used in Linux distributions
When you use Linux, there are be different methods of software installation. Some of the methods I will try to cover in this post Before we learn about the package managers, let's see what they do for us
- Package managers help us to install, uninstall Linux software from the trusted repositories
- They also help us to fetch dependencies required to install the current package to install in a single command
- They help to standardise the locations and configuration files at a fixed location decided by the Linux distribution
Using package managers
We have something called Debian Package Management System
which is base for most of the Debian based Linux distributions systems. Under this, we use different package managers
Apt (Advanced packaging tool)
Some of the commands and its usage are as follows
Command | Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sudo apt update | Update package database | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sudo apt upgrade | Upgrade all system packages | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sudo apt update && <br>sudo apt upgrade -y | Update and Upgrade in single command | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sudo apt install <package_name | Install specifid package | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sudo apt remove | Remove package | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sudo apt purge | Removes package including its the configuration files | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
`sudo apt search Search for package information in package database | `sudo apt show <package_name>`` | Shows the contents of the package | sudo apt list --upgradeable Shows all packages for which updates are available | sudo apt list --installed Shows list of installed packages | sudo apt autoremove Remove useless packages which got installed with other softwares but now not needed | Aptitude Package Manager this works similar like apt package manager
Next comes RPM (Red Hat Package Manager)Here we have YUM (Yellowdog Updater, Modified) which is now updated with DNF – Dandified Yum
Pacman Package Manager Arch Linuxpacman is used in arch based distributions like manjaro linux Common Commands
|