Skip to main content
Version: 23.04

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 the repository on your mirror server.
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/23.04/el8/centreon-23.04.repo
dnf clean all --enablerepo=*
dnf update

Then 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
  2. Install the required packages:

    yum install yum-utils createrepo httpd
  3. Synchronize the repositories:

    reposync -p /var/www/html/repos/centreon/ -r centreon-stable-noarch
    reposync -p /var/www/html/repos/centreon/ -r centreon-stable
  4. Create the repository:

    createrepo /var/www/html/repos/centreon/
  5. Start the web server:

    service httpd start
  6. 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 regularly your mirror with the Centreon repository, 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