Yum Install the software, Error: No package XXX available.
[Email protected] ~]# yum-y install redisloaded Plugins:fastestmirrorno package Redis available. Nothing to do
Configuring a CentOS 7.x or Rhel 7.x system installs a variety of packages using Fedora EPEL repos and third-party packages. Please note that these packages are not formally supported by any CentOS or red hat, but are available in many popular packages and applications.
The above errors are shown for the following 2 reasons:
1, DNS issues;
2, the mirror connection error;
DNS Issues
First Test the network connection, if the ping does not pass, you need to set the next DNS.
[[email protected] ~]# ping www.baidu.comxxxxxxxxxxxxxxxxx[[email protected] ~]# echo "nameserver 8.8.8.8" >>/etc/ resolv.conf
Ping it again.
Mirroring connection Error Issues
Specific reason: using Yum to search for certain RPM packages, the package was not found because CentOS was compiled by the Redhat Enterprise Edition, removing all the copyright issues. After installing Epel, this problem can be solved very well. EPEL (Extra Packages for Enterprise Linux) is an expansion pack for Business Linux, which provides a number of components that can be used for CentOS, and can be found after installing this basic RPM.
Method #1 » Install expansion packs from the Enterprise Linux Library configuration package. Recommended
[[email protected] ~]# sudo yum install epel-releaseloaded plugins:fastestmirror, langpacksloading Mirror speeds fr Om cached hostfileresolving dependencies--> Running transaction Check---> Package epel-release.noarch 0:7-5 would be Installed--> finished Dependency resolutiondependencies resolved=============================================== ================================= Package Arch Version Repository size========== ======================================================================installing:epel-release Noarch 7-5 Extras ktransaction summary================================================================= ===============install 1 packagetotal Download size:14 kinstalled size:24 kIs This ok [y/d/n]: ydownloading packages:ep el-release-7-5.noarch.rpm | KB 00:01 Running Transaction checkrunning transaction testtransaction test SucceededruNning Transaction Installing:epel-release-7-5.noarch 1/1 Verifying:epel-relea Se-7-5.noarch 1/1 Installed:epel-release.noarch 0:7-5 complete!
Method #2 » Install expansion packs from dl.fedoraproject.org.
1. Download epel-release using the wget command:
[Email protected] ~]# cd/tmp[[email protected] ~]# wget https://dl.fedoraproject.org/pub/epel/ epel-release-latest-7.noarch.rpm ls*.rpm
or find the corresponding version of Epel by wiki, then download:
[Email protected] ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/epel-release-7-5.noarch.rpm or [email Protected] ~]# wget http://mirrors.ustc.edu.cn/fedora/epel/7/x86_64/epel-release-7-5.noarch.rpm//China University of Science and Technology mirror
2. Installation:
[email protected] ~]# sudo yum install epel-release-7.noarch.rpm
Attention:
1. The Epel version should correspond to the CentOS version, otherwise the installation fails, that is, the CENTOS7 version corresponds to the EPEL7 version.
2. After the RPM installation, RPM-QL epel*, do not confirm that the installation, at this time to import the RPM signature information
#rpm--import/etc/pki/rpm-gpg/rpm-gpg-key-centos-6 (Root identity execution)
Yum install software times in CentOS Error: No package XXX available