zstd - Fast compression algorithm ChangeLog

HOWTO


# Zstandard (zstd) 1.5.5
# ======================
# If the web site URL does not work, try www.zstd.net

# xz's liblzma (optional)
# lz4's liblz4 (optional)

# GitHub Zstandard v1.5.5 release

# Get the source
cd
test -f installed/zstd-1.5.5.tar.gz &&
mv -f installed/zstd-1.5.5.tar.gz .
test ! -f zstd-1.5.5.tar.gz &&
wget https://github.com/facebook/zstd/releases/download/v1.5.5/\
zstd-1.5.5.tar.gz

# Verify tarball w/ sha256sum:
echo "9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3e\
e4  zstd-1.5.5.tar.gz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 28B52FFD || gpg --recv-keys 28B52FFD > /dev/null 2>&1 ) &&
wget -nc https://github.com/facebook/zstd/releases/download/v1.5.5/\
zstd-1.5.5.tar.gz.sig &&
  gpg --verify zstd-1.5.5.tar.gz.sig && rm zstd-1.5.5.tar.gz.sig

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "zstd-*" -exec rm -r {} \;
tar xzvf ~/zstd-1.5.5.tar.gz
cd zstd-1.5.5
test $UID = 0 && chown -R root:root .

# Build it, specifying paths for 64-bit
test $(uname -m) = 'x86_64' &&
PREFIX=/usr LIBDIR=/usr/lib64 MANDIR=/usr/man/man1 make

# Build it, specifying paths for anything else
test $(uname -m) != 'x86_64' &&
PREFIX=/usr MANDIR=/usr/man/man1 make

# Become root to install it
su

# Install it 64-bit
# MAN1DIR (not MANDIR) because programs/Makefile doesn't handle that
test $(uname -m) = 'x86_64' &&
PREFIX=/usr LIBDIR=/usr/lib64 MAN1DIR=/usr/man/man1 make install

# Install it anything else
test $(uname -m) != 'x86_64' &&
PREFIX=/usr MAN1DIR=/usr/man/man1 make install

ldconfig

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/zstd-*.tar.gz
mv -f zstd-1.5.5.tar.gz installed/


# If you ever want to uninstall Zstandard, this should do it
# 'make uninstall' as root (with PREFIX= and such) should do it
# The rest is in case old files are left over
cd
su
test -d src/zstd-* && ( cd src/zstd-* ; make uninstall )
( /usr/bin
  rm -f unzstd zstd zstdcat zstdgrep zstdless zstdmt )
( /usr/include
  rm -f zdict.h zstd.h zstd_errors.h )
( cd /usr/lib
  rm -f libzstd.* pkgconfig/libzstd.pc )
test -d /usr/lib64 &&
( cd /usr/lib64
   rm -f libzstd.* pkgconfig/libzstd.pc )
( cd /usr/man/man1
  rm -f unzstd.1 zstd.1 zstdcat.1 zstdgrep.1 zstdless.1 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "zstd-*" -exec rm -r {} \;
rm -f ~/installed/zstd-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-10-03 6:33pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]