Java教程

如何配置yum源及更新yum源列表

本文主要是介绍如何配置yum源及更新yum源列表,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1,配置yum源:

进入yum源配置文件的目录
#cd /etc/apt/

备份sources.list文件
#mv sources.list sources.list.bak

编辑sources.list文件
#vim sources.list(先删除里面的全部内容)
插入以下内容(163yum源):

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

2,配置好yum源后,更新软件包列表:
apt-get update

3,期间会提示是否接受,按“y”,并回车

4,完成Ubuntu配置yum源

这篇关于如何配置yum源及更新yum源列表的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!