Hi all I am using Red Hat Enterprise Linux 4 (RHEL4), but have a problem which the Red Hat company does not support. Since RHEL is a closely related with Fedora, I would like to ask your favor. I need to install yum on my RHEL4 workstation. I installed yum2.0.7, which appears to be succeeding in. Then I conducted “yum check-update” but got error messages as follows; -------------------- # yum check-update Gathering header information file(s) from server(s) Server: Red Hat Linux 4WS - x86_64 - Base retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4WS/x86_64/headers/he... Executing failover method failover: out of servers to try Error getting file http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4WS/x86_64/headers/he... [Errno 4] IOError: <urlopen error > -------------------- I understand that the URL may be wrong in the setting. Even if so, I do not know what is proper URL. Please tell me proper setting.
Followings are the current contents of /etc/yum.conf
[main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1
[base] name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch...
[updates] name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/
Best regards, Mark
MAKOTO SHIMADA wrote:
Hi all I am using Red Hat Enterprise Linux 4 (RHEL4), but have a problem which the Red Hat company does not support. Since RHEL is a closely related with Fedora, I would like to ask your favor. I need to install yum on my RHEL4 workstation. I installed yum2.0.7, which appears to be succeeding in. Then I conducted “yum check-update” but got error messages as follows;
# yum check-update Gathering header information file(s) from server(s) Server: Red Hat Linux 4WS - x86_64 - Base retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4WS/x86_64/headers/he... Executing failover method failover: out of servers to try Error getting file http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4WS/x86_64/headers/he... [Errno 4] IOError: <urlopen error >
I understand that the URL may be wrong in the setting. Even if so, I do not know what is proper URL. Please tell me proper setting.
Followings are the current contents of /etc/yum.conf
[main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1
[base] name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch...
[updates] name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/
Exactly what are you trying to update via yum? You can't update the base packages of RHELv4 via yum since RH does not support yum at that release level. You need to use their "up2date". Additionally, RH requires a subscription to update. In RHELv5 yum is used instead of "up2date". But, again, you need a subscription to update.
If you need the stability of RHEL, but don't/can't want to pay for a subscription there is always the well known clone CentOS.
Thanks Ed Greshko;
Exactly what are you trying to update via yum?
No, I routinely use "up2date" to keep my RHEL4 machine up to date.
You can't update the base packages of RHELv4 via yum since RH does not support yum at that release level.
I know that. However, I need to install another software,which require yum. So, I have to install yum before the installation of the software.
What I need is the URL to solve the IOError: <urlopen error >.
Thanks. Mark
Yes, and what he told you is that there is no legal URL for a Red Hat Enterprise Linux 4 yum repository. A Red Hat Network subscription (which uses up2date) is required. Now if you happen to have an RHN subscription, up2date can be coerced into using a third party yum repository. See /etc/sysconfig/rhn/sources
If you don't have an RHN subscription, you can convert your RHEL4 to CentOS4 by replacing the redhat-release with centos-release (IIRC) then use the CentOS4 yum repositories.
SHIMADA, MAKOTO wrote:
Thanks Ed Greshko;
Exactly what are you trying to update via yum?
No, I routinely use "up2date" to keep my RHEL4 machine up to date.
You can't update the base packages of RHELv4 via yum since RH does not support yum at that release level.
I know that. However, I need to install another software,which require yum. So, I have to install yum before the installation of the software.
What I need is the URL to solve the IOError: <urlopen error >.
What you need is the repository information for the software you want to install....
I have a RHELv4.8 system. I use yum in conjunction with the EPEL repositories.
So, my yum.conf contains...
[egreshko@misty etc]$ cat yum.conf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800
And in /etc/yum.repos.d I have the repository files... One of them is epel.repo and contains...
[epel] name=Extra Packages for Enterprise Linux 4 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/4/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-4&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
AND MORE.....
In actuality those files were created by installing the epel-release-4-9 rpm from the EPEL website.
So, what is the "other" software you need to install?
Thanks Chris Kloiber:
Yes, and what he told you is that there is no legal URL for a Red Hat Enterprise Linux 4 yum repository.
I think I get the picture. I found the /etc/sysconfig/rhn/sources. I will try according the information.
If you don't have an RHN subscription,
I have an RHN subscription for RHEL4.
Best.
On Thu, 18 Mar 2010 04:17:48 -0400 Chris Kloiber ckloiber@ckloiber.com wrote:
Yes, and what he told you is that there is no legal URL for a Red Hat Enterprise Linux 4 yum repository. A Red Hat Network subscription (which uses up2date) is required. Now if you happen to have an RHN subscription, up2date can be coerced into using a third party yum repository. See /etc/sysconfig/rhn/sources
If you don't have an RHN subscription, you can convert your RHEL4 to CentOS4 by replacing the redhat-release with centos-release (IIRC) then use the CentOS4 yum repositories.
-- Chris Kloiber
Thanks Ed Greshko;
What you need is the repository information for the software you want to install....
Yes it is.
I'm beginning to understand.
So, my yum.conf contains...
I will try using this information.
So, what is the "other" software you need to install?
I need to install GBrowse 2.0 and am trying to do according to the Section about installation using RPM System (yum) of the following site http://gmod.org/wiki/GBrowse_2.0_Prerequisites
Best.
On Thu, 18 Mar 2010 16:31:19 +0800 Ed Greshko Ed.Greshko@greshko.com wrote:
SHIMADA, MAKOTO wrote:
I need to install GBrowse 2.0 and am trying to do according to the Section about installation using RPM System (yum) of the following site http://gmod.org/wiki/GBrowse_2.0_Prerequisit
What I would do is....
1. Satisfy whatever prerequisites you can using "up2date", since you said you do have a rhn subscription. Packages like httpd and subversion are already available in RHELv4.
2. If not all needed packages are available on RHN, I would then head to http://download.fedora.redhat.com/pub/epel/4/i386/repoview/epel-release.html download and install epel-release-4-9.noarch.rpm
3. Use yum to install the remaining prerequisites.