...
On the disconnected (air-gapped) computer we will firstly determine which pre-installation required packages need to be downloaded:
First we get the architecture:
uname --m
x86_64Then we check if tar package is installed:
rpm -q tar.x86_64
tar-1.26-35.el7.x86_64
# tar package is installed.
# We will only consider downloading and installing it later if we find we are unable to unpack the Opmantek Installer Runfile.
# Next we check if libnsl package is installed:
rpm -q libnsl
package libnsl is not installed
# libnsl is not installed.
# From the above checks on this disconnected (air-gapped) computer, we have ascertained that the following packages are needed:linbnsl
Using the connected computer with same OS and Version we will now fetch the pre-installation required packages:
# Navigate to a clean directory to download packages to
mkdir -p /tmp/omk_opXyz_packages
cd /tmp/omk_opXyz_packages/
# Download each of the dependent packages:
yumdownloader --resolve libnsl --archlist=x86_64Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 26 kB 00:00:00
* base: centos.mirror.serversaustralia.com.au
* epel: mirror.xeonbd.com
* extras: centos.mirror.serversaustralia.com.au
* updates: mirror.nsw.coloau.com.au
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
No Match for argument libnsl
Nothing to download
# At first sight it appears we don't need libnsl for the OS + Version we are running this example on.
# If the Opmantek Installer Runfile fails to unpack we may need to download this package from an OS Repository that is not enabled by default.
# Since we don't have any package to download in this example we will download the tar package.
# We will assume for the purposes of this example that the tar package needs to be updated to a newer version.
# The command to download tar package with dependencies is:
yumdownloader --resolve tar --archlist=x86_64
# Downloaded packages will now be in the current directory and ready for transferring to the disconnected (air-gapped) computer where they will be installed.
ls -la-rw-rw-r--. 1 user user 865848 Nov 12 2018 tar-1.26-35.el7.x86_64.rpm
On the disconnected (air-gapped) computer we will now install the downloaded required packages:
# Install each of the downloaded required packages.
# Since we don't have any package to install in this example we will install the tar package.
# We will assume for the purposes of this example that the tar package needs to be updated to a newer version.
sudo yum install tar-1.26-35.el7.x86_64.rpm
...
On the disconnected (air-gapped) computer we will firstly determine which pre-installation required packages need to be downloaded:
# We First we get the architecture:
uname --m
x86_64# Next we check if tar package is installed:
type tar
tar is /bin/tar
# tar package is installed
# We will only consider downloading and installing it later if we find we are unable to unpack the Opmantek Installer Runfile.
# From the above checks on this disconnected (air-gapped) computer, we have ascertained that no packages are needed.
# Since we don't have any package to download in this example we will download the tar package.
# We will assume for the purposes of this example that the tar package needs to be updated to a newer version.Using the connected computer with same OS and Version we would now fetch the pre-installation required packages:
# Navigate to a clean directory to download packages to
mkdir -p /tmp/omk_opXyz_packages
cd /tmp/omk_opXyz_packages/
# Since we don't have any package to download in this example we will download the tar package.
# We will assume for the purposes of this example that the tar package needs to be updated to a newer version.
# The command to download tar package with dependencies is:
apt-get download tar
Get:1 http://ftp.us.debian.org/debian stretch/main amd64 tar amd64 1.29b-1.1 [759 kB]
Fetched 759 kB in 2s (305 kB/s)
# Downloaded packages will now be in the current directory and ready for transferring to the disconnected (air-gapped) computer where they will be installed:
ls -la-rw-rw-r--. 1 user user 4463036 Apr 3 21:12 759354 Oct 31 2016 tar_1.29b-1.1_amd64.deb
On the disconnected (air-gapped) computer we will now install the downloaded required packages:
# Install each of the downloaded required packages, here using libacl1 as an example, even though it is not actually needed in this case:
sudo apt-get install tar_1.29b-1.1_amd64.deb