Linux HOWTOs

About | Home | Search


HOWTO: gnome-mime-data
Description: Database of applications and MIME types
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


# gnome-mime-data
# ===============
# Slackware 9.0's 'gnome-mime-data' package includes version 2.2.0, 9.1's
# includes 2.4.0, and 10.0 and 10.1's include 2.4.1  As of Slackware 10.2,
# GNOME is no longer included.

# Prerequisites (for all versions):
# Perl
# grep
# gettext

# I include several versions below, but keep in mind that I only actually
# use the version for Gnome 2.16.x
#
# The latest version probably works with previous releases of Gnome too, but
# I've never tried it.

# Below I remove the .mo files that are installed because I'm in the US and
# I only read/write (well) English.  If that is not the case for you, skip
# that part (find /usr/share/locale ...).


# gnome-mime-data 2.2.1 (for Gnome 2.2.x)
# =====================
cd
test -f installed/gnome-mime-data-2.2.1.tar.bz2 &&
 mv installed/gnome-mime-data-2.2.1.tar.bz2 .
test ! -f gnome-mime-data-2.2.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gnome-mime-data/2.2/\
gnome-mime-data-2.2.1.tar.bz2

# Verify tarball w/ md5sum:
echo "05f5a490434c33a060ea7d140f60981f  gnome-mime-data-2.2.1.tar.bz2" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gnome-mime-data-*" -exec rm -r {} \;
tar xjvf ~/gnome-mime-data-2.2.1.tar.bz2
cd gnome-mime-data-2.2.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg gnome-mime-data
make install
find /usr/share/locale -type f -name "gnome-mime-data.mo" -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gnome-mime-data-*.tar.*
mv gnome-mime-data-2.2.1.tar.bz2 installed/


# gnome-mime-data 2.4.1 (for Gnome 2.4.x, 2.6.x, 2.8.x, 2.10.x, or 2.12.x)
# =====================
cd
test -f installed/gnome-mime-data-2.4.1.tar.bz2 &&
 mv installed/gnome-mime-data-2.4.1.tar.bz2 .
test ! -f gnome-mime-data-2.4.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gnome-mime-data/2.4/\
gnome-mime-data-2.4.1.tar.bz2

# Verify tarball w/ md5sum:
echo "a8bd52c6876a5294abc402f8a581ac1a  gnome-mime-data-2.4.1.tar.bz2" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gnome-mime-data-*" -exec rm -r {} \;
tar xjvf ~/gnome-mime-data-2.4.1.tar.bz2
cd gnome-mime-data-2.4.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg gnome-mime-data
make install
find /usr/share/locale -type f -name "gnome-mime-data.mo" -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gnome-mime-data-*.tar.*
mv gnome-mime-data-2.4.1.tar.bz2 installed/


# gnome-mime-data 2.4.2 (for Gnome 2.12.x or Gnome 2.14.x)
# =====================
# Prerequisites (beyond those listed above):
# gawk
# pkg-config

# Install/update the perl XML::Parser module:
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Parser
exit

cd
test -f installed/gnome-mime-data-2.4.2.tar.bz2 &&
 mv installed/gnome-mime-data-2.4.2.tar.bz2 .
test ! -f gnome-mime-data-2.4.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gnome-mime-data/2.4/\
gnome-mime-data-2.4.2.tar.bz2

# Verify tarball w/ md5sum:
echo "37242776b08625fa10c73c18b790e552  gnome-mime-data-2.4.2.tar.bz2" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gnome-mime-data-*" -exec rm -r {} \;
tar xjvf ~/gnome-mime-data-2.4.2.tar.bz2
cd gnome-mime-data-2.4.2
test $UID = 0 && chown -R root:root .

# If you want to quiet the (harmless) error about 'missing' being too
# old or missing, run this:  autoreconf -f -i

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg gnome-mime-data
make install
find /usr/share/locale -type f -name "gnome-mime-data.mo" -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gnome-mime-data-*.tar.*
mv gnome-mime-data-2.4.2.tar.bz2 installed/


# gnome-mime-data 2.4.3 (for Gnome 2.16.x)
# =====================
# Prerequisites (beyond those listed above):
# gawk
# pkg-config

# Install/update the perl XML::Parser module:
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Parser
exit

cd
test -f installed/gnome-mime-data-2.4.3.tar.bz2 &&
 mv installed/gnome-mime-data-2.4.3.tar.bz2 .
test ! -f gnome-mime-data-2.4.3.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gnome-mime-data/2.4/\
gnome-mime-data-2.4.3.tar.bz2

# Verify tarball w/ md5sum:
echo "2abe573a6e84b71c58a661d4bafa9bd6  gnome-mime-data-2.4.3.tar.bz2" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gnome-mime-data-*" -exec rm -r {} \;
tar xjvf ~/gnome-mime-data-2.4.3.tar.bz2
cd gnome-mime-data-2.4.3
test $UID = 0 && chown -R root:root .

# If you get an error (harmless) about 'missing' being too old or missing,
# run this:
# autoreconf -f -i

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg gnome-mime-data
make install
find /usr/share/locale -type f -name "gnome-mime-data.mo" -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gnome-mime-data-*.tar.*
mv gnome-mime-data-2.4.3.tar.bz2 installed/

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>