yum安装报错No package xxx available

Cent OS7使用yum安装软件出现 No package xxx available.

[chenxinlong@localhost Documents]$ sudo yum install tldr
[sudo] password for chenxinlong:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirrors.cn99.com
  • centos-sclo-rh: mirrors.nju.edu.cn
  • centos-sclo-sclo: mirrors.nju.edu.cn
  • extras: mirrors.nju.edu.cn
  • updates: mirrors.nju.edu.cn
    No package tldr available.
    Error: Nothing to do

e834adaa99688c9507162b0fcaa129c

使用

sudo yum install epel-release

使用yum搜索某些rpm包,找不到包是因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。

安装EPEL后可以很好的解决这个问题。EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,安装完这个以后基本常用的rpm都可以找到[1]

[1] yum安装时提示No package xxx available的解决方案

posted @ 2022-03-20 20:15  zju_cxl  阅读(523)  评论(0编辑  收藏  举报