# Get the source
cd
test -f installed/libcap-2.69.tar.gz &&
mv -f installed/libcap-2.69.tar.gz .
test ! -f libcap-2.69.tar.gz &&
wget https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.69.tar.gz
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libcap-*" -not -name "libcap-ng-*" \
-exec rm -r {} \;
tar xzvf ~/libcap-2.69.tar.gz
cd libcap-2.69
test $UID = 0 && chown -R root:root .
# Build it
make
# Test the build
make test
# Become root to install it
su
# You may have a bunch of different things using the old/existing version of
# libcap.so.* Run lsof to see which are running now:
lsof /lib*/libcap.so.*
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libcap
# If you get a go-related error with 'make install'
# flag provided but not defined: -mod
# Run 'make -i install' to continue passed the error
# ...maybe try upgrading Go
# ...check libcap issue tracker