Tools: Update: Install repository Ansible Automation Platform Offline

Tools: Update: Install repository Ansible Automation Platform Offline

Bước 1: Trên máy có internet (đã subscribe RHSM)

Bước 2: Coppy vào môi trường disconnected Tìm tên repo và version mong muốn

sudo subscription-manager repos --list > repo.txt fdsfdsfdvim repo.txt để tìm ansible-automation-platform-2.6-for-rhel-9-x86_64-source-rpms Cài tool syncdnf install -y dnf-utils Sync repo về localreposync -m --repoid=ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms --download-path=/tmp/aap-repo [ansible-automation-platform-2.6-for-rhel-9-x86_64-source-rpms]name = Red Hat Ansible Automation Platform 2.6 for RHEL 9 x86_64 (Source RPMs)baseurl = file:///tmp/ansible-automation-platform-2.6-for-rhel-9-x86_64-rpmsenabled = 1gpgcheck = 0 sudo dnf install ansible-dev-tools

dnf search aiohttp Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to ? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Command

Copy

$ -weight: 600;">sudo subscription-manager repos --list > repo.txt vim repo.txt -weight: 500;">dnf -weight: 500;">install -y -weight: 500;">dnf-utils reposync -m --repoid=ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms --download-path=/tmp/aap-repo -weight: 500;">dnf -weight: 500;">install -y createrepo createrepo /tmp/aap-repo/ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms/ -weight: 600;">sudo vim /etc/-weight: 500;">yum.repos.d/ansible.repo [ansible-automation-platform-2.6-for-rhel-9-x86_64-source-rpms] name = Red Hat Ansible Automation Platform 2.6 for RHEL 9 x86_64 (Source RPMs) baseurl = file:///tmp/ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms enabled = 1 gpgcheck = 0 -weight: 600;">sudo -weight: 500;">dnf repolist -weight: 600;">sudo -weight: 500;">dnf -weight: 500;">install ansible-dev-tools -weight: 500;">dnf search aiohttp - Tìm tên repo và version mong muốn -weight: 600;">sudo subscription-manager repos --list > repo.txt - fdsfds fd vim repo.txt để tìm ansible-automation-platform-2.6-for-rhel-9-x86_64-source-rpms - Cài tool sync -weight: 500;">dnf -weight: 500;">install -y -weight: 500;">dnf-utils - Sync repo về local reposync -m --repoid=ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms --download-path=/tmp/aap-repo - Tạo metadata -weight: 500;">dnf -weight: 500;">install -y createrepo createrepo /tmp/aap-repo/ansible-automation-platform-2.6-for-rhel-9-x86_64-rpms/ - Dùng xftp hoặc gì đó đều được - Tạo repo local mount từ folder vào -weight: 600;">sudo vim /etc/-weight: 500;">yum.repos.d/ansible.repo - Test nhanh kết quả -weight: 600;">sudo -weight: 500;">dnf repolist