Skip to content

Installation on Linux via Apt Repository

Tobias Megies edited this page Oct 27, 2013 · 19 revisions

For installation add the ObsPy apt repository to your package manager by adding the following line to the file /etc/apt/sources.list (needs root privileges): ObsPy is packed for all Debian and Ubuntu releases which are still officially supported. Replace CODENAME with the codename of your Debian/Ubuntu release.

deb http://deb.obspy.org CODENAME main

Currently supported releases are:

  • Debian:
    • squeeze (i386, amd64)
    • wheezy (i386, amd64, armv6l)
  • Ubuntu:
    • lucid (i386, amd64)
    • precise (i386, amd64)
    • quantal (i386, amd64)
    • raring (i386, amd64)
    • saucy (i386, amd64)
  • Raspbian Wheezy (hard-float)

If you are unsure about the codename of your installation you can use the following command to display it:

lsb_release -cs

Next you need to import the ObsPy gnupg key so that apt is able to check the integrity of the downloaded packages. The following command needs to be executed only once:

wget --quiet -O - https://raw.github.com/obspy/obspy/master/misc/debian/public.key | sudo apt-key add -

To install ObsPy including all dependencies:

sudo apt-get update
sudo apt-get install python-obspy

If you want to uninstall ObsPy and all unneeded dependencies just do:

sudo apt-get remove python-obspy