|
Package Management in CenOS |
|
|
|
|
Monday, 15 March 2010 |
|
To install a package in CentOS GNU/Linux use yum command.
For example to install Midnight Commander use: yum install mc
If we want to have rpm package management support we will install rpm with: yum install rpm
If we want to list all available to install packages (that can be installed but are not) on our system: yum list | less
To see installed packages on our system: yum list installed
Search for a package that contains mysql name:
yum search mysql
If we want which package provides a file we can use (next example shows to which package belongs /usr/bin/mc file):
yum provides /usr/bin/mc or: yum provides */mc
Other package management commands ----------------------------------------------- To check to which pachage a binary app belongs to we use: rpm -qf /sbin/mke2fs We will get: e2fsprogs-1.41.12-3.el6.x86_64
|
|
Last Updated ( Friday, 14 October 2011 )
|