Linux HOWTOs

About | Home | Search


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

HOWTO: e2fsprogs
Description: Second extended (ext2) file system management programs
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# e2fsprogs 1.40.2
# ================
# Slackware 9.0's 'e2fsprogs' package includes version 1.32, 9.1's includes
# 1.34, 10.0 and 10.1's include 1.35, 10.2 and 11.0's include 1.38, and
# 12.0's includes 1.39

# Prerequisites:
# gettext
# libiconv
# bison
# Perl

cd
test -f installed/e2fsprogs-1.40.2.tar.gz &&
 mv installed/e2fsprogs-1.40.2.tar.gz .
test ! -f e2fsprogs-1.40.2.tar.gz &&
 wget http://download.sf.net/e2fsprogs/e2fsprogs-1.40.2.tar.gz

# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "130ce559a0f311ea2bc04a47b4982d0a  e2fsprogs-1.40.2.tar.gz" | md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "65519d66bd15550d0bcd32ec72481ff0dbe737e2  e2fsprogs-1.40.2.tar.gz" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 93674C40 > /dev/null 2>&1 || gpg --recv-keys 93674C40 ) &&
 wget -nc http://download.sf.net/e2fsprogs/e2fsprogs-1.40.2.tar.gz.asc &&
  gpg --verify e2fsprogs-1.40.2.tar.gz.asc && rm e2fsprogs-1.40.2.tar.gz.asc

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "e2fsprogs-*" -exec rm -r {} \;
tar xzvf ~/e2fsprogs-1.40.2.tar.gz
cd e2fsprogs-1.40.2
test $UID = 0 && chown -R root:root .
./configure \
 --exec-prefix= \
 --bindir=/usr/bin \
 --sbindir=/sbin \
 --libdir=/lib \
 --enable-elf-shlibs \
 --enable-dynamic-e2fsck \
 --disable-nls
make

# Become root to clean up old files and to install it
su

test -x /sbin/removepkg && /sbin/removepkg e2fsprog e2fsprogs
make install
make install-libs
ln -sf /usr/bin/chattr /bin/chattr
ln -sf /usr/bin/lsattr /bin/lsattr
ln -sf /usr/bin/uuidgen /bin/uuidgen

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/e2fsprogs-*.tar.*
mv e2fsprogs-1.40.2.tar.gz installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>