Tuesday, August 11, 2015

Create a Yum repo

step 1)


[root@localhost Packages]#mount -o loop /dev/cdrom /a

step2)


[root@localhost Packages]#rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm

step 3)

[root@localhost Packages]# more /etc/yum.repos.d/test.repo
[rhel7_dvd]
gpgcheck = 0
enabled = 1
baseurl = file:///a
name = test
[root@localhost Packages]#

step 4)

[root@localhost Packages]# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                                                                       repo name                                                                status
rhel7_dvd                                                                     test                                                                     4,305
repolist: 4,305
[root@localhost Packages]#

No comments:

Post a Comment

Install the Perl module

Unable to install a perl module and through below error: Looking for CPAN mirrors near you (please be patient) Can't locate Time/HiR...