Versions Compared

Key

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

Table of Contents

Note:

The software has a version checker to let you know if there are any updates to your installed modules. This version check utilizes the clients browser to run, to disable this go to /usr/local/omk/templates/opmantek/welcome.html.ep and remove the block of code that starts with "// Used to make the version badge green or red based on the users installed version", around line 276. After removing do not forget to restart daemons.

Image Added

Requirements

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.

...

NMIS9 Compatible OMK Application Installers created on or after 2020-08-18 will include a new option '-D': Dependency Check Mode.
When run with 'with  Dependency Check Mode'   enabled '-D', the Opmantek Installer cannot be run as root.

When run with 'with  Dependency Check Mode'   enabled the installer will not perform an install, but write a file containing a list of dependencies to the /tmp/ directory.
For example, sh ./opCharts-4.1.1.run -- -D  run as a normal user, would start the installer in Dependency Check Mode (-D) and only create a list of dependencies at /tmp/omk_dependency_check_opcharts upon completion.

Below is a Centos 7 Example and Debian 9 Example illustrating how to get dependencies installed on the disconnected (air-gapped) computer.

Those These examples are focused on dependencies needed to unpack the installer during execution.
However, the same strategy can be adopted to install dependencies, other than NMIS9, listed during the Dependency Check.

...

  1. 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_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.


  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/


    # 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


  3. On the disconnected (air-gapped) computer we will now install the downloaded required packages:

    # Install each of the downloaded required packages, here using tar as an example, even though it is not actually needed in this case:
    sudo apt-get install tar_1.29b-1.1_amd64.deb


Related Topics