I have a CentOS 6 system which, for security reasons, is airgapped. It may have never been connected to the internet, and if it has, it hasn't been updated in a long time.
I want to put all the .rpm packages on a drive so that they can be installed offline without querying the internet. However, the issue I am running into on my test VM is that
yum keeps hanging and trying to update from an online repository, even though the local path is specified.
Also, is there a way to easily grab a package and all dependencies for that package using
yumdownloader? At the moment, it still misses some dependencies (e.g. when I pull the gcc-c++ rpm, it'll grab
gcc but it won't pull
I have already tried a solution like this, but I cannot assume there will already be a dependency tree, or that
yum will be up to date.
On a fresh install of the docker image, the first time I try to run yum (with internet disabled), I get
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again