Keep the installation directories around for both of these libs, as the only way to uninstall them is by going into the original install dirs, and then make uninstall
.
$ apt install pkg-config
$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:${PKG_CONFIG_PATH}
To install ndctl v68 at https://github.com/pmem/ndctl/releases/tag/v72:
$ apt install asciidoctor libkmod-dev libudev-dev uuid uuid-dev libjson-c-dev libkeyutils-dev libiniparser-dev
$ sudo cp /usr/include/iniparser/* /usr/include/ # >.<
$ wget https://github.com/pmem/ndctl/archive/v72.zip
$ unzip v72.zip && mv ndctl-72/ ndctl-v72/ && cd ndctl-v72/
$ ./autogen.sh
$ ./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
$ make -j8 -l4
$ make -j8 -l4 check
$ sudo make install
To install pmdk v1.9 at https://github.com/pmem/pmdk/releases/tag/1.9
$ apt install fabric pandoc
$ wget https://github.com/pmem/pmdk/archive/1.9.zip
$ unzip 1.9.zip && mv pmdk-1.9 pmdk-v1.9 && cd pmdk-v1.9
$ make -j8 -l4
$ make -j8 -l4 check
$ sudo make install
$ wget https://github.com/intel/ipmctl/archive/refs/tags/v02.00.00.3885.zip
$ unzip v02.00.00.3885.zip && mv ipmctl-02.00.00.3885 ipmctl-v02 && cd ipmctl-v02
$ mkdir build && cd build && cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/ ..
$ make -j all
$ sudo make install