分类: LINUX
2014-09-28 13:32:12
[root@dns4 yum.repos.d]# vi rhel-source.repo (将原来文件的 $release 查找替换成 6)
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base - mirrors.ustc.edu.cn
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-6 - Updates - mirrors.ustc.edu.cn
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - mirrors.ustc.edu.cn
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - mirrors.ustc.edu.cn
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - mirrors.ustc.edu.cn
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
~
"rhel-source.repo" 52L, 1951C written
[root@dns4 yum.repos.d]# yum makecache
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
base | 3.7 kB 00:00
base/other_db | 2.1 MB 00:00
extras | 3.3 kB 00:00
updates | 3.4 kB 00:00
Metadata Cache Created
[root@dns4 yum.repos.d]# yum install bash -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package bash.i686 0:4.1.2-8.el6 will be updated
---> Package bash.i686 0:4.1.2-15.el6_5.2 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Updating:
bash i686 4.1.2-15.el6_5.2 updates 887 k
Transaction Summary
====================================================================================================================================
Upgrade 1 Package(s)
Total download size: 887 k
Downloading Packages:
bash-4.1.2-15.el6_5.2.i686.rpm | 887 kB 00:04
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from
Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <>"
From :
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : bash-4.1.2-15.el6_5.2.i686 1/2
Cleanup : bash-4.1.2-8.el6.i686 2/2
Installed products updated.
Updated:
bash.i686 0:4.1.2-15.el6_5.2
Complete!
[root@dns4 guo]# env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
this is a test