Skip to main content
Version: 22.10

Offline installation

To be able to install Centreon on servers with no internet access, create a local copy of the Centreon repository on a server that has an internet access, then make your offline Centreon servers point to it.

Creating a local copy of the Centreon repository

  1. Install Centreon repository on your mirror server.
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/22.10/el8/centreon-22.10.repo
  1. Retrieve the gpg key for the packages:
rpm --import https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
  1. Create a directory for the local repository:
mkdir -p /var/www/html/repos/centreon
  1. Install the required packages:
yum install yum-utils createrepo httpd
  1. Synchronize the repositories:
reposync -p /var/www/html/repos/centreon/ --repo centreon-stable-noarch
reposync -p /var/www/html/repos/centreon/ --repo centreon-stable
  1. Run the following commands:

Create the repository:

createrepo /var/www/html/repos/centreon/
  1. Start the web server:
service httpd start
  1. On your Centreon server, edit the following file:
vi /etc/yum.repos.d/centreon.repo

Add the following lines:

[centreon]
name=centreon
baseurl=http://<mirror_ip_address>/repos/centreon
gpgcheck=1
enabled=1

Replace <mirror_ip_address> by the actual address of your local repository.

Keeping your local repository up-to-date

To synchronize your mirror with the Centreon repository regularly, create a cron file:

cd  /var/spool/cron
crontab -e

The following commands will schedule a synchronization every day at 2 for the centreon-stable-noarch repository, and every day at 3 for the centreon-stable repository :

* 2 * * * reposync -p /var/www/html/repos/centreon/ -r centreon-stable-noarch
* 3 * * * reposync -p /var/www/html/repos/centreon/ -r centreon-stable