Yum (Yellowdog Updater Modified) is an interactive, automated update programme which tin hold upwards used for maintaining systems using rpm past times super users (root). It is used to check, install, take or update to the latest version of a packet or grouping of packages piece ensuring that all dependencies are satisfied. Login equally the rootage user to install in addition to update the system.
WARNING! yum ascendance alone plant amongst RHEL / CentOS Linux version 5.x or above. For RHEL 4.x in addition to older version role up2date command.
Register my organization amongst RHN
To register your organization amongst RHN type the next ascendance in addition to merely follow on covert instructions (CentOS user skip to side past times side step):
rhn_register
- Viewing yum options:
yum -h
- List all installed packages:
rpm -qa yum listing installed yum listing |more
- Search for packages past times refer (e.g. Search httpd in addition to all matching perl packages):
yum listing httpd yum listing perl*
- Check if a packet is installed (e.g. httpd):
rpm -qa | grep httpd* yum listing installed httpd
- Get detailed packet descriptions (e.g. description of httpd package):
yum information httpd
- View packet dependencies. Most packages that come upwards amongst a Linux distribution comprise 1 or to a greater extent than dependencies. (e.g. httpd has openssl, zlib or PHP package)
yum deplist httpd
- Check for novel packet versions:
yum listing updates yum check-update
- Update all of the outdated packages to newest versions.
yum update
- Check in addition to update specified packet (e.g. httpd):
yum update httpd
- Install specified packages [ RPM(s) ] (e.g. httpd & mssql):
yum install httpd mssql
- Remove / Uninstall the specified packages [ RPM(s) ] (e.g. httpd)
yum take httpd
- Display the listing of available packages:
yum listing all
- Display listing of grouping software:
yum grouplist
Output volition listing a) Installed Groups in addition to b) Available Groups - Install all the default packages past times grouping (e.g. Install all 'Development Tools' grouping packages):
yum groupinstall "Development Tools"
- Update all the default packages past times grouping (e.g. Update all 'Development Tools' grouping packages):
yum groupupdate "Development Tools"
- Remove all packages inwards a grouping (e.g. Remove all 'Development Tools' grouping packages):
yum groupremove "Development Tools"
- Install especial architecture packet (e.g. If yous are using 64 flake RHEL version it is possible to install 32 packages:
yum install {package-name}.{architecture} yum install mysql.i386
- Display packages non installed via official RHN subscribed channels or repositories: (e.g. dag on CentOS)
yum listing extras
- Search all packages to detect the 1 which holds the specified file e.g. if yous are trying to figure out what yous ask to install to role bunzip2, type:
yum provides bunzip2 yum whatprovides bunzip2
or detect out what provides the /etc/yum.conf file:
yum provides /etc/yum.conf yum whatprovides /etc/yum.conf
Sample output:
... yum.noarch 2.4.0-0.fc4 installed Matched from: /etc/yum.conf
This example shows that /etc/yum.conf is business office of the yum.noarch package. - You tin role same ascendance to listing packages that satisfy dependencies:
yum whatprovides {dependency-1} {dependency-2}
- Cleaning upwards the yum cache. The yum packet managing director maintains a cache of headers in addition to files inwards /var/cache/yum. This cache tin grow rather large over time, in addition to tin hold upwards cleaned amongst the yum "clean" option:
yum build clean all
- Refer to the yum ascendance human page for to a greater extent than information:
man yum