Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. On the disconnected (air-gapped) computer we will firstly determine which pre-installation required packages need to be downloaded:

    # First 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.


    # Extract the list of dependent packages - I've used sort and formatted the results
    # to make the needed comparison to those packages already installed easier:
    # to see  the unsorted results run command apt-cache show tar
    apt-cache show tar|grep "Pre-Depends:"|sed -e 's/Pre-Depends:\s\+//' -e 's/,\s*/\n/g'|sort|uniq

    libacl1 (>= 2.2.51-8)
    libc6 (>= 2.17)
    libselinux1 (>= 1.32)

    # Now we check each package and package-version against the dependency lists above:
    dpkg -s libacl1|grep -e "Status:" -e "Version:"
    Status: install ok installed
    Version: 2.2.52-3+b1

    dpkg -s libc6|grep -e "Status:" -e "Version:"Status: install ok installed
    Status: install ok installed
    Version: 2.24-11+deb9u4

    dpkg -s libselinux1|grep -e "Status:" -e "Version:"
    Status: install ok installed
    Version: 2.6-3+b3

    # 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.


  2. 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/


    # Download each of the dependent packages, here using libacl1 as an example, even though it is not actually needed in this caseSince 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 libacl1tar
    Get:1 http://ftp.us.debian.org/debian stretch/main amd64 libacl1 tar amd64 21.2.52-3+b1 [2829b-1.1 [759 kB]
    Fetched 28.1 759 kB in 1s 2s (16.6 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 libacl1_2.2.52-3+b112 759354 Oct 31 2016 tar_1.29b-1.1_amd64.deb


  3. 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 libacl1install tar_21.2.52-3+b129b-1.1_amd64.deb