Cannot use yum in RHEL 6.2
Hello,
I have tried to use yum in RHEL 6.2 but cannot make it work. For example, if I run "sudo yum install gimp" the result is "Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. http://linux.dropbox.com/fedora/6Wor...ta/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: Dropbox. Please verify its path and try again" The files in yum.repos.d are as follows: (a) dropbox.repo [Dropbox] name=Dropbox Repository baseurl=http://linux.dropbox.com/fedora/$releasever/ gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc (b) redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # (c) rhel-source.repo [rhel-source] name=Red Hat Enterprise Linux $releasever - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-source-beta] name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Please tell me how I can make yum work. |
you're trying to get to a repository which doesn't exist. you've added a dropbox repo which is *very* clearly for fedora, on a rhel system. Did you actually take that failing url and check the path worked in a browser?
Look for yourself... http://linux.dropbox.com/fedora/ see the 6workstation directory doesn't exist, so will clearly not work. sounds very likely that 1) you shouldn't be using that dropbox repo at all and 2) you shouldn't be using rhel at all... have you licensed it on RHN? |
I notice that you have the Red Hat repositories set to
enabled=0 which should be enabled=1 or they're switched off. Of course, if you didn't pay for Red Hat you can't use them anyway, as Chris pointed out. In that case, get CentOS. You can get Dropbox for Red Hat or CentOS at RPMforge. Remember to set priorities, or their respository may damage your installation. http://wiki.centos.org/AdditionalRes...ories/RPMForge http://wiki.centos.org/PackageManagement/Yum/Priorities |
mount /dev/dvd /media
cp -a /media/. /var/ftp/pub/ ls packages/ (packages are present in this directory instead of /Server like in RHEL 5) cd /Packages rpm -ivh createrepo-0.9............. (it will show some dependencies,so install the following packages first) rpm -ivh deltarpm-3.5........ python-deltarpm.......... rpm -ivh createrepo-0.9......... cd .. (/var/ftp/pub) cp Server/repodata/8af........... .xml comps-rhel6-Server.xml (copy the .xml extension file in comps-rhel6-Server.xml) createrepo -g comps-rhel6-Server.xml . vi /etc/yum.conf (make a yum client) service vsftpd restart chkconfig vsftpd on cd /etc/yum.repos.d/ rm * reboot (optional) |
Quote:
|
All times are GMT -5. The time now is 08:29 PM. |