Yum installation prompts "No software package available"

yum installation prompts "No software package available"

Insert picture description here

  • When you use yum to install software in the Linux system, it says "No software package available", it means that there is no corresponding installation package in the yum source of the Linux system. At this time, we need to install EPEL.
  • EPEL (Extra Packages for Enterprise Linux), an extra package for Enterprise Linux, RHEL distributes a community library of non-standard packages. The installation is as follows:
    yum did not find the corresponding dependency package, update the epel third-party software library, and run the command:
yum install -y epel-release

After updating the epel third-party software library, try again to install the corresponding software package using the yum command, but it still doesn't work.
At this time we can import epel.repo, or write our own

vim /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

Guess you like

Origin blog.csdn.net/qq_46480020/article/details/111940512