Installing a specific version of a single tool (pt-archiver) from percona-toolkit

Hi
I want to install ONLY pt-archiver and no other tool from percona-toolkit (Docker container, want to save space)

The docs say I can direcly install a single toolkit using wget:

If you want to download a specific tool, use the following address: http://www.percona.com/get
For example, to download the pt-summary tool, run:
wget percona.com/get/pt-summary

However this gives me the latest version of the tool, I want a fixed older version.

  1. Is there any endpoint I can hit to do this?
  2. Is it safe to just copy the script from the percona-toolkit installation or github and put it into my container?
  3. Does pt-archiver have any dependencies in percona-toolkit but outside the script ?

Hi @Atharv_Kirtikar

You may unarchive the required file from a deb file.

wget https://repo.percona.com/percona/apt/pool/main/p/percona-toolkit/percona-toolkit_3.5.4-2.bullseye_amd64.deb
dpkg -x percona-toolkit_3.5.4-2.bullseye_amd64.deb pt
cp pt/usr/bin/pt-archiver /usr/bin
rm -rf pt

Please notice that utility can depend on other packages

1 Like

Just in case anyone else has the same issue: Note that the percona-toolkit ubuntu/debian package in the apt repository has 2 extra required dependencies (fdisk and gdb) which do not seem to be actually required.

I would recommend that anyone trying to save space download the deb file from the percona website and find and install the dependencies as @Vadim_Yalovets has done above.

For version 3.5.4, this should work:

apt install perl libdbi-perl libdbd-mysql-perl  libterm-readkey-perl libio-socket-ssl-perl