centos7配置yum源、epel源为国内镜像
缺省yum源的服务器通常在国外,安装时速度比较慢。为了提高安装rpm包的速度,可以将yum源配置为国内的阿里repo。
1、先备份系统原有的repo
[root@localhost ~]#cd /etc/yum.repos.d/
[root@localhost yum.repos.d]#ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo webtatic-archive.repo webtatic-testing.repo
CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo epel.repo
[root@localhost yum.repos.d]#mkdir backup
[root@localhost yum.repos.d]# mv * ./backup/
2、获取阿里centos7的base-repo
[root@localhost yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost yum.repos.d]# ls
backup CentOS-Base.repo
3、清除并重新生成yum cache
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum makecache
4、测试一下新的yum源是否可用
[root@localhost yum.repos.d]# yum install -y screen
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
screen x86_64 4.1.0-0.25.20120314git3c2946.el7 base 552 k
Transaction Summary
==================================================================================================================================================
Install 1 Package
Total download size: 552 k
Installed size: 914 k
Downloading packages:
screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm | 552 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64 1/1
Verifying : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64 1/1
Installed:
screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7
Complete!
5、获取阿里centos7的epel-repo
[root@localhost yum.repos.d]# wget https://mirrors.aliyun.com/repo/epel-7.repo
6、清除并创建cache
[root@localhost yum.repos.d]# ls
backup CentOS-Base.repo epel-7.repo
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum makecache
至此,大功告成!!!
第八讲_图像问答Image Question Answering
C中的继承和多态
第七讲_图像描述(图说)Image Captioning
TensorFlow 之 高层封装slim,tflearn,keras
第六讲_图像分割Image Segmentation
第五讲_图像识别之图像检测Image Detection
Tensorflow 之 TensorBoard可视化Graph和Embeddings
第四讲_图像识别之图像分类Image Classification
理解Neural Style
- 最新文章
-
CentOS下编译安装MySQL 5.6.21
教你如何获取ipa包中的开发文件
[翻译] ZFDragableModalTransition
[翻译] JTBorderDotAnimation
[翻译] AFDropdownNotification
如何递归执行view的动画
[翻译] UCZProgressView
让图片左右缓慢移动的MoveView
[翻译] PTEHorizontalTableView
教你使用Paw解析http请求
- 热门文章
-
[翻译] WPAttributedMarkup
【转】Php+ajax+jsonp解决ajax跨域问题
wamp下Apache2.4.x局域网访问403的解决办法
【转】ie8 不支持 position:fixed 的简单解决办法
【转】keypress keydown keyup 区别
【转】svn服务器IP修改后,本地怎么跟新svn同步,svn relocate 操作
【转】SVN的UUID错误
【转】Apache Options Indexes FollowSymLinks详解
【转】Apache的Order Allow,Deny 详解
【转】PHP中require和include路径问题总结