1.3. Installation of binaries on Fedora or RHEL/CentOS

This section will guide you through installation of pre-compiled binaries on Fedora or RHEL/CentOS systems.

Before you start, make sure that all system requirements are met.

You can install the binaries in two ways:

  • download and run our installation script that will automatically install all required components incl. auxiliary software, or

  • you can follow the installation steps one-by-one manually. The steps describe basically what the script does.


Remember to set the timezone in PostgreSQL to UTC, after you complete installation either way.

1.3.1. Installation script

To install the FRED and associated software with the installation script, follow this procedure:

# Switch to root
sudo su -
# Download the script
wget -O fred-rh-install.sh https://fred.nic.cz/public/media/1568014036/57/
# Execute the script
. fred-rh-install.sh

What steps the script takes is explained in the following section.

1.3.2. Installation steps

  1. Configure the FRED repository (and install auxiliary software, respectively)

    1. Fedora

      dnf config-manager --add-repo http://archive.nic.cz/yum/fred/fedora/fred.repo
    2. RHEL/CentOS 7

      yum install -y yum-utils
      if cat /etc/redhat-release | grep -q Enterprise
         yum-config-manager --enable rhel-7-server-optional-rpms rhel-7-server-extras-rpms
      # config fred repository
      yum-config-manager --add-repo http://archive.nic.cz/yum/fred/epel/fred.repo
      # install repository with dependecies
      yum install -y  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
      # install new postgresql
      yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm
      yum install -y postgresql96-server
      ln -s /usr/pgsql-9.6/bin/pg_ctl /usr/bin/pg_ctl
      ln -s /usr/pgsql-9.6/bin/postgresql96-setup /usr/bin/postgresql-setup
      ln -s /var/lib/pgsql/9.6/data/ /var/lib/pgsql/
      ln -s /usr/lib/systemd/system/postgresql-9.6.service /usr/lib/systemd/system/postgresql.service
    3. RHEL/CentOS 8

      dnf install dnf-plugins-core epel-release
      dnf config-manager --add-repo http://archive.nic.cz/yum/fred/epel/fred.repo
  2. Install all FRED packages

    1. Fedora, RHEL/CentOS 8

      dnf install -y 'fred-*' -x '*debug*'
    2. RHEL/CentOS 7

      yum install -y 'fred-*' -x '*debug*'
  3. Install the database schema

    The setup script installs table schemas and fills enumeration tables; it does NOT initialize the system with basic data – the latter is described in the System initialization section.

    /usr/bin/postgresql-setup initdb
    systemctl start postgresql
    su - postgres -c "/usr/sbin/fred-dbmanager install"
  4. Some servers require the system registrar to be present in the Registry, before they can be started.

    To quickly create it, use the following command (eventually see Preparing registrars):

    fred-admin --registrar_add --handle=REG-SYSTEM --country=CZ --no_vat --system

    The default handle is REG-SYSTEM, but you may use a different handle if you specify it in the configuration options system_registrar and automatically_managed_keyset_registrar.

    You don’t need to set up EPP access for this registrar, because internal administration happens out of EPP.

  5. Start services

    systemctl start omniNames
    systemctl start fred-rifd
    systemctl start fred-adifd
    systemctl start fred-pifd
    systemctl start fred-logd
    systemctl start fred-msgd
    systemctl start fred-rsifd
    systemctl start fred-akmd
    systemctl start fred-pyfred
    systemctl start fred-webadmin
    systemctl start httpd


    Sometimes /run/uwsgi is not created; in that case, create it manually:

    test -d /run/uwsgi/ && echo "/run/uwsgi exists" || {
       echo "/run/uwsgi is missing, so we're creating it"
       install -o uwsgi -g uwsgi -d /run/uwsgi
    systemctl start uwsgi
  6. Finished.

1.3.3. After installation

Check the system configuration and adapt it accordingly.

Before registrars can access the Registry, you must initialize it.

You may also want to test the installation.