Linux HOWTOs

About | Home | Search

HOWTO: most
Description: A pager like more and less
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

# most 4.10.2
# ===========
# Slackware 9.1's 'most' package includes version 4.9.4, 10.0, 10.1, and
# 10.2's include 4.9.5

# Prerequisites:
# grep
# XFree86 or libraries (optional)
# slang

test -f installed/most-4.10.2.tar.bz2 && mv installed/most-4.10.2.tar.bz2 .
test ! -f most-4.10.2.tar.bz2 &&
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "most-*" -exec rm -r {} \;
tar xjvf ~/most-4.10.2.tar.bz2
cd most-4.10.2
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
su -c "make install"
mkdir -p -m 0700 installed
rm -f installed/most-*.tar.*
mv most-4.10.2.tar.bz2 installed/

# If you ever want to uninstall most, this should do it:
rm -f /usr/bin/most /usr/man/man1/most.1
test -d /usr/doc/most && rm -r /usr/doc/most
find ~/src -maxdepth 1 -type d -name "most-*" -exec rm -r {} \;
rm -f ~/installed/most-*.tar.*

Back to the list

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