rpm方式離線安裝ansible

運維那些事發表於2020-11-17
#在同等版本有外網的機器上下載ansible全部rpm+依賴包然後上傳到無網路伺服器進行安裝
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# yum install yum-utils -y
[root@localhost ~]# mkdir ansible
[root@localhost ~]# yumdownloader --resolve --destdir /root/ansible/  ansible
/root/ansible/	這個是存放的路徑
ansible 		是要下載軟體
[root@localhost ~]# ll /root/ansible
-rw-r--r-- 1 root root 1588658 Nov 17 18:28 ansible-2.9.14-1.el7.noarch.rpm
-rw-r--r-- 1 root root   56068 Jan 30  2015 libyaml-0.1.4-11.el7_0.x86_64.rpm
-rw-r--r-- 1 root root  514504 Apr 25  2018 python2-cryptography-1.7.2-2.el7.x86_64.rpm
-rw-r--r-- 1 root root  128003 Jun 20 05:14 python2-httplib2-0.18.1-3.el7.noarch.rpm
-rw-r--r-- 1 root root   42303 Apr 23  2020 python2-jmespath-0.9.4-2.el7.noarch.rpm
-rw-r--r-- 1 root root  102132 Nov 21  2016 python2-pyasn1-0.1.9-7.el7.noarch.rpm
-rw-r--r-- 1 root root 1426348 Jul  4  2014 python-babel-0.9.6-8.el7.noarch.rpm
-rw-r--r-- 1 root root    5932 Mar 14  2015 python-backports-1.0-8.el7.x86_64.rpm
-rw-r--r-- 1 root root   12896 Apr 25  2018 python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm
-rw-r--r-- 1 root root  223012 Nov 21  2016 python-cffi-1.6.0-5.el7.x86_64.rpm
-rw-r--r-- 1 root root   53496 Nov 25  2015 python-enum34-1.0.4-1.el7.noarch.rpm
-rw-r--r-- 1 root root   95952 Aug 11  2017 python-idna-2.4-1.el7.noarch.rpm
-rw-r--r-- 1 root root   35176 Nov 21  2016 python-ipaddress-1.0.16-2.el7.noarch.rpm
-rw-r--r-- 1 root root  531040 Aug 23  2019 python-jinja2-2.7.2-4.el7.noarch.rpm
-rw-r--r-- 1 root root   25792 Jul  4  2014 python-markupsafe-0.11-10.el7.x86_64.rpm
-rw-r--r-- 1 root root  275112 Nov 21  2018 python-paramiko-2.1.1-9.el7.noarch.rpm
-rw-r--r-- 1 root root  125732 Aug 11  2017 python-ply-3.4-11.el7.noarch.rpm
-rw-r--r-- 1 root root  106984 Nov 25  2015 python-pycparser-2.14-1.el7.noarch.rpm
-rw-r--r-- 1 root root  406404 Aug 11  2017 python-setuptools-0.9.8-7.el7.noarch.rpm
-rw-r--r-- 1 root root   29404 Nov 25  2015 python-six-1.9.0-2.el7.noarch.rpm
-rw-r--r-- 1 root root  156952 Jul  4  2014 PyYAML-3.10-11.el7.x86_64.rpm
-rw-r--r-- 1 root root   21896 Sep  8  2017 sshpass-1.06-2.el7.x86_64.rpm
[root@localhost ~]# cd /root/ansible && rpm -ivh *.rpm --force --nodeps

相關文章