The simplest answer is trying using reposync to pull down and setup local repos. Then point your offline server to the newly create local repos. Your target repos would be all of those referenced in the spacewalk installation document.
Reference: https://access.redhat.com/solutions/23016 Install the required packages * Install the "yum-utils" and "createrepo" packages on the registered system. Raw<https://access.redhat.com/solutions/23016> # yum install yum-utils createrepo ________________________________ Create a basic local repository NOTE: Change <repo-id> to the repository you intend to sync * Sync all the packages from a specified repository to a specified directory Raw<https://access.redhat.com/solutions/23016> # reposync --gpgcheck -l --repoid=<repo-id> for example: # reposync --gpgcheck -l --repoid=rhel-6-server-rpms --download_path=/var/www/html * In the targeted directory, there will be a new directory named after the Repository ID. All the downloaded packages will be inside this directory. Raw<https://access.redhat.com/solutions/23016> # cd /var/www/html/<repo-id> # createrepo -v /var/www/html/<repo-id> ________________________________ Create a local repository that allows clients to use groups How to download all the metadata for the repository that is being synced which will allow the use of various plugins such as 'yum groupinstall' * On RHEL6 and later, reposync supports the --download-metadata and --downloadcomps options. For example: Raw<https://access.redhat.com/solutions/23016> # reposync --gpgcheck -l --repoid=repo-id --downloadcomps --download-metadata for example: # reposync --gpgcheck -l --repoid=rhel-6-server-rpms --download_path=/var/www/html --downloadcomps --download-metadata * To have access to the group data for the newly synced repo, please run the createrepo command as follows: Raw<https://access.redhat.com/solutions/23016> # cd /var/www/html/<repo-id> # createrepo -v /var/www/html/<repo-id>/ -g comps.xml ________________________________ Modify the repodata to define which packages are security related. * These steps require that the createrepo command has already been run. Raw<https://access.redhat.com/solutions/23016> # yum clean all # yum list-sec # find /var/cache/yum/ -name updateinfo.xml ##For RHEL 5 use '-name *updateinfo.xml*' # mv updateinfo.xml /var/www/html/<repo-id>/repodata/updateinfo.xml # modifyrepo /var/www/html/<repo-id>/repodata/updateinfo.xml /var/www/html/<repo-id>/repodata * How to update security Erratas on system which is not connected to internet ?<https://access.redhat.com/solutions/55654> ________________________________ Create a local repo with Red Hat Enterprise Linux 8 * Sync all enabled repositories and their repodata Raw<https://access.redhat.com/solutions/23016> # reposync -p <download-path> --download-metadata --setopt=repo_id.module_hotfixes=1 Regards, Dennis From: spacewalk-list-boun...@redhat.com <spacewalk-list-boun...@redhat.com> On Behalf Of Ananta Chakravartula Sent: Saturday, June 22, 2019 8:32 AM To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] How to download Spacewalk for an offline install? yumdownloader to some machine on internet and transfer to a local repo? cheers, ac sent from my phone. Sory fer eny typeos On Fri, Jun 21, 2019, 11:49 AM Paul Greene <paul.greene...@gmail.com<mailto:paul.greene...@gmail.com>> wrote: Is there an archive you can download of just the needed Spacewalk 2.9 packages to do an offline install of Spacewalk (the server and client packages)? I have access to CentOS 7 base, updates, and EPEL 7 via local repos, so I don't need anything from there - I just need the spacewalk rpms. Thanks, PG _______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com> https://www.redhat.com/mailman/listinfo/spacewalk-list<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list&data=02%7C01%7C%7Cf024917eed14474ac89308d6f70ddda8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636968036253328507&sdata=KPRL0JfzENG7mBNzce%2B8ddE8XsLC7dDQQ9k8%2FBIYokA%3D&reserved=0>
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list