LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 08:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 11:54 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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, 11:40 AM   #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, 03:24 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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



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 06:19 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
YUM on RHEL 4.0?? ajeetraina Linux - Newbie 1 06-02-2008 09:34 AM
Yum in RHEL 4 IcoNyx Linux - Software 2 09-19-2005 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration