Add online upgrade function for Red Hat AS4

xiaoxiao2021-04-07  259

It may be because of the copyright's relationship, the available RHEL's APT and YUM source have been found .centos is a version based on RHEL REBUILD, its directory structure, file naming, all packages are fully compatible with RHEL, Therefore, we can use CentOS's APT and YUM sources to perform system and software updates .Apt download: http://rpm.pbone.net/index.php3/stat/4/IDPL/1985014/com/APT-0.5. 15cnc6-4.centos4.i386.rpm.html After downloading with rpm -i APT-0.5.15cnc6-4.centos4.i386.rpm is actually available, but in order to make the update faster, we are the most Good editor below this file /etc/apt/sources.list.d/centos.list Modify the APT source to CentOS China Mirror

Code: ### centos-4 Apt repositoryrpm http://mirror.be10.com centos / 4 / APT / I386 OS Addons Updates extrasrpm http://mirror.be10.com Centos / 4 / APT / I386 Contrib CentOSPLUS

Then update the APT file list APT-GET Update Upgrade All files APT-GET UPGRADE You can also use the following command to upgrade our most software, but to upgrade the kernel, you need to install YumApt first. -Get install yum This time you need to import a gpg-keyrpm - IMPORT / USR / share / RHN / RPM-GPG-key Now there is a mistake, but also to modify /etc/yum.repos.d/centos -Base.Repo can be upgraded yum, replace the contents of /etc/yum.repos.d/centos-base.repo's content to:

Code: [base] name = centos-4 - basebaseurl = http://mirror.be10.com/centos/4/OS/i386/gpgcheck=1#released Updates [update] name = centos-4 - updatesbaseurl = http: //mirror.be10.com/centos/4/Updates/i386/gpgcheck=1#packages Used / Products] name = centos-4 - addonsbaseURL = http: //mirror.be10.com / centos / 4 / addons / i386 / gpgcheck = 1 # additional packages That May be useful [extras] name = centos-4 - extrasbaseURL = http: //mirror.be10.com/centos/4/extras/i386/gpgcheck= 1 # additional packages that extend functionality of existing packages [centosplus] name = CentOS-4 - Plusbaseurl = http: //mirror.be10.com/centos/4/centosplus/i386/gpgcheck=1enabled=0#contrib - packages by Centos Users [Contrib] Name = CentOS-4 - ContribBaseURL = http://mirror.be10.com/Centos/4/contrib/i386/gpgcheck=1enabled=0#packages in testing [testing] name = centos-4 - testingbaseURL = Http://mirror.be10.com/centos/4/testing/i386/gpgcheck=1enabled=0 Then you can upgrade now Yum Updateyum upgrade After upgrading the kernel, you need to restart, use / sbin / shutdown -r Now, then look at the system kernel and then it is new. Version of uname -a

PS: This article is verified to be fully used

转载请注明原文地址:https://www.9cbs.com/read-132625.html

New Post(0)