[Turn] for Red Hat AS4 add online upgrade function

Source: Internet
Author: User
Tags gpg
Perhaps because of the copyright, the Internet has been unable to find the available Rhel apt and yum source. CentOS is a version based on Rhel rebuild, its directory structure, file naming, all packages are completely compatible with Rhel, so We can use the CentOS apt and Yum Source to carry on the system and the software update completely.

Apt Download: http://rpm.pbone.net/index.php3/... ntos4.i386.rpm.html
Install with rpm-i apt-0.5.15cnc6-4.centos4.i386.rpm after downloading

In fact, it can be used at this time, but in order to make the update faster, we'd better edit the following file
/etc/apt/sources.list.d/centos.list

Revise the apt source for CentOS China Mirror

QUOTE: ### CentOS-4 APT Repository
RPM http://mirror.be10.com centos/4/apt/i386 os addons updates Extras
RPM http://mirror.be10.com centos/4/apt/i386 contrib centosplus then update apt file list

Apt-get Update

Upgrade All Files

Apt-get Upgrade

You can also use the following command to install the software

Apt-get Install PackageName

With APT, we can upgrade most of our software, but we need to upgrade the kernel with Yum

Install Yum First

Apt-get Install Yum

This time you need to import a Gpg-key

RPM--import/usr/share/rhn/rpm-gpg-key

Now there is a mistake on the web article, but also to modify the/etc/yum.repos.d/centos-base.repo
To yum the upgrade and replace the contents of the/etc/yum.repos.d/centos-base.repo with the following:

QUOTE: [Base]
Name=centos-4-Base
baseurl=http://mirror.be10.com/centos/4/os/i386/
Gpgcheck=1

#released Updates
[UPDATE]
Name=centos-4-Updates
baseurl=http://mirror.be10.com/centos/4/updates/i386/
Gpgcheck=1

#packages used/produced in the builds but not released
[Addons]
Name=centos-4-Addons
baseurl=http://mirror.be10.com/centos/4/addons/i386/
Gpgcheck=1

#additional packages that useful
[Extras]
Name=centos-4-Extras
baseurl=http://mirror.be10.com/centos/4/extras/i386/
Gpgcheck=1

#additional packages that extend functionality of existing packages
[Centosplus]
Name=centos-4-Plus
baseurl=http://mirror.be10.com/centos/4/centosplus/i386/
Gpgcheck=1
Enabled=0

#contrib-packages by Centos Users
[Contrib]
Name=centos-4-Contrib
baseurl=http://mirror.be10.com/centos/4/contrib/i386/
Gpgcheck=1
Enabled=0

#packages in testing
[Testing]
Name=centos-4-Testing
baseurl=http://mirror.be10.com/centos/4/testing/i386/
Gpgcheck=1
Enabled=0 and now you're ready to upgrade.

Yum Update

Yum If you upgrade the kernel after the upgrade, you need to reboot and use

/sbin/shutdown-r now

Reboot and look at the system kernel, it's already a new version.

Uname-a

You should have a high savvy, knowing that 4 represents the version number in baseurl=http://mirror.be10.com/centos/4/testing/i386/.
This kind of article many, congratulations you to see the most correct one, but also thank you to see here.

Test environment: Red Hat AS4
Related Article

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.