benxiongbenxiong.blog.chinaunix.net
benxiong
全部博文(163)
Nagios(9)
AIX(4)
HP-UX(5)
Weblogic(3)
Nimbus(8)
IaaS(0)
Xen(5)
VBS(1)
批处理(3)
Perl(2)
Shell(12)
Linux C/C++(15)
HTML(0)
Android(1)
Bank(1)
phone(4)
Oracle PL/SQL(0)
Oracle常见问题(10)
Oracle安装卸载(3)
Oracle性能优化(3)
Oracle(10)
MySQL(7)
Tivoli Storage M(1)
Storage(6)
Printer(0)
Voice(1)
Router(5)
Wireless(0)
Switch(2)
DNS(1)
LVS(4)
Torque(1)
svn-cvs(1)
Cluster(2)
HTTP(2)
SAMBA(0)
MediaWiki(0)
DHCP(0)
LDAP(0)
NIS(0)
2018年(1)
2012年(1)
2011年(47)
2010年(58)
2009年(21)
2008年(35)
hx300679
engeldus
小雅贝贝
大鬼不动
ukyomud
gp_666
yylei
一线天吖
nagios_1
nhszx
cynthia
liuhaimi
浪花小雨
分类: LINUX
2008-08-19 14:21:39
1. 安装yum
2. 修改.repo文件
ccd /etc/yum.repos.d/
#vi CentOS-Base.repo
写入一下内容:
3. 导入key
#rpm --import
4. 运行,测试
#yum update
[base] name=CentOS-5 - Base #mirrorlist= repo=os #baseurl= baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #released updates [update] name=CentOS-5 - Updates #mirrorlist= baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #packages used/produced in the build but not released [addons] name=CentOS-5 - Addons #mirrorlist= baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #additional packages that may be useful [extras] name=CentOS-5 - Extras #mirrorlist= baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus #mirrorlist= baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib #mirrorlist= baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # vi dag.repo [dag] name=Dag RPM Repository for RHEL5 baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/ enabled=1 gpgcheck=1 gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
上一篇:RHEL5上制作Soft RAID,并在Soft RAID基础上做LVM
下一篇:如何保持一个远程连接
登录 注册