Redhat 5 Installing Yum

Source: Internet
Author: User
Tags ftp gpg centos

Radhat 5 Installing Yum

--guolele1990

Because REDHAT5 is too old to support Yum, Yum is so convenient that it has to be updated


First, http://mirrors.ustc.edu.cn/centos/5/os/i386/CentOS/.
Download
yum-3.2.22-37.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
yum-utils-1.1.16-16.el5.centos.noarch.rpm


python-iniparse-0.2.3-4.el5.noarch.rpm (this internet search)


Each of them is RPM-IVH with a single load.
Again
RPM-IVH yum-3.2.22-37.el5.centos.noarch.rpm--nodeps Use this outfit
Those bags that can't be loaded before the reload.


After successful use of Yum when the last hint y/n will be error
File "/usr/bin/yum", line +, in? Yummain.user_main (sys.argv[1:], Exit_code
Sort of, the solution.
The reason is that the system installed the Yum-metadata-parser No, the yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm to replace the load
First RPM-E xxx--nodeps uninstall reload


RHEL5 Configuring the Yum Source




cd/etc/yum.repos.d/
CP Rhel-debuginfo.repo Rhel-debuginfo.repo.bak
Delete all the contents of the Rhel-debuginfo.repo file first, and then add the following:


[Base]
Name=centos-5-Base
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever 5&arch= $basearch &
Repo=os
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


#released Updates
[UPDATE]
Name=centos-5-Updates
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


#packages used/produced in the build and not released
[Addons]
Name=centos-5-Addons
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=addons


baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


#additional packages that could be useful
[Extras]
Name=centos-5-Extras
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=extras


baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


#additional packages that extend functionality of existing packages
[Centosplus]
Name=centos-5-Plus
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


#contrib-packages by Centos Users
[Contrib]
Name=centos-5-Contrib
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
Gpgcheck=1
Enabled=0
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5


# VI Dag.repo
[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




Then import the key
RPM--import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5



GPG Key retrieval failed: [Errno] HTTP Error 404:not Found
This problem, to solve
Yum--nogpgcheck--install software name



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.