ansible
rhel 7.6 시스템에 오프라인으로 설치 하려고 합니다 (참조-https://www.linuxschoolonline.com/how-to-install-ansible-offline-on-centos-or-redhat/)
Ansible을 사용하려면 시스템이 다음 전제 조건을 충족해야 합니다.
python-crypto
python-httplib
python-jinja2
python-keyczar
sshpass
그래서 우리는 yum을 통해 요청된 모든 rpm을 설치합니다.
보시다시피 실패합니다
Error: Package: python-keyczar-0.71c-8.mga7.noarch (/python-keyczar-0.71c-8.mga7.noarch)
Requires: python2.7dist(pyasn1)
Error: Package: python-keyczar-0.71c-8.mga7.noarch (/python-keyczar-0.71c-8.mga7.noarch)
Requires: python2.7dist(pycrypto) > 2.0
참고하세요. Redhat 7.x 저장소에 등록되어 있지만 누락된 rpm을 어디서 가져와야 하는지, 그리고 왜 rhel 저장소에 필요한 rpm이 모두 포함되어 있지 않은지 잘 모르겠습니다.
이러한 필수 rpm을 모두 설치하기 위한 제안 사항이 있습니까?
yum localinstall -y python-keyczar-0.71c-2.el7.noarch.rpm sshpass-1.06-2.el7.x86_64.rpm python2-crypto-2.6.1-15.el7.x86_64.rpm python-httplib2-0.9.2-1.el7.noarch.rpm python-jinja2-2.7.2-4.el7.noarch.rpm python-keyczar-0.71c-8.mga7.noarch.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Examining python-keyczar-0.71c-2.el7.noarch.rpm: python-keyczar-0.71c-2.el7.noarch
Marking python-keyczar-0.71c-2.el7.noarch.rpm to be installed
Examining sshpass-1.06-2.el7.x86_64.rpm: sshpass-1.06-2.el7.x86_64
sshpass-1.06-2.el7.x86_64.rpm: does not update installed package.
Examining python2-crypto-2.6.1-15.el7.x86_64.rpm: python2-crypto-2.6.1-15.el7.x86_64
Marking python2-crypto-2.6.1-15.el7.x86_64.rpm to be installed
Examining python-httplib2-0.9.2-1.el7.noarch.rpm: python-httplib2-0.9.2-1.el7.noarch
Marking python-httplib2-0.9.2-1.el7.noarch.rpm as an update to python-httplib2-0.9.1-2.1.el7.noarch
Examining python-jinja2-2.7.2-4.el7.noarch.rpm: python-jinja2-2.7.2-4.el7.noarch
Marking python-jinja2-2.7.2-4.el7.noarch.rpm as an update to python-jinja2-2.7.2-3.el7_6.noarch
Examining python-keyczar-0.71c-8.mga7.noarch.rpm: python-keyczar-0.71c-8.mga7.noarch
Marking python-keyczar-0.71c-8.mga7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package python-httplib2.noarch 0:0.9.1-2.1.el7 will be updated
---> Package python-httplib2.noarch 0:0.9.2-1.el7 will be an update
---> Package python-jinja2.noarch 0:2.7.2-3.el7_6 will be updated
---> Package python-jinja2.noarch 0:2.7.2-4.el7 will be an update
---> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed
---> Package python-keyczar.noarch 0:0.71c-8.mga7 will be installed
--> Processing Dependency: python2.7dist(pycrypto) > 2.0 for package: python-keyczar-0.71c-8.mga7.noarch
--> Processing Dependency: python2.7dist(pyasn1) for package: python-keyczar-0.71c-8.mga7.noarch
---> Package python2-crypto.x86_64 0:2.6.1-15.el7 will be installed
--> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-15.el7.x86_64
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.17-26.el7 will be installed
--> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-26.el7.x86_64
--> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-26.el7.x86_64
---> Package python-keyczar.noarch 0:0.71c-8.mga7 will be installed
--> Processing Dependency: python2.7dist(pycrypto) > 2.0 for package: python-keyczar-0.71c-8.mga7.noarch
--> Processing Dependency: python2.7dist(pyasn1) for package: python-keyczar-0.71c-8.mga7.noarch
--> Running transaction check
---> Package libtommath.x86_64 0:0.42.0-6.el7 will be installed
---> Package python-keyczar.noarch 0:0.71c-8.mga7 will be installed
--> Processing Dependency: python2.7dist(pycrypto) > 2.0 for package: python-keyczar-0.71c-8.mga7.noarch
--> Processing Dependency: python2.7dist(pyasn1) for package: python-keyczar-0.71c-8.mga7.noarch
--> Finished Dependency Resolution
Error: Package: python-keyczar-0.71c-8.mga7.noarch (/python-keyczar-0.71c-8.mga7.noarch)
Requires: python2.7dist(pyasn1)
Error: Package: python-keyczar-0.71c-8.mga7.noarch (/python-keyczar-0.71c-8.mga7.noarch)
Requires: python2.7dist(pycrypto) > 2.0
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
답변1
두 가지 버전을 설치하려고 하는데 python-keyczar
그 중 하나가 Mageia용입니다.
일반적으로 오프라인 설치에 필요한 패키지를 파악하려면 기준선부터 시작해야 합니다.달리기
sudo yum install --downloadonly --downloaddir=<directory> <package>
그러면 필요한 모든 패키지가 지정된 디렉터리에 다운로드됩니다.
Ansible 예에서는 다음을 따릅니다.RHEL 7 설치 지침:
sudo subscription-manager repos --enable rhel-7-server-ansible-2.9-rpms
mkdir /tmp/ansible-packages
sudo yum install --downloadonly --downloaddir=/tmp/ansible-packages ansible
그러면 모든 요구 사항이 에 다운로드됩니다 /tmp/ansible-packages
. 그런 다음 패키지를 다른 시스템에 복사하고(RHEL 구독에 적절한 수의 단위가 있다고 가정) yum localinstall
.