linux - How to change Repository RHEL -
so, i'm trying change repositorys in rhel allways following message , have no idea means.
loaded plugins: product-id, security, subscription-manager system not registered red hat subscription management. can use subscription-manager register. not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo.el6 error 12: timeout on http://mirrors.elrepo.org/mirrors-elrepo.el6: (28, 'connect() timed out!') http://elrepo.org/linux/elrepo/el6/x86_64/repodata/repomd.xml: [errno 12] timeout on http://elrepo.org/linux/elrepo/el6/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') trying other mirror. http://mirrors.coreix.net/elrepo/elrepo/el6/x86_64/repodata/repomd.xml: [errno 14] pycurl error 7 - "failed connect 2a01:c0:2:3d::2: network unreachable" [...] trying other mirror. http://mirror.ventraip.net.au/elrepo/elrepo/el6/x86_64/repodata/repomd.xml: [errno 14] pycurl error 7 - "failed connect 2400:b800:1:1::15: network unreachable" trying other mirror. error: cannot retrieve repository metadata (repomd.xml) repository: elrepo. please verify path , try again
you can create own repository if have os image.
mount os image @ folder /var/rhel-repo using
mount -o loop /path/to/os_image /var/rhel-repo
create repo file in /etc/yum.repos.d/customrepo as
[customrepo] name=custom repository baseurl=file:///var/customrepo enabled=1 gpgcheck=0
save file.then
yum clean all
Comments
Post a Comment