LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2013, 06:04 AM   #1
rdybowski
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 01-29-2013, 09:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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?
 
Old 01-29-2013, 12:54 PM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,165

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
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
 
Old 02-03-2013, 12:40 PM   #4
ashish12
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
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)
 
Old 02-04-2013, 04:24 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by ashish12 View Post
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)
dumps of commands with no context are really of very limited use. Especially as this really doesn't seem to address the users actual problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CRITICAL:yum.cli Config Error yum.conf in RHEL 6.0 chunrima Linux - Software 2 12-09-2010 07:19 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 09:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 01:56 PM
YUM on RHEL 4.0?? ajeetraina Linux - Newbie 1 06-02-2008 10:34 AM
Yum in RHEL 4 IcoNyx Linux - Software 2 09-19-2005 05:00 PM


All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration