YUM server installation and configuration
Hi,
I have install and configure(using http) YUM server in my Environment. initialy is working fine.
suddenly I have notice the error during installing package using YUM.
[root@localhost ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://192.168.5.1:80/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
http://192.168.5.1:80/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
repo id repo name status
RHEL6-DVD1 RedHat Linux 6 . x86_64 Base 0
repolist: 0
Guys, pls help on this issue.......
Responses
I would start by verifying that your repository files are in fact readable by the correct local users/groups and that SELinux isn't restricting access.
Next, from your client, check that your repository is accessible at its intended location, ensuring that your web service is properly configured and running (note: including the port in the URL seems redundant in this instance):
wget http://192.168.5.1:80/repodata/repomd.xml
If you can successfully retrieve the repomd.xml file, check your yum client configuration (/etc/yum.conf) and ensure that any listed proxy server settings are valid.
Make sure that when you ran createrepo the resultant files are readable by your web-server (either user:group owned by the same ids your web server runs under or are set o+r).
If the permissions look good, check your web server logs for any indicative errors, then check your system logs to see if something like SELinux is blocking you.
Hello
The Deployment Guide has a short section Creating a Yum Repository. If there are any issues with file permissions and SELinux context that should be added to that section please let us know.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
