Installing pgBackRest on Amazon Linux (by sources)
I had the need to install pgBackRest on Amazon Linux machines. Unluckily, even if Amazon Linux 2023 is a Red-Hat like operating system, the official PGDG repository did not install in any version. Therefore, I decided to install from sources, compiling the latest2.48
version.
In order to achieve the final result, I had to install the following packages:
$ sudo dnf install postgresql15-server-devel.x86_64
$ sudo dnf install libxml2-static.x86_64
$ sudo dnf install -y libxml2-devel.x86_64
$ sudo dnf install -y libyaml-devel.x86_64
$ sudo dnf install -y bzip2-devel.x86_64
After this, I was able to download and compile
pgbackRest
:
$ wget https://github.com/pgbackrest/pgbackrest/archive/refs/tags/release/2.48.tar.gz
$ tar xzf 2.48.tar.gz
$ cd pgbackrest-2.48/src
$ ./configure && make && sudo make install
I tested it, and it works as solid as only
pgBackRest
can be!