What is YUM and what is the use of YUM?

While installing the package using rpm command it asks for the dependencies. To install the packages along with their dependencies we need to configure yum.

 

How to Configure YUM?

1. Check for the packages related to YUM has installed or not

[root@sys2 ~]# rpm -qa | grep yum*
PackageKit-yum-0.5.8-21.el6.x86_64
keyutils-libs-1.4-4.el6.x86_64
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-security-1.1.30-14.el6.noarch
PackageKit-yum-plugin-0.5.8-21.el6.x86_64
yum-rhn-plugin-0.9.1-43.el6.noarch
yum-3.2.29-40.el6.noarch
yum-utils-1.1.30-14.el6.noarch
keyutils-1.4-4.el6.x86_64
ibus-sayura-1.2.99.20100209-3.el6.x86_64

 

The packages required to configure YUM are

libxml2-python*

Deltarpm*

Python-deltarpm*

Createrepo*

 

2. Install the above packages to configure YUM.

[root@sys1 Packages]# rpm -ivh libxml2-python*
warning: libxml2-python-2.7.6-8.el6_3.4.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
package libxml2-python-2.7.6-8.el6_3.4.x86_64 is already installed
[root@sys1 Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signa ture, key ID fd431d51: NOKEY
    Preparing... ########################################### [100%]
     1:deltarpm ########################################### [100%]
[root@sys1 Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
               Preparing... ########################################### [100%]
     1:python-deltarpm ########################################### [100%]
[root@sys2 Packages]# rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm
warning: createrepo-0.9.9-17.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
      Preparing... ########################################### [100%]
     1:createrepo ########################################### [100%]

 

3. Check whether the packages are installed or not.

[root@sys1 Packages]# rpm -qa deltarpm
deltarpm-3.5-0.5.20090913git.el6.x86_64
[root@sys1 Packages]# rpm -qa python-deltarpm
python-deltarpm-3.5-0.5.20090913git.el6.x86_64
[root@sys1 Packages]# rpm -qa createrepo
createrepo-0.9.9-17.el6.noarch

 

Mount the cdrom to /mnt directory by using the following command.

[root@sys1 /]# mount /dev/cdrom /mnt

 

4. Copy all packages to the /repository which is already created by us using the following command.

Maintain the 4 GB disk space.

[root@sys1 /]# cp -ar /mnt function selectElementText(el){ var range = document.createRange(); range.selectNodeContents(el); var selection = window.getSelection(); selection.removeAllRanges(); selection.addRange(range); } var field = document.getElementById('textcopy'); selectElementText(field); var succeeded; try { succeeded = document.execCommand("copy"); } catch (e) { succeeded = false; } var tooltip,hidetooltiptimer; if (succeeded) { tooltip = document.createElement('div'); tooltip.style.cssText = 'position:absolute; background:black; color:white; padding:4px;z-index:10000;' + 'border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);' + 'opacity:0;transition:opacity 0.3s'; tooltip.innerHTML = 'Copied!'; document.body.appendChild(tooltip); showtooltip(evnt); } function showtooltip(evnt){ var evt = evnt || event; clearTimeout(hidetooltiptimer); tooltip.style.left = evt.pageX - 10 + 'px'; tooltip.style.top = evt.pageY + 15 + 'px'; tooltip.style.opacity = 1; hidetooltiptimer = setTimeout(function(){ tooltip.style.opacity = 0; }, 2000) } }); }