We buy a lot of rhel on the market is pirated, there is no way to update online, that is, cannot yum solution: rpm-qayum get: yum-3.0.5-1.el5. you can see that the yum software has been installed, uninstall it, rpm-eyum-3.0.5-1.el5 and then we download a new yum URL that lets us use: http://ftp.nara. many of the rhel we bought on the market are pirated, and there is no way to update them online, that is, not yum.
Solution:
Rpm-qa yum
Get:
Yum-3.0.5-1.el5.
You can see that the yum software has been installed, uninstall it,
Rpm e yum-3.0.5-1.el5
Then we download a new yum URL that we can use:
Http://ftp.nara.wide.ad.jp/pub/Linux/
Centos/5.1/OS/x86_64/CentOS/yum-3.0.5-1.el5.
Centos. 5. noarch. rpm
After the installation, set the yum source:
Vim/etc/yum. repos. d/CentOS-Base.repo
Add as follows:
[Base]
Name = CentOS-$ releasever-Base
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/ OS /?basearch/
Gpgcheck = 1
# Released updates
[Update]
Name = CentOS-$ releasever-Updates
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/updates/#basearch/
Gpgcheck = 1
# Packages used/produced in the build but not released
[Addons]
Name = CentOS-$ releasever-Addons
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/addons/?basearch/
Gpgcheck = 1
# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/extras/?basearch/
Gpgcheck = 1
Vim/etc/yum. repos. d/dag. repo
Add as follows:
[Dag]
Name = Dag RPM Repository for RHEL5
Baseurl = http://ftp.riken.jp/linux/dag/redhat/el5/en/?basearch/dag/
Enabled = 1
Gpgcheck = 1
Gpgkey = http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
Try again.