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
[Repository]
name="Yum
Repository"
baseurl=file:///mntimg/
enabled=1
gpgcheck=0
:wq! |
Now, Try to install the package.
#yum install vsftpd
|
Cheers !! You have successfully configured your own yum repository.
No comments:
Post a Comment