Installation

Requirements

  • PostgreSQL 9.2+

Packages

Hypopg is available as a package on some GNU/Linux distributions:

  • RHEL/Rocky Linux

    HypoPG is available as a package using the PGDG packages.

    Once the PGDG repository is setup, you just need to install the package. As root:

    yum install hypopg
    
  • Debian / Ubuntu

    HypoPG is available as a package using the PGDG packages.

    Once the PGDG repository is setup, you just need to install the package. As root:

    apt install postgresql-XY-hypopg
    

    where XY is the major version for which you want to install hypopg.

  • Archlinux

    Hypopg is available on the AUR repository.

    If you have yaourt setup, you can simply install the hypopg-git package with the following command:

    yaourt -S hypopg-git
    

    Otherwise, look at the official documentation to manually install the package.

    Note

    Installing this package will use the current development version. If you want to install a specific version, please see the Installation from sources section.

Installation from sources

To install HypoPG from sources, you need the following extra requirements:

  • PostgreSQL development packages

Note

On Debian/Ubuntu systems, the development packages are named postgresql-server-dev-X, X being the major version.

On RHEL/Centos systems, the development packages are named postgresqlX-devel, X being the major version.

  • A C compiler and make

  • unzip

  • optionally the wget tool

  • a user with sudo privilege, or a root access

Note

If you don’t have sudo or if you user isn’t authorized to issue command as root, you should do all the following commands as root.

First, you need to download HypoPG source code. If you want the development version, you can download it from here, or via command line:

wget https://github.com/HypoPG/hypopg/archive/master.zip

If you want a specific version, you can chose the version you want here and follow the related download link. For instance, if you want to install the version 1.0.0, you can download it from the command line with the following command:

wget https://github.com/HypoPG/hypopg/archive/1.0.0.zip

Then, you need to extract the downloaded archive with unzip and go to the extracted directory. For instance, if you downloaded the latest development version:

unzip master.zip
cd hypopg-master

You can now compile and install HypoPG. Simply run:

make
sudo make install

Note

If you were doing these commands as root, you don’t need to use sudo. The last command should therefore be:

make install

If no errors occured, HypoPG is now available! If you need help on how to use it, please refer to the Usage section.