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.

Important

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 https://fred.nic.cz/files/fred/fred-rh-install.sh
# 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

      yum install -y yum-utils
      if cat /etc/redhat-release | grep -q Enterprise
      then
         yum-config-manager --enable rhel-7-server-optional-rpms rhel-7-server-extras-rpms
      fi
      # 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
      
  2. Install all FRED packages

    1. Fedora

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

      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. 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-pyfred
    systemctl start fred-webadmin
    systemctl start httpd
    

    Note

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

    test -d /run/uwsgi/ && echo "/run/uwsgi exists" || {
       echo "/run/uwsgi missing so creating"
       install -o uwsgi -g uwsgi -d /run/uwsgi
    }
    systemctl start uwsgi
    
  5. 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.