Linux 百胜餐饮;信息是什么-没有可用的软件包
我正在尝试在我的linux red hat版本5.7上安装ansible工具Linux 百胜餐饮;信息是什么-没有可用的软件包,linux,ansible,yum,Linux,Ansible,Yum,我正在尝试在我的linux red hat版本5.7上安装ansible工具 yum install ansible Loaded plugins: security Setting up Install Process No package ansible available. Nothing to do ansible没有安装在我的linux机器上-当然 所以,为什么我得到-没有包ansible可用。如何解决这个问题 yum.repos.d中的视图为: /etc/yum.repos.d]#
yum install ansible
Loaded plugins: security
Setting up Install Process
No package ansible available.
Nothing to do
ansible没有安装在我的linux机器上-当然
所以,为什么我得到-没有包ansible可用。如何解决这个问题
yum.repos.d中的视图为:
/etc/yum.repos.d]# ls
rhel-debuginfo.repo rhel-source.repo service-cd-repo.repo stp-default- repo.repo
我的决定如下:
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
更新-尝试安装epel发布包
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
第二次更新:
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's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Hig:
Unable to locally verify the issuer's 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
Ansible是EnterpriseLinux(EPEL)存储库额外软件包的一部分,所以您需要首先
回购现在应该在回购列表中可见
$ sudo yum repolist
现在您可以继续安装ansible了
$ sudo yum install ansible
在RHEL7.x之前,安装需要手动完成。
打开并下载最新版本的epel release for EL5,或按照以下命令操作
$ 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
在ansible的安装手册中,这被称为
希望这有帮助:)
对第二次更新的回应
手动安装时,您可能还需要终止缓存并重新创建本地存储库数据库,然后才能从EPEL安装软件。这可以通过以下方法实现
$ yum clean expire-cache
$ yum createrepo
这需要EPEL 按照以下步骤安装Ansible for Red Hat Enterprise Linux Server 7版 基于redhat版本,请遵循
查看我的更新我尝试安装yum install-epel版本-但我得到相同的状态-:(@maihabunah在RHEL的旧版本上,需要手动下载并安装该软件包。在需要时,首先在AMZN LinuxRPM url上运行
sudo yum config manager--enable epel
不再有效。它应该是https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
或https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
@RikardSöderström当然,完全可以理解,谢谢你的解释!如果是这样,提供所需rpm的当前url不值得吗?可以在https://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm
epel发布-7-11.noarch.rpm不可用,请尝试epel-release-7-12.noarch.rpm在接下来的步骤中也不要忘记更新12。这是一个没有BS的答案,工作起来很有魅力。我唯一想更改的是,wget
和rpm-ivh…
命令中使用的文件,随着时间的推移可能会有不同的名称。我不得不使用epel-release-7-13.无参考转速
$ yum clean expire-cache
$ yum createrepo
1. yum -y update
2. yum install wget
3. wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
4. rpm -ivh epel-release-7-11.noarch.rpm
5. yum repolist
6. yum install ansible