lsb-release - The Linux Standard Base ChangeLog


# lsb-release 1.4
# ===============
# The software as a whole is "lsb-release", but the program itself is
# 'lsb_release'

# This project has esentially been abandoned, but I leave this here
# in case you need the lsb_release command to run other software.
# pcloudcc ASS|u|me-s that everyone has it, for example.

# The Download link at gives Service Unavailable, but
# the SourceForge Project is still there:
# You'll notice that the Wikipedia article begins with:
# "The Linux Standard Base (LSB) was"
# Emphasis on the _was_.

# Packages from Slackbuilds:

# Get the source
test -f installed/lsb-release-1.4.tar.gz &&
mv -f installed/lsb-release-1.4.tar.gz .
test ! -f lsb-release-1.4.tar.gz &&

# Verify tarball w/ sha256sum:
# (I verified it against md5sum from,
#  and this sha256sum is from me)
echo "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf171\
72  lsb-release-1.4.tar.gz" | sha256sum -c

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

# There is no Slackware package, but if you want to match where one from
# would put it, use prefix /usr instead of /usr/local

test -f lsb-release.template &&
cp -a lsb-release.template lsb-release.template.old

# You can use DISTRIB_CODENAME also, but that is typically for Ubuntu
# releases with a release codename/nickname like Jammy Jellyfish
# (you would use "DISTRIB_CODENAME=jammy")

SLACKVER=$(cat /etc/slackware-version | cut -d' ' -f2 | tr -d [[:space:]])
test -z "$SLACKVER" && SLACKVER="15.0"
echo "LSB_VERSION=1.4" > lsb-release.template
echo "DISTRIB_ID=slackware" >> lsb-release.template
echo "DISTRIB_RELEASE=${SLACKVER}" >> lsb-release.template
echo "DISTRIB_DESCRIPTION=\"Slackware Linux\"" >> lsb-release.template

# Create and gzip-compress the man page

# Become root to install it

# Install lsb_release in /usr/bin and the man page in /usr/man/man1
make install prefix=/usr

# Copy lsb-release.template to /etc/lsb-release if you don't have one
test ! -f /etc/lsb-release &&
cp lsb-release.template /etc/lsb-release &&
  chown root:root /etc/lsb-release

# Become your non-root self again

# Save the source for later
mkdir -p -m 0700 installed
rm -f installed/lsb-release-*.tar.*
mv lsb-release-1.4.tar.gz installed/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-08-21 9:02am
Copyright © 2001-2024 Jason Englander. All Rights reserved.