Linux HOWTOs

About | Home | Search


HOWTO: gramps
Description: Genealogical Research and Analysis Management Programming System
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


# Gramps 2.0.11
# =============
# Prerequisites (beyond those listed above):
# gawk
# GConf (for Gnome >= 2.8)
# gettext
# iconv
# Python >= 2.3
# PyGTK2 >= 2.4
# gnome-python >= 2.6
# gnome-python-extras and GtkSpell (optional; for spell check)
# scrollkeeper (for Gnome >= 2.8)
# ReportLab (optional; for creation of PDFs)
# GraphViz (optional; for creation of graphs)
# (PIL is no longer used as of Gramps 1.1.1)

# If you're upgrading from a 1.x version, keep in mind that this one won't
# be able to read the preferences from the old one.  It should be fine
# opening the data file though.

cd
test -f installed/gramps-2.0.11.tar.gz && mv installed/gramps-2.0.11.tar.gz .
test ! -f gramps-2.0.11.tar.gz &&
 wget http://download.sf.net/gramps/gramps-2.0.11.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gramps-*" -exec rm -r {} \;
tar xzvf ~/gramps-2.0.11.tar.gz
cd gramps-2.0.11
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc
make

# Become root to install it
su

# Install it
make install

# I'm in the US and only read/write English (well), so I don't need these
find /usr/share/locale -type f -name gramps.mo -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gramps-*.tar.*
mv gramps-2.0.11.tar.gz installed/

# /usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-gramps.png
# can be used as a desktop icon


# If you ever want to uninstall Gramps, this should do it:
cd
su
test -d src/gramps-* && ( cd src/gramps-* ; make uninstall )
test -d /usr/share/gramps && rm -r /usr/share/gramps
( cd /usr/share/icons/gnome/48x48/mimetypes ; rm -f \
 gnome-mime-application-x-gedcom.png \
 gnome-mime-application-x-geneweb.png \
 gnome-mime-application-x-gramps-package.png \
 gnome-mime-application-x-gramps-xml.png \
 gnome-mime-application-x-gramps.png )
find /usr/share/locale -type f -name gramps.mo -exec rm {} \;
( cd /usr/share/mime-info ; rm -f gramps.keys gramps.mime )
test -d /usr/share/omf/gramps && rm -r /usr/share/omf/gramps
rm -f \
/etc/gconf/schemas/gramps.schemas \
/usr/bin/gramps \
/usr/man/man1/gramps.1 \
/usr/man/fr/man1/gramps.1 \
/usr/share/application-registry/gramps.applications \
/usr/share/applications/gramps.desktop \
/usr/share/mime/packages/gramps.xml
exit
find ~/src -maxdepth 1 -type d -name "gramps-*" -exec rm -r {} \;
rm -f ~/installed/gramps-*.tar.*

Back to the list


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