Skip to main content
3 of 5
adding source build to the answer

First, check to see if the package version exists for the current distro version:

apt list -a postgresql-11-repack 

If so, then, you can remove the existing package and install the specific version needed by doing:

sudo apt-get --purge remove postgresql-11-repack sudo apt-get install postgresql-11-repack=1.4.4-2 

If not then you can build it from source:

git clone https://github.com/reorg/pg_repack.git cd pg_repack/ git checkout tags/ver_1.4.4 make make install 

One reason you might want to build from source is because the version of the package you need is from a previous version of the OS and you do not want to deal with that type of joy specifically (example)