Yum + what is the message - no package available

I am trying to install an indispensable tool in my version for red linux helmets - 5.7

yum install ansible Loaded plugins: security Setting up Install Process No package ansible available. Nothing to do 

ansible is not installed on my Linux machine - for sure!

so why do I get - there is no package available. and how to resolve it?

view from yum.repos.d:

 /etc/yum.repos.d]# ls rhel-debuginfo.repo rhel-source.repo service-cd-repo.repo stp-default- repo.repo 

I solve the following:

 ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=50 time=63.4 ms 

Update - try installing the epel-release package

 yum install epel-release Loaded plugins: security service-cd | 951 B 00:00 swp-default | 951 B 00:00 Setting up Install Process No package epel-release available. Nothing to do 

second update:

  wget --no-check-certificate https://dl.fedoraproject.org/pub/epel/epel- release-latest-5.noarch.rpm --2015-08-17 14:54:20-- https://dl.fedoraproject.org/pub/epel/epel- release-latest-5.noarch.rpm Resolving dl.fedoraproject.org... 209.132.181.26, 209.132.181.27, 209.132.181.25, ... Connecting to dl.fedoraproject.org|209.132.181.26|:443... connected. WARNING: cannot verify dl.fedoraproject.org certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Hig: Unable to locally verify the issuer authority. HTTP request sent, awaiting response... 200 OK Length: 12232 (12K) [application/x-rpm] Saving to: `epel-release-latest-5.noarch.rpm' 100% [==========================================================================================>] 12,232 54.0K/s in 0.2s 2015-08-17 14:54:22 (54.0 KB/s) - `epel-release-latest-5.noarch.rpm.1' saved [12232/12232] rpm -ivh epel-release-latest-5.noarch.rpm warning: epel-release-latest-5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6 Preparing... ########################################### [100%] yum repolist Loaded plugins: security epel | 3.7 kB 00:00 service-cd | 951 B 00:00 swp-default | 951 B 00:00 repo id repo name status epel Extra Packages for Enterprise Linux 5 - i386 5,411 service-cd RHEL5 service-cd repository 155 swp-default RHEL5 yum repository 239 repolist: 5,805 yum install ansible Loaded plugins: security Setting up Install Process No package ansible available. Nothing to do 
+8
source share
3 answers

Ansible is part of the Extra Packages for Enterprise Linux (EPEL) repository, so you need to install the epel-release package first

 $ sudo yum install epel-release 

Now the repo should be visible in the repo list

 $ sudo yum repolist 

So now you can go ahead and install ANSIBLE

 $ sudo yum install ansible 

Prior to RHEL 7.x, the installation had to be done manually. Open the epel-release installation package and download the latest version of epel-release for EL5 or run the commands below

 $ wget https://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm $ sudo rpm –ivh epel-release-latest-5.noarch.rpm $ sudo yum repolist $ sudo yum install ansible 

In the ansible installation guide, this is called EPEL setup.

Hope this helps :)

Response to the second update

When installing manually, you may also need to expire the cache and recreate the local storage database before you can install the software from EPEL. This can be done using the following

 $ yum clean expire-cache $ yum createrepo 
+6
source

This requires EPEL.

Follow these steps to install Ansible version for Red Hat Enterprise Linux Server version 7 Based on the redhat version, follow the Enabline EPEL

 1. yum -y update 2. yum install wget 3. wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm 4. rpm -ivh epel-release-7-6.noarch.rpm 5. yum repolist 6. yum install ansible 
0
source

The unfortunate answer is that ansible doesn't work very well with redhat / centos 5. The OS uses python 2.4, where ansible requires> = 2.6. You can try installing a new python, but when you try to manage packages you will quickly run into problems (your new python version will not have yum modules). You can try to run newer modules on older python, but you will quickly come across a dependency map that will leave your requirements for a protocol mired in adrenaline.

If you must use the opportunity to use, do yourself a favor and install a new OS.

0
source

All Articles