【发布时间】:2019-09-19 22:24:43
【问题描述】:
我有一台使用 CentOS 6.9 作为操作系统的机器,它是最小的。我试图在我的机器上安装 Ansible。我无法将我的机器连接到互联网来设置存储库并安装 Ansible,所以我下载了ansible.tar.gz。我应该怎么做才能安装它?
tar 文件内容:
drwxr-xr-x. 2 root root 4096 Mar 14 22:33 bin
drwxr-xr-x. 2 root root 4096 Mar 14 22:33 changelogs
drwxr-xr-x. 3 root root 4096 Mar 14 22:33 contrib
-rw-r--r--. 1 root root 35148 Mar 14 22:33 COPYING
drwxr-xr-x. 6 root root 4096 Mar 14 22:33 docs
drwxr-xr-x. 3 root root 4096 Mar 14 22:33 examples
drwxr-xr-x. 3 root root 4096 Mar 14 22:33 lib
drwxr-xr-x. 2 root root 4096 Mar 14 22:33 licenses
-rw-r--r--. 1 root root 13416 Mar 14 22:33 Makefile
-rw-r--r--. 1 root root 759 Mar 14 22:33 MANIFEST.in
drwxr-xr-x. 10 root root 4096 Mar 14 22:33 packaging
-rw-r--r--. 1 root root 7298 Mar 14 22:33 PKG-INFO
-rw-r--r--. 1 root root 4752 Mar 14 22:33 README.rst
-rw-r--r--. 1 root root 371 Mar 14 22:33 requirements.txt
-rw-r--r--. 1 root root 10714 Mar 14 22:33 setup.py
-rw-r--r--. 1 root root 3624 Mar 14 22:33 shippable.yml
-rw-r--r--. 1 root root 5565 Mar 14 22:33 SYMLINK_CACHE.json
drwxr-xr-x. 11 root root 4096 Mar 14 22:33 test
-rw-r--r--. 1 root root 1129 Mar 14 22:33 tox.ini
我尝试安装 epel 然后安装 ansible 但我没有成功:
rpm -ivh epel-release-6-8.noarch.rpm
【问题讨论】:
-
rpm -ivh epel-release-6-8.noarch.rpm不起作用。首先阅读自述文件,它将解释安装步骤。 docs.ansible.com/ansible/latest/installation_guide/… -
@MostafaZare 我以前读过它的自述文件,但没有解释。您引用的链接是使用 epel repo 和 yum 安装。我错过了什么吗?