Installing packages on a server without internet access

Overview

Before starting the platform installation, the OS on the new server must be prepared — install the packages required for platform installation/operation.

There can be many installation options, for example: from a local repository; by collecting from a similar system with internet access; by temporarily giving the server internet access during installation, etc.

After installing the required packages, during the main installation process on the Packages and network screen, answer n to the question "Allow the installer to download packages from the internet?" (key --useapt=n).
In this mode the installer installs nothing itself: it checks for the required packages and names the missing ones on the precheck screen.

The package names below are for Debian, Ubuntu, Linux Mint, and Astra Linux. In other families they differ:

  • docker - docker.io in Astra Linux, docker-engine in ALT Linux, docker-ce in CentOS and RedOS;

  • PostgreSQL - postgresqlNN-server in ALT Linux, CentOS, and RedOS, where NN is the version number;

  • NFS - nfs-utils in ALT Linux, CentOS, and RedOS instead of nfs-kernel-server and nfs-common.

Package list.

Required packages:

  • docker-ce, docker-ce-cli, containerd.io - packages for installing docker. Without internet the installer will not install them, and without docker installation stops.

  • rsync - used when copying files to the server.

  • curl, wget - used during installation

  • tar, grep, sed, awk, find - included in the base OS distribution, but if absent the installer stops at prechecks.

  • sudo - if installation is not performed as the root user.

Optional packages (in some cases required for platform installation/configuration):

  • nfs-kernel-server - the server itself serves shared directories over NFS

  • nfs-common, cifs-utils - mounting network storage

  • postgresql-17 - using a local PostgreSQL DBMS (not in a container). Version 17 is installed by default, in Astra Linux 1.8 — version 15; another version is set by the --pgversion key

  • whiptail or dialog - pseudo-graphical installer mode; without them it works in text mode

  • python3 - needed only by the gen_container_cmd.sh script

The remaining packages are considered fully optional and may be needed during system operation for debugging or monitoring.

apt install -y rsync \
               net-tools \
               tree \
               curl \
               wget \
               zip \
               sshpass \
               sysstat \
               htop \
               iotop \
               dstat \
               smartmontools \
               tshark \
               nfs-kernel-server \
               nfs-common \
               cifs-utils \
               apt-transport-https \
               ca-certificates \
               lsb-release \
               perl-base \
               gnupg-agent \
               docker-ce \
               docker-ce-cli \
               containerd.io \
               postgresql-17