yum对应ubuntu_在Ubuntu上安装yum

安装yumapt-get install yum

配置yum源

由于是Ubuntu没有yum源,所以要想使用yum安装软件必须要配置yum安装源。在/etc/yum/repos.d/目录下创建两个文件,fedora-163.repo和fedora-updates-163.repo。分别复制以下配置信息保存即可。vi fedora-163.repo

[fedora]

name=Fedora 17 - $basearch - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/releases/17/Everything/$basearch/os/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=$basearch

enabled=1

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]

name=Fedora 17 - $basearch - Debug - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/releases/17/Everything/$basearch/debug/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-17&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]

name=Fedora 17 - Source - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/releases/17/Everything/source/SRPMS/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-17&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchvi fedora-updates-163.repo

[updates]

name=Fedora 17 - $basearch - Updates - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f17&arch=$basearch

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]

name=Fedora 17 - $basearch - Updates - Debug - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/debug/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f17&arch=$basearch

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]

name=Fedora 17 - Updates Source - 163.com

failovermethod=priority

baseurl=http://mirrors.163.com/fedora/updates/17/SRPMS/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f17&arch=$basearch

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

执行配置yum makecache

本文由 donny 创作,采用 知识共享署名4.0 国际许可协议进行许可

请喝咖啡

68cf7e4c321a44fb6efbb564e8152b95.png

8e4b7690f4e2b078c1b877f042579173.png

已有 2 条评论

人生在世,错别字在所难免,无需纠正。

提交

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页