Linux HOWTOs

About | Home | Search

HOWTO: mp3info
Description: mp3 info viewer and tag editor
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

# mp3info 0.8.4
# =============
test -f installed/mp3info-0.8.4.tgz &&
 mv installed/mp3info-0.8.4.tgz .
test ! -f mp3info-0.8.4.tgz &&
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mp3info-*" -exec rm -r {} \;
tar xzvf ~/mp3info-0.8.4.tgz
cd mp3info-0.8.4
test $UID = 0 && chown -R root:root .

# If you only want to compile the console version, run 'make mp3info'.  If
# you only want to compile the GTK+ version, run 'make gmp3info'.  Then
# run 'install -s binary /usr/local/bin/' to install the one you compiled
# (make install below will try to install both).

# Recent versions of gcc (I'm using 3.4.5 on this box) don't like a
# multi-line string in gmp3info.c, patch it to escape each line:
wget -nc &&
 patch -p0 < mp3info-0.8.4.patch

su -c "make install"
mkdir -p -m 0700 installed
rm -f installed/mp3info-*.tgz
mv mp3info-0.8.4.tgz installed/

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

Back to the list

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