Centos6.3配置YUM源

[root@localhost ~]# cd /etc/yum.repos.d/

[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak

[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

[root@localhost yum.repos.d]# mv /root/CentOS6-Base-163.repo CentOS-Base.repo

[root@localhost yum.repos.d]# yum clean all

[root@localhost yum.repos.d]# yum makecache

[root@localhost yum.repos.d]# yum update



安装centos常用的软件包及工具


[root@localhost ~]# yum install app1 app2 app3 -y


卸载软件


[root@localhost ~]# yum remove app1 app2 app3


本文出自 “起飞的90后” 博客,谢绝转载!

你可能感兴趣的:(yum)