Install some requirements:
sudo apt-get install build-essential libssl-dev rsync
Create a user:
sudo useradd -Mr _rpki-client
Download and unpack sources:
curl -O https://mirror.leaseweb.com/pub/OpenBSD/rpki-client/rpki-client-6.6p2.tar.gz
tar -zxf rpki-client-6.6p2.tar.gz
cd rpki-client-6.6p2/
Compile the software:
./configure --prefix=/usr
make
sudo make install
Create directories & set permissions:
sudo mkdir -p /var/cache/rpki-client /var/db/rpki-client
sudo chown -R _rpki-client /var/cache/rpki-client /var/db/rpki-client
Download the ARIN tal:
sudo curl -O /usr/local/etc/rpki/arin.tal https://www.arin.net/resources/manage/rpki/arin-rfc7730.tal
Run the client:
sudo rpki-client -d /var/cache/rpki-client -j /var/db/rpki-client/ -j
cat /var/db/rpki-client/json | jq
It is much easier to use the official package: https://blog.bofh.it/debian/id_459