Install yum in RedHat as4

Source: Internet
Author: User
Tags gpg

Implementation: enables Linux servers to automatically install the dependent packages and patches you need, so that you can install and debug various servers. You do not have to find various dependent packages and Patches when installing software.

Install yum in RedHat as4

Method 1
1. download the following RPM packages
Centos-yumconf_4-4.3_noarch.rpm
Python-urlgrabber_2.9.6-2_noarch.rpm
Python-elementtree_1.2.6-4_i386.rpm
Sqlite_3.2.2-1_i386.rpm
Python-sqlite_1.1.6-1_i386.rpm
Yum_2.4.0-1.centos4_noarch.rpm
You can get it directly at http://www.chinalinuxpub.com/yum.tgz.

2. Install the above RPM package
Rpm-IVH *. rpm

3. Remove the original centos database and add the as4 Database

Rm-RF/etc/yum. Repos. d/CentOS-Base.repo
VI/etc/yum. Repos. d/as4-update.repo

Join:
# Released updates
[Update]
Name = Red Hat Enterprise as Release 4 Updates
Base url = http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
Gpgcheck = 1
Gpgkey = http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

VI/etc/yum. Repos. d/as4-base.repo

Join:
# Released Base
[Base]
Name = Red Hat Enterprise as Release 4 Updates
Base url = http://ftp.chinalinuxpub.com/redhat/enterprise/ OS /i386/RedHat/
Gpgcheck = 1
Gpgkey = http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

Now Yum can be used.

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.