This method works best with a connected computer with same OS and Version.
This enables one to ascertain the dependent packages that need to be downloaded by the Package Manager for the disconnected (air-gapped) computer.
sudo will only be used when necessary.
On Redhat and Centos OS, tar and libnsl may need to be installed as they are needed to unpack the installer runfile.
# Navigate to a clean directory to download packages to
bash.x86_64 4.2.46-34.el7
# Now we check each package and package-version against the dependency lists above: rpm -q glibc.i686 rpm -q info.x86_64 rpm -q libacl.x86_64 rpm -q libselinux.x86_64 rpm -q tar.x86_64 # From the above checks on this disconnected (air-gapped) computer, we have ascertained that the following packages are needed: glibc.i686 2.17-307.el7.1 |
# Download each of the dependent packages: Loaded plugins: fastestmirror # Downloaded packages will now be in the current directory and ready for transferring to the disconnected (air-gapped) computer where they will be installed: -rw-rw-r--. 1 user user 4463036 Apr 3 21:12 glibc-2.17-307.el7.1.i686.rpm |
# Install each of the downloaded required packages: |
On Debian and Ubuntu OS, tar, which is normally installed by default, may need to be installed as it is needed to unpack the installer runfile.
# Navigate to a clean directory to download packages to
libacl1 (>= 2.2.51-8) # Now we check each package and package-version against the dependency lists above: dpkg -s libc6|grep -e "Status:" -e "Version:"Status: install ok installed dpkg -s libselinux1|grep -e "Status:" -e "Version:" # From the above checks on this disconnected (air-gapped) computer, we have ascertained that no packages are needed. |
# Download each of the dependent packages, here using libacl1 as an example, even though it is not actually needed in this case: Get:1 http://ftp.us.debian.org/debian stretch/main amd64 libacl1 amd64 2.2.52-3+b1 [28.1 kB] # Downloaded packages will now be in the current directory and ready for transferring to the disconnected (air-gapped) computer where they will be installed: -rw-rw-r--. 1 user user 4463036 Apr 3 21:12 libacl1_2.2.52-3+b1_amd64.deb |
# Install each of the downloaded required packages, here using libacl1 as an example, even though it is not actually needed in this case: |