ERROR: Slooooow dooooown... this page load was delayed.
HOWTO
# libarchive 3.7.2 (2023-09-12)
# ================
# Slackware 14.0: libarchive 2.8.5
# Slackware 14.1: libarchive 3.1.2
# Slackware 14.2: libarchive 3.2.1
# Slackware 15.0: libarchive 3.5.2
# Prerequisites:
# zlib
# bz2
# b2
# glibc's iconv or libiconv
# lz4
# Zstandard/zstd
# lzma
# pkg-config
# libxml
# expat
# OpenSSL
# GitHub libarchive 3.7.2
# libarchive wiki
# GitHub issue tracker
# libarchive-announce mailing list
# Get the tarball
cd
mkdir -p -m 0700 installed
test -f installed/libarchive-3.7.2.tar.xz &&
mv -f installed/libarchive-3.7.2.tar.xz .
test ! -f libarchive-3.7.2.tar.xz &&
wget https://github.com/libarchive/libarchive/releases/download/v3.7.2/\
libarchive-3.7.2.tar.xz
# Verify tarball w/ gpg:
( gpg --list-keys DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B 2>&1 ||
gpg --recv-keys DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B ) &&
wget -nc https://github.com/libarchive/libarchive/releases/download/v3.7.2/\
libarchive-3.7.2.tar.xz.asc &&
gpg --verify libarchive-3.7.2.tar.xz.asc &&
rm libarchive-3.7.2.tar.xz.asc
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libarchive-*" -exec rm -r {} \;
tar xJvf ~/libarchive-3.7.2.tar.xz
cd libarchive-3.7.2
test $UID = 0 && chown -R root:root .
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure
# Build it
make
# Check the build
make check
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libarchive
# Install it
make install
ldconfig
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libarchive-*.tar.*
mv libarchive-3.7.2.tar.xz installed/
# If you ever want to uninstall libarchive, this should do it:
cd
su
test -d src/libarchive-* && ( cd src/libarchive-* ; make uninstall )
( cd /usr/bin
rm -f bsdcat bsdcpio bsdtar bsdunzip )
find /usr/doc -maxdepth 1 -type d -name "libarchive-*" -exec rm -r {} \;
( cd /usr/include
rm -f archive.h archive-entry.h )
( cd /usr/lib
rm -f libarchive.* pkgconfig/libarchive.pc )
test -d /usr/lib64 &&
( cd /usr/lib64
rm -f libarchive.* pkgconfig/libarchive.pc )
( cd /usr/man/man1
rm -f bsdcat.1 bsdcpio.1 bsdtar.1 bsdunzip.1 )
( cd /usr/man/man3
rm -f archive_*.3 libarchive.3 libarchive_changes.3 \
libarchive_internals.3 )
( cd /usr/man/man5
rm -f cpio.5 libarchive-formats.5 mtree.5 tar.5 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libarchive-*" -exec rm -r {} \;
rm -f ~/installed/libarchive-*.tar.*
List of HOWTOs
Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-10-03 10:34pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.