centos6.6中修改yum源
发布时间:2020-05-23 19:08:56 所属栏目:Linux 来源:互联网
导读:1、进入设置yum源的目录 gt; cd /etc/yum.repos.d 2、复制或重命名CentOS-Base.repo文件 gt; mv CentOS-Base.repo CentOS-Ba
1、进入设置yum源的目录 > cd /etc/yum.repos.d 2、复制或重命名CentOS-Base.repo文件 > mv CentOS-Base.repo CentOS-Base2.repo 3、下载163提供的yum源文件 > wget http://mirrors.163.com/.help/CentOS6-Base-163.repo (*如果出现-bash: wget: command not found) > yum -y install wget 4、重命名文件 > mv CentOS6-Base-163.repo CentOS-Base.repo 5、运行yum makecache生成缓存 > yum makecache (*如果出现错误,可运行如下:) > yum clean all 6、更新系统 > yum -y update (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- 如何在Linux上将常规文件转换为符号链接
- 有没有办法在Linux上删除100GB文件而不会破坏IO
- linux – 如何查找Unix用户帐户被锁定的所有方式
- linux – 用puppet向/ etc / profile添加行?
- 如何找到使用linux swap或swap中的内容?
- linux – 为什么/ cat / urandom挂了我的bash脚本
- linux – Ulimit文件描述符限制未应用于特定进程
- linux – yum相当于apt-get upgrade vs apt-get
- linux – dhclient:“RTNETLINK回答:文件存在”
- linux – 如何保持:每周备份一周,每周一个月,每
热点阅读
