这是我下载到本地的包
上传到root下
LLS
python3-babel-2.5.1-7.el8.noarch.rpm python3-cffi-1.11.5-5.el8.x86_64.rpm
python3-cryptography-3.2.1-5.el8.x86_64.rpm python3-jinja2-2.10.1-3.el8.noarch.rpm
python3-jmespath-0.9.0-11.el8.noarch.rpm python3-markupsafe-0.23-19.el8.x86_64.rpm
python3-pip-9.0.3-20.el8.rocky.0.noarch.rpm python3-pyasn1-0.3.7-6.el8.noarch.rpm
python3-pycparser-2.14-14.el8.noarch.rpm python3-pytz-2017.2-9.el8.noarch.rpm
python3-pyyaml-3.12-12.el8.x86_64.rpm python3-setuptools-39.2.0-6.el8.noarch.rpm
python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64.rpm
sftp> put *
Uploading python3-babel-2.5.1-7.el8.noarch.rpm to /root/python3-babel-2.5.1-7.el8.noarch.rpm
100% 4900KB 4900KB/s 00:00:00
I:\ansible源\python3-babel-2.5.1-7.el8.noarch.rpm: 5018064 bytes transferred in 0 seconds (4900 KB/s)
Uploading python3-cffi-1.11.5-5.el8.x86_64.rpm to /root/python3-cffi-1.11.5-5.el8.x86_64.rpm
100% 236KB 236KB/s 00:00:00
I:\ansible源\python3-cffi-1.11.5-5.el8.x86_64.rpm: 242436 bytes transferred in 0 seconds (236 KB/s)
Uploading python3-cryptography-3.2.1-5.el8.x86_64.rpm to /root/python3-cryptography-3.2.1-5.el8.x86_64.rpm
100% 557KB 557KB/s 00:00:00
I:\ansible源\python3-cryptography-3.2.1-5.el8.x86_64.rpm: 571244 bytes transferred in 0 seconds (557 KB/s)
Uploading python3-jinja2-2.10.1-3.el8.noarch.rpm to /root/python3-jinja2-2.10.1-3.el8.noarch.rpm
100% 536KB 536KB/s 00:00:00
I:\ansible源\python3-jinja2-2.10.1-3.el8.noarch.rpm: 549412 bytes transferred in 0 seconds (536 KB/s)
Uploading python3-jmespath-0.9.0-11.el8.noarch.rpm to /root/python3-jmespath-0.9.0-11.el8.noarch.rpm
100% 43KB 43KB/s 00:00:00
I:\ansible源\python3-jmespath-0.9.0-11.el8.noarch.rpm: 44804 bytes transferred in 0 seconds (43 KB/s)
Uploading python3-markupsafe-0.23-19.el8.x86_64.rpm to /root/python3-markupsafe-0.23-19.el8.x86_64.rpm
100% 37KB 37KB/s 00:00:00
I:\ansible源\python3-markupsafe-0.23-19.el8.x86_64.rpm: 38608 bytes transferred in 0 seconds (37 KB/s)
Uploading python3-pip-9.0.3-20.el8.rocky.0.noarch.rpm to /root/python3-pip-9.0.3-20.el8.rocky.0.noarch.rpm
100% 18KB 18KB/s 00:00:00
I:\ansible源\python3-pip-9.0.3-20.el8.rocky.0.noarch.rpm: 19408 bytes transferred in 0 seconds (18 KB/s)
Uploading python3-pyasn1-0.3.7-6.el8.noarch.rpm to /root/python3-pyasn1-0.3.7-6.el8.noarch.rpm
100% 125KB 125KB/s 00:00:00
I:\ansible源\python3-pyasn1-0.3.7-6.el8.noarch.rpm: 128228 bytes transferred in 0 seconds (125 KB/s)
Uploading python3-pycparser-2.14-14.el8.noarch.rpm to /root/python3-pycparser-2.14-14.el8.noarch.rpm
100% 107KB 107KB/s 00:00:00
I:\ansible源\python3-pycparser-2.14-14.el8.noarch.rpm: 110516 bytes transferred in 0 seconds (107 KB/s)
Uploading python3-pytz-2017.2-9.el8.noarch.rpm to /root/python3-pytz-2017.2-9.el8.noarch.rpm
100% 52KB 52KB/s 00:00:00
I:\ansible源\python3-pytz-2017.2-9.el8.noarch.rpm: 54216 bytes transferred in 0 seconds (52 KB/s)
Uploading python3-pyyaml-3.12-12.el8.x86_64.rpm to /root/python3-pyyaml-3.12-12.el8.x86_64.rpm
100% 191KB 191KB/s 00:00:00
I:\ansible源\python3-pyyaml-3.12-12.el8.x86_64.rpm: 196500 bytes transferred in 0 seconds (191 KB/s)
Uploading python3-setuptools-39.2.0-6.el8.noarch.rpm to /root/python3-setuptools-39.2.0-6.el8.noarch.rpm
100% 161KB 161KB/s 00:00:00
I:\ansible源\python3-setuptools-39.2.0-6.el8.noarch.rpm: 165408 bytes transferred in 0 seconds (161 KB/s)
Uploading python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64.rpm to /root/python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64.rpm
100% 18KB 18KB/s 00:00:00
I:\ansible源\python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64.rpm: 18722 bytes transferred in 0 seconds (18 KB/s)
root下不能够有其他的文件,只要这个包的软件包
rm -rf anaconda-ks.cfg
yum install -y *
Last metadata expiration check: 0:01:06 ago on Sat 19 Mar 2022 11:10:10 AM EDT.
Dependencies resolved.
===============================================================================================================
Package Architecture Version Repository Size
===============================================================================================================
Installing:
python3-babel noarch 2.5.1-7.el8 @commandline 4.8 M
python3-cffi x86_64 1.11.5-5.el8 @commandline 237 k
python3-cryptography x86_64 3.2.1-5.el8 @commandline 558 k
python3-jinja2 noarch 2.10.1-3.el8 @commandline 537 k
python3-jmespath noarch 0.9.0-11.el8 @commandline 44 k
python3-markupsafe x86_64 0.23-19.el8 @commandline 38 k
python3-pip noarch 9.0.3-20.el8.rocky.0 @commandline 19 k
python3-pyasn1 noarch 0.3.7-6.el8 @commandline 125 k
python3-pycparser noarch 2.14-14.el8 @commandline 108 k
python3-pytz noarch 2017.2-9.el8 @commandline 53 k
python3-pyyaml x86_64 3.12-12.el8 @commandline 192 k
python3-setuptools noarch 39.2.0-6.el8 @commandline 162 k
python36 x86_64 3.6.8-38.module+el8.5.0+671+195e4563 @commandline 18 k
Enabling module streams:
python36 3.6
Transaction Summary
===============================================================================================================
Install 13 Packages
Total size: 6.8 M
Installed size: 29 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-setuptools-39.2.0-6.el8.noarch 1/13
Installing : python3-pip-9.0.3-20.el8.rocky.0.noarch 2/13
Installing : python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64 3/13
Running scriptlet: python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64 3/13
Installing : python3-pytz-2017.2-9.el8.noarch 4/13
Installing : python3-babel-2.5.1-7.el8.noarch 5/13
Installing : python3-pycparser-2.14-14.el8.noarch 6/13
Installing : python3-cffi-1.11.5-5.el8.x86_64 7/13
Installing : python3-markupsafe-0.23-19.el8.x86_64 8/13
Installing : python3-jinja2-2.10.1-3.el8.noarch 9/13
Installing : python3-cryptography-3.2.1-5.el8.x86_64 10/13
Installing : python3-pyyaml-3.12-12.el8.x86_64 11/13
Installing : python3-pyasn1-0.3.7-6.el8.noarch 12/13
Installing : python3-jmespath-0.9.0-11.el8.noarch 13/13
Running scriptlet: python3-jmespath-0.9.0-11.el8.noarch 13/13
Verifying : python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64 1/13
Verifying : python3-babel-2.5.1-7.el8.noarch 2/13
Verifying : python3-cffi-1.11.5-5.el8.x86_64 3/13
Verifying : python3-cryptography-3.2.1-5.el8.x86_64 4/13
Verifying : python3-jinja2-2.10.1-3.el8.noarch 5/13
Verifying : python3-jmespath-0.9.0-11.el8.noarch 6/13
Verifying : python3-markupsafe-0.23-19.el8.x86_64 7/13
Verifying : python3-pip-9.0.3-20.el8.rocky.0.noarch 8/13
Verifying : python3-pyasn1-0.3.7-6.el8.noarch 9/13
Verifying : python3-pycparser-2.14-14.el8.noarch 10/13
Verifying : python3-pytz-2017.2-9.el8.noarch 11/13
Verifying : python3-pyyaml-3.12-12.el8.x86_64 12/13
Verifying : python3-setuptools-39.2.0-6.el8.noarch 13/13
Installed:
python3-babel-2.5.1-7.el8.noarch python3-cffi-1.11.5-5.el8.x86_64
python3-cryptography-3.2.1-5.el8.x86_64 python3-jinja2-2.10.1-3.el8.noarch
python3-jmespath-0.9.0-11.el8.noarch python3-markupsafe-0.23-19.el8.x86_64
python3-pip-9.0.3-20.el8.rocky.0.noarch python3-pyasn1-0.3.7-6.el8.noarch
python3-pycparser-2.14-14.el8.noarch python3-pytz-2017.2-9.el8.noarch
python3-pyyaml-3.12-12.el8.x86_64 python3-setuptools-39.2.0-6.el8.noarch
python36-3.6.8-38.module+el8.5.0+671+195e4563.x86_64
Complete!
安装完成