linux el5 el6 区别,当我在el6上时,yum试图安装el5

您可以使用yum repolist来显示您启用了哪个存储库,从而显示包的来源;

(也是yum repolist -v,带有-v标志,用于对启用的存储库进行非常详细的描述)

# yum repolist

Loaded plugins: fastestmirror,security

Loading mirror speeds from cached hostfile

epel/Metalink | 10 kB 00:00

* base: mirrors.usc.edu

* epel: epel.mirror.freedomvoice.com

* extras: mirrors.usc.edu

* updates: mirrors.usc.edu

Webmin | 1.2 kB 00:00

base | 3.7 kB 00:00

extras | 3.5 kB 00:00

rbel6 | 1.9 kB 00:00

updates | 3.5 kB 00:00

repo id repo status

Webmin Webmin Distribution Neutral 174+1

base CentOS-6 - Base 6,293+1

epel Extra Packages for Enterprise Linux 6 - x86_64 7,345

extras CentOS-6 - Extras 4

rbel6 RBEL 6 Repo 183

updates CentOS-6 - Updates 921+6

repolist: 14,920

并显示哪些存储库支持您的要求包;

# yum provides git

Loaded plugins: fastestmirror,security

Loading mirror speeds from cached hostfile

* base: mirrors.usc.edu

* epel: epel.mirror.freedomvoice.com

* extras: mirrors.usc.edu

* updates: mirrors.usc.edu

git-1.7.1-2.el6_0.1.x86_64 : Fast Version Control System

Repo : base

Matched from:

git-1.7.1-2.el6_0.1.x86_64 : Fast Version Control System

Repo : installed

Matched from:

Other : Provides-match: git

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值