Wednesday, 29 October 2014

RHEL YUM (Yellow-dog Updater and Modifier) configuration using local DVD in RHEL 7.0

Hello Friends,

It has been long that i didn't blog anything here. I am glad to inform you that i started working on RHEL 7.0. and this is my first post on RHEL 7.0.

I would like to share some simple steps to configure YUM (Yellow-dog Updater and Modifier) with local DVD in RHEL 7.0 . In olden days I faced lot of challenges in installing packages in Linux due to dependencies. If you want to install one package it will fail and asking for another dependencies and if you install the dependency it will prompt for another one. End of the day we will end up in a soup.

Here is the Video of configuration  of  YUM using local DVD in RHEL 7.0

Step by step procedure :

1. Insert the RHEL 7.0 DVD into the DVD drive of your server
2. mount the DVD

#mkdir /dvd
#dmesg |grep ROM  --> this command to find out your DVD device name
#mount -t iso9660 /dev/sr0 /dvd

3. create repo configuration file.

#vi /etc/yum.repos.d/local.repo

[local-repo] --> This informs what is the repository name.
Name --> Its used to see the information about the repo.
baseurl --> This is the server and path of the repo(here its a local repo so the base url is just a file:///)
gpgcheck --> This is to check the authentication of the repository, which is disabled in this case.
enabled --> enable or disable repo

Content of local.repo file will be like this.

[local-repo]
name= dvd repo
baseurl=file:///dvd
enabled=1
gpgcheck=0

4.   In-order to use yum repository we have to clean the yum meta data, so before installing any package first time use yum clean all command

#yum clean all

5. Now you can install / remove or update packages
#yum install vsftpd -y

That's all !  please watch and share it . Also please  share your feedback




No comments:

Post a Comment