centos7手动更新源
来源:互联网 发布:小米网络收音机改软件 编辑:程序博客网 时间:2024/05/16 17:33
centos7默认最小化安装,所以很多的软件没有,然而系统自带的是国外的源,所以必须要更新国内的源,打开
http://mirrors.163.com/.help/centos.html
选择centos7,下载的文件中有如下的内容
http://mirrors.163.com/.help/centos.html
选择centos7,下载的文件中有如下的内容
# 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 - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osbaseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#released updates[updates]name=CentOS-$releasever - Updates - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updatesbaseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that may be useful[extras]name=CentOS-$releasever - Extras - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extrasbaseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus - 163.combaseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
在/etc/目录下创建CentOS-Base.repo这个文件(一般都有,但是我这里不知道为什么没有了),然后把前面网站上下载的文件中的内容黏贴过来,保存
yum clean all
yum makecache
阅读全文
0 0
- centos7手动更新源
- SUSE linux手动添加更新源
- centos7.2 更新源、修改hostname主机名
- 手动更新源列表文件解决Ubuntu的Unable to locate package无法更新源问题
- 更新源
- ubuntu更新源修改更新源
- ubuntu 手动更新源 以及使用sudo update与upgrade的作用及区别
- ubuntu更新源
- Ubuntu 7.04更新源
- FC7添加更新源
- ubuntu备份更新源
- ubuntu更新源
- Ubuntu 8.04更新源
- Ubuntu 更新源
- ubuntu更新源
- ubuntu 8.04 更新源
- ubuntu更新源
- ubuntu更新源
- Java实现-子集
- Effective C++第三章-资源管理-1
- TABLE中子元素获取
- Java、PHP、Python、JS 等开发者都如何绘制统计图
- layer api
- centos7手动更新源
- CSS中的重点
- stm32 keil实现串口printf输出中文字符
- WindowForm窗体的最小化、最大化、拖动窗体、关闭窗体、窗体阴影效果
- 狗逼csdn
- Fragment用法总结
- [Leetcode] 246. Strobogrammatic Number 解题报告
- Java实现-带重复元素的子集
- 操作系统性能分析思路总结