Upgrade bash for redhat5 using centos yum command

Source: Internet
Author: User
How to upgrade bash for redhat5 to prevent bash vulnerabilities?

How to upgrade bash for redhat5 to prevent bash vulnerabilities, see http://down.51cto.com/data/194201

1, to centos official website to download yum-3.2.22-40.el5.centos.noarch.rpm, yum-metadata-parser-1.1.2-4.el5.i386.rpm, python-iniparse-0.2.3.6-el5.noarch.rpm, yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm, four files, it is recommended to centos.ustc.edu.cn image to find

2. uninstall the yum, rpm-aq | grep yum | xargs rpm-e -- nodeps that comes with redhat.

3. run the following command to install yum

Rpm-ivh python-iniparse-0.2.3-6.el5.noarch.rpm

Rpm-ivh yum-metadata-parser-1.1.2-4.el5.i386.rpm

Rpm-ivh yum-3.2.22-40.el5.centos.noarch, rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm.

4, vi/etc/yum. repos. d/CentOS-Base.repo

[Base]

CentOS-5-Base

Base url = http://mirrors.ustc.edu.cn/centos/5/ OS /i386/

Gpgcheck = 0

Enabled = 1

[Updates]

Name = CentOS-5-Update

Base url = http://mirrors.ustc.edu.cn/centos/5/updates/i386/

Gpgcheck = 0

Enabled = 1

5. test yum list

6. yum update bash-y

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.