Live as if you were to die tomorrow. Learn as if you were to live forever.

Monday, 29 December 2014

Configure your own yum repository using iso image

If you have installed the RedHat/CentOS on your Desktop and you are not having the Internet connectivity. In this case you cannot install the packages using the YUM but if you wants to install the packages for that you will need to configure the YUM as follows

First of all mount iso image on the directory.

Now configure the YUM repository

Create the file under the yum.repos.d directory which is having the .repo extension.

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

add the following lines under rpm.repo file

name="Yum Repository"


Now, Try to install the package.

#yum install vsftpd

Cheers !! You have successfully configured your own yum repository.

No comments:

Post a Comment