# 备份
# mv /etc/yum.repos.d/CentOS-Base.repo{,.bak}
# 修改
# vi /etc/yum.repos.d/CentOS-Base.repo
# 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-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# yum clean all
# yum makecache #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
# yum install vim* #测试域名是否可用
附:增加RPMforge源
1,download the rpmforge package:
http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
2,Install DAG's GPG key
sudo rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
如果上面出现错误,确认下:
sudo rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
3,sudo rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
4,试试看:sudo yum install htop
开始更新系统:
yum update
本人博客已搬家,新地址为:http://yidao620c.github.io/
相关推荐
centos 6.2用yum安装中文输入法
CentOS6.2使用第三方yum源安装更多rpm软件包宣贯.pdf
本篇文章是对CentOS 6.2使用yum安装LAMP以及phpMyadmin进行了详细的分析介绍,需要的朋友参考下
CentOS 6.2 yum安装配置lnmp服务器(Nginx+PHP+MySQL)
服务器CentOS 6.2 yum安装配置lnmp(Nginx+PHP+MySQL)
CentOS_6.2_yum安装配置lnmp服务器(Nginx+PHP+MySQL).doc
主要介绍了CentOS使用本地yum源搭建LAMP环境,详细分析了CentOS使用本地yum源搭建LAMP的具体步骤、相关命令及操作注意事项,需要的朋友可以参考下
CentOS 6.2 使用教程详细教程,包括使用第三方yum源、CentOS 6.2安装、entOS 6.2安装配置LAMP服务器(Apache+PHP5+MySQL)
在 Centos6.2 64 安装 Ganglia-3.4
centos6.2安装两个mysql 宋正河整理
CentOS6.2下以yum方式安装PostgreSQL9.6,完整的个人安装详细文档
RedHat.Enterprise.Linux.6.2安装yum,资源包括python-iniparse-0.3.1-2.1.el6.noarch.rpm、yum-3.2.29-40.el6.centos.noarch.rpm、yum-metadata-parser-1.1.2-16.el6.i68
这果然是一次蛋疼的升级过程。 完整步骤: 1.首先备份数据,虽说成功的升级数据不会丢失,但是保险起见备份下。 sqldump -u xxx -h xxx -P 3306 -p –all-...yum remove mysql mysql-* 执行之后再看看是不是残余一些mys
centos7 详细安装zabbix以及详细配置教程
ipython 提示必备工具 在Centos 6.3 下yum无法安装不造肿么回事。。所以找了源码包
我们编译安装nginx来定制自己的模块,机器CentOS 6.2 x86_64。首先安装缺少的依赖包: # yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel 这些软件包如果yum上...
6.2.3 配置yum客户的更新源 6.2.4 使用yum命令工具 6.2.5 加速yum的下载 6.2.6 系统自动更新 第7章 账户管理 7.1 账户管理概述 7.1.1 账户实质 7.1.2 用户和组 7.1.3 Linux环境下的账户系统文件 7.2 使用账户管理...
yum -y install gcc ./configure && make && make install 安装完成后 [root@localhost rlwrap-0.42]# which rlwrap /usr/local/bin/rlwrap [root@localhost rlwrap-0.42]# vi .bash_profile 添加以下内容 stty ...