ERROR: Slooooow dooooown... this page load was delayed.


util-linux - Miscellaneous utilities for Linux ChangeLog

HOWTO


# util-linux 2.12r
# ================
# Slackware 8.1's 'util-linux' package includes version 2.11r, 9.0's
# includes 2.11z, 9.1's includes 2.12, 10.0's includes 2.12a, 10.1
# and 10.2's include 2.12p, and 11.0's and 12.0's include 2.12r

# If you have trouble getting it from the download URL below, try one of
# these:
# ftp://ftp.kernel.org/pub/linux/utils/util-linux/
# http://ftp.us.kernel.org/pub/linux/utils/util-linux/
# http://ibiblio.org/pub/Linux/system/misc/

# Prerequisites:
# gettext
# PAM (optional)
# shadow (regular shadow or shadow w/ PAM support if you use PAM)

cd
test -f installed/util-linux-2.12r.tar.bz2 &&
mv installed/util-linux-2.12r.tar.bz2 .
test ! -f util-linux-2.12r.tar.bz2 &&
wget http://ftp.kernel.org/pub/linux/utils/util-linux/\
util-linux-2.12r.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "af9d9e03038481fbf79ea3ac33f116f9  util-linux-2.12r.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "740b7eb5ae1148b2200b2cd34a0a6c4b0db577e4  util-linux-2.12r.tar.bz2" | \
sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 517D0F0E > /dev/null 2>&1 || gpg --recv-keys 517D0F0E ) &&
wget -nc http://ftp.kernel.org/pub/linux/utils/util-linux/\
util-linux-2.12r.tar.bz2.sign &&
gpg --verify util-linux-2.12r.tar.bz2.sign &&
rm util-linux-2.12r.tar.bz2.sign

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "util-linux-*" -exec rm -r {} \;
tar xjvf ~/util-linux-2.12r.tar.bz2
cd util-linux-2.12r
test $UID = 0 && chown -R root:root .
chmod -R u+w .

# If you use loop-aes, apply the patch
patch -p1 < ../loop-AES-v3.2a/util-linux-2.12r.diff

# Either open up MCONFIG to select what you need or don't need or apply this
# patch to do it for you.  Use this first one if you have PAM installed:
wget http://englanders.cc/pub/linux/patches/util-linux.MCONFIG.pam.patch &&
patch < util-linux.MCONFIG.pam.patch && rm util-linux.MCONFIG.pam.patch

# and this one if not:
wget http://englanders.cc/pub/linux/patches/util-linux.MCONFIG.patch &&
patch < util-linux.MCONFIG.patch && rm util-linux.MCONFIG.patch

./configure
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg util util-linux
find /usr/share/locale -type f -name "util-linux.mo" -exec rm -r {} \;
rm -f /bin/sln /sbin/sln /bin/kill /usr/bin/kill
mkdir -p /var/lock/subsys
make install
ln -sf /bin/kill /usr/bin/kill
ln -sf /bin/mount /sbin/mount
ln -sf /bin/umount /sbin/umount
ln -sf /sbin/cfdisk /usr/sbin/cfdisk
ln -sf /sbin/ctrlaltdel /usr/sbin/ctrlaltdel
ln -sf /sbin/hwclock /sbin/clock
ln -sf /sbin/sfdisk /usr/sbin/sfdisk
ln -sf /sbin/sln /bin/sln
ln -sf /usr/bin/getopt /bin/getopt
ln -sf /usr/bin/setterm /bin/setterm
ln -sf /usr/games/banner /usr/bin/banner
ln -sf /usr/sbin/readprofile /usr/bin/readprofile
ln -sf /usr/sbin/rdev /sbin/rdev

# If you use an older version of Slackware, comment out lines in rc.K and rc.S
# that run /sbin/update (which no longer exists).

# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/clear, or if you have the util-linux /usr/bin/clear that's just a
# script that runs 'tput clear', you can install a replacement from a compiled
# ncurses source tree:
test ! -f /usr/bin/clear &&
find ../ncurses-*/progs -type f -name clear \
-exec install -s {} /usr/bin/ \;

# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/tput, you can install one from a compiled ncurses source tree:
test ! -f /usr/bin/tput &&
find ../ncurses-*/progs -type f -name tput \
-exec install -s {} /usr/bin/ \;

# If you just replaced a Slack-installed util-linux and no longer have a
# /usr/bin/strings, you can install one from a compiled binutils source tree:
test ! -f /usr/bin/strings &&
find ../binutils-* -type f -name strings \
-exec install -s {} /usr/bin/ \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/util-linux-*
mv util-linux-2.12r.tar.bz2 installed/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2007-09-15 1:45am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]