yum When installing the software , Report errors :No package XXX available.

[root@localhost ~]# yum -y install redis
Loaded plugins: fastestmirror
No package redis available.
Nothing to do

Configure one CentOS 7.x or RHEL 7.x The system uses Fedora EPEL  repos And third-party software packages to install a variety of packages . Please note that , These packages have not officially received any CentOS or Red Hat Support for , But there are many popular packages and applications available .

Display the above error , There are the following 2 One reason :

1、dns problem ;

2、 Mirror connection error ;

DNS problem

First, test the network connection , If ping no , Need to set DNS.

[root@localhost ~]# ping www.baidu.com
XXXXXXXXXXXXXXXXX
[root@localhost ~]# echo "nameserver 8.8.8.8">>/etc/resolv.conf

Again ping that will do ping Through the .

Mirror connection error

The specific reason : Use yum Search for some rpm package , I couldn't find the bag because CentOS yes RedHat It's compiled from the enterprise edition , Removed everything about copyright . install EPEL This problem can be well solved after the project .EPEL(Extra Packages for Enterprise Linux ) Enterprise Edition Linux The expansion pack, , Provides a lot to share Centos Components used , After the installation of this basic commonly used rpm Can be found .

Method #1 » From the enterprise version Linux Install the expansion pack in the library configuration pack .( recommend )

[root@localhost ~]# sudo yum install epel-release
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-5 will be installed
--> Finished Dependency Resolution Dependencies Resolved ================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
epel-release noarch 7-5 extras 14 k Transaction Summary
================================================================================
Install 1 Package Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-5.noarch.rpm | 14 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-5.noarch 1/1
Verifying : epel-release-7-5.noarch 1/1 Installed:
epel-release.noarch 0:7-5 Complete!

Method #2 » from dl.fedoraproject.org Install expansion pack .

1. Use wget Command download epel-release:

[root@localhost ~]# cd/tmp
[root@localhost ~]# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ls*.rpm

Or by wiki Find the corresponding version of epel after , Download again :

[root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/epel-release-7-5.noarch.rpm
or
[root@localhost ~]# wget http://mirrors.ustc.edu.cn/fedora/epel/7/x86_64/epel-release-7-5.noarch.rpm // The mirror image of University of science and technology of China

2. install :

[root@localhost ~]# sudo yum install epel-release-7.noarch.rpm

Be careful :

1. epel The version of should be in line with centos The version of corresponds to , Otherwise, the installation fails , namely centos7 Version to correspond epel7 edition .

2. rpm After the installation ,rpm -ql  epel*, Make sure that... Is not installed , At this point, import rpm Signature information for

#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 (root execute )

CentOS in yum Error in installing software :No package XXX available More articles about

  1. Centos Next yum install Nginx Report errors No package nginx available.

    stay Centos6 Next use yum install Nginx Report errors Solution : yum install epel-release

  2. yum Error in installing software

    Error message Another app is currently holding the yum lock; waiting for it to exit processing method rm -rf /var/run/yum. ...

  3. yum Error in installing software :Loaded plugins:fastestnirror,security Existing lock /var/run/yum.pid

    stay linux Use in yum The following error occurred : Loaded plugins: fastestmirror, security Existing lock /var/run/yum.pid: another ...

  4. yum Error in installing software libmysqlclient.so.18()(64bit)

    error message yum -y install sysbench install sysbench It is indicated that the dependency package is missing, as shown in the figure below : Main cause The lack of Percona-XtraDB-Cluster-shared-55-5.5.37-25 ...

  5. stay Centos in yum How to install and uninstall software ( turn )

    stay Centos in yum How to install and uninstall software Installation method When installing a software yum -y install httpd When installing multiple similar software yum -y install httpd* Install multiple non similar software ...

  6. stay Centos in yum How to install and uninstall software ( Reprint )

    from : http://gzmaster.blog.51cto.com/299556/72278 Original works , Allowed to reprint , When reprinting, please make sure to indicate the article in the form of hyperlink Original source . Author information and this statement . Otherwise, the legal liability will be investigated . ...

  7. yum The installation software reported an error Segmentation fault Handle

    yum The installation software reported an error Segmentation fault Handle In the use of yum Prompt when updating the software :Segmentation fault Chinese error prompt : Segment error [root@CMS-BAK:/usr/local ...

  8. < Personal test >CentOS in yum install ffmpeg

    CentOS in yum install ffmpeg 1. Upgrade system sudo yum install epel-release -y sudo yum update -y sudo shutdown -r now 2 ...

  9. centos Use yum When I installed the software undefined symbol: CRYPTO_set_locking_callback

    1. problem stay CentOS Next use yum Install the software , As a result, the following error message appears : # yum installThere was a problem importing one of the Python mo ...

Random recommendation

  1. Get along well with Windows Service series ——Windows Service tips

    With research Windows service , Gradually master some small skills , Now share with you . take Windows Services become console programs By default Windows Service program , Compiled as Win32 Window program of . We're in the process of starting or running the program ...

  2. Java Middle set Set Usage of

    Reprint http://blog.163.com/asd_wll/blog/static/210310402010112833332260/ 1.HashSet class Java.util.HashSet Class implementation ...

  3. css3 Implement border fillet style

      Basic grammar : border-radius: 5px; Compatible with most browsers : /* compatible Mozilla(Firefox, Flock Other browsers )*/ -moz-border-radius-topleft: ...

  4. WampServer Installation illustration tutorial

    WampServer Chinese installation course _ Experience in baidu http://jingyan.baidu.com/article/0bc808fc9d66f41bd485b925.html WampServer It's famous abroad ...

  5. turn :C++ Enter a little summary of a line of strings

    Link to the original text : http://www.wutianqi.com/?p=1181 Everyone is learning C++ When programming , Generally, it is used in input cin. and cin It's blank space ( Space , Tabs and line breaks ) To define the bounds of a string . This leads to ...

  6. Create... In the class file write in Json file

    Because of business needs Today, I wrote a method that can be updated regularly Json file That is to query data from database regularly Then convert to Json object If there's data Delete the previous Json file Recreate a file And then write Json object There are many turns in the middle ...

  7. SVD And its role in Recommendation System

    In this paper, the singular value decomposition (SVD) is studied in geometric sense SVD Give a brief introduction , Then the differences and relations between eigenvalue decomposition and singular value decomposition are analyzed , Last use python The implementation will SVD Applied to recommendation system . 1.SVD Detailed explanation SVD(singular value d ...

  8. js Judge false value

    js False values in : stay JavaScript in ,false.null.0. An empty string .undefined and NaN It's called a false value . It should be noted that , In this way, the string type returns true Oh , such as 'false','0' B ...

  9. experiment 6 LCD Interface

    1. Single chip microcomputer is used to control LCD1602, stay LCD1602 The string is displayed on the , And move the whole screen to the left . #include<reg51.h> #define uchar unsigned char #define ...

  10. 【 drive 】linux Device drivers &#183; introduction

    linux Device drivers Driver English full name Device Driver, Also called device drivers . Driver is a special program used for communication between computer and external device , Equivalent to the interface between software and hardware , Usually only the operating system can use drivers . In modern computers ...