Linux has different flavours available in the market but can be classified into 2 major categories ie.
Distros based on Debian: eg. Ubuntu etc.
Distros based on RedHat: eg. Centos etc.
This have different package managers to install pre-compiled packages and libraries from the repositories.
Package manager used by Ubuntu and other distros is aptitude.
Package manager used by Centos and other distros is yum.
You can use these commands to install required packages from the repositories.
The examples below is to install apache server on the Linux using these package managers.
Ubuntu:
apt-get install apache2
Centos
yum install httpd
Please note that the packages may have different names based on the distros.
To remove a package that is installed you can use the commands
Ubuntu:
apt-get remove apache2
Centos
yum remove httpd
Hope this helps.
Naren
0 Comment(s)