Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1139659
  • 博文数量: 168
  • 博客积分: 4445
  • 博客等级: 上校
  • 技术积分: 1307
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 14:04
文章分类

全部博文(168)

文章存档

2018年(2)

2017年(5)

2016年(7)

2015年(1)

2014年(8)

2013年(1)

2012年(4)

2011年(54)

2010年(8)

2009年(19)

2008年(18)

2007年(36)

2006年(1)

2005年(4)

分类: 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

阅读(1609) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~