YUM Configuration
How to configure Yum utility to resolve dependencies of RPMs. (RED HAT 5.x or 6.x)
Configuration:
Perform all tasks using root user:
1. Install createrepo utility
Install following rpms if already not installed from root user.
#rpm -ivh deltarpm-3.5-0.5.20090913git.el6.ppc64.rpm
#rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.ppc64.rpm
#rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
OR If you are unable to find them then:
rpm -ivh yum-* --nodeps --force
rpm -ivh createrepo-* --nodeps --force
2. Copy all Packages from Linux DVD to local directory
For Example
#mkdir -R /redhat/packages
and copy all packages from dvd to above directory
and also copy the folder RPM-GPG-KEY-redhat-release to the above directory.
3. Copy also repomd.xml from cd to the above directory.
4. Now Create repository with createrepo utility.
#createrepo -g repomd.xml /redhat/packages
5. Create repository file for yum
remove all ".repo" files from /etc/yum.repos.d/
and create a new file :
touch red_hat6.repo
and write the following text in the file :
#vi /etc/yum.repos.d/red_hat6.repo
[REDHAT_REPO]
name=Red_Hat6
baseurl=file:///redhat/packages
enabled=1
gpgkey=file:///redhat/packages/RPM-GPG-KEY-redhat-release
6. run command
#yum clean all
Now you can install any package with following command and it will resolve dependancies automatically.