Installing Tarsnap from source
At the present time, pre-built binaries are not available for Tarsnap — it must be compiled from the source code.
- Download the source tarball and signed SHA256 hash file (see below for links to these files for the latest version of Tarsnap).
-
Verify that the files have not been tampered with (this step may be
skipped if you're not worried about security):
-
Verify the GPG signature on the SHA256 hash file using
GnuPG and the
Tarsnap code signing GPG key
(note that versions up to 1.0.25 are signed using the
2009 Tarsnap code signing
GPG key, Tarsnap versions 1.0.26 and 1.0.27 are signed
using the 2010 Tarsnap code
signing GPG key, and Tarsnap versions 1.0.28 through 1.0.30 are
signed using the 2011 Tarsnap
code signing GPG key):
$ gpg --decrypt tarsnap-sigs-1.0.32.asc Warning: using insecure memory! SHA256 (tarsnap-autoconf-1.0.32.tgz) = 8b7c7de5277e6cac55040e0d0e0c8b0952aa77278f7e14f05f00d6aef46d265d gpg: Signature made Wed Feb 22 04:11:02 2012 PST using RSA key ID 619D301E gpg: Good signature from "Tarsnap source code signing key (Colin Percival) <cperciva@tarsnap.com>"
-
Verify that the SHA256 hash of the tarball matches the value in
the value in the signed SHA256 hash file (on Linux systems, you
may need to use the sha256sum command, and on OS X you
may need to use shasum -a 256 instead of sha256):
$ sha256 tarsnap-autoconf-1.0.32.tgz SHA256 (tarsnap-autoconf-1.0.32.tgz) = 8b7c7de5277e6cac55040e0d0e0c8b0952aa77278f7e14f05f00d6aef46d265d
-
Verify the GPG signature on the SHA256 hash file using
GnuPG and the
Tarsnap code signing GPG key
(note that versions up to 1.0.25 are signed using the
2009 Tarsnap code signing
GPG key, Tarsnap versions 1.0.26 and 1.0.27 are signed
using the 2010 Tarsnap code
signing GPG key, and Tarsnap versions 1.0.28 through 1.0.30 are
signed using the 2011 Tarsnap
code signing GPG key):
-
Make sure you have the necessary package dependencies installed:
A C compiler (gcc or clang), make, OpenSSL (including header files),
zlib (including header files), and on Linux, the
ext2fs/ext2_fs.h header (which is NOT the
same as the linux/ext2_fs.h header file).
On most UNIX systems all the necessary packages will already be present, but on Linux they may need to be installed manually:- On Debian, Ubuntu, and related distributions, make sure the libssl-dev, zlib1g-dev, and e2fslibs-dev packages are installed.
- On RedHat, SuSE, Amazon Linux, and related distributions, make sure the openssl-devel, zlib-devel, and e2fsprogs-devel packages are installed.
- If you run another flavour of Linux, you can probably figure out which packages you need, but please contact me so I can update this list.
- Extract the tarball and cd into that directory.
-
Run
./configureto configure Tarsnap for your system. - If the configure script complains about OpenSSL, zlib, or ext2_fs.h not being present, you didn't install the right dependent packages. Make sure you got the "development" versions (which have the header files Tarsnap needs) and not just the "library" versions.
-
Run
make all install cleanto build and install Tarsnap.
Latest Tarsnap release
Tarsnap 1.0.32 (February 22, 2012)
Downloads:
Changes since version 1.0.31:
- A bug affecting the handling of the --nodump option on Linux (and in most cases rendering it inoperative) is fixed.
- A workaround has been added for a compiler bug in OS X 10.7 (Lion).
- The NetBSD "kernfs" and "ptyfs" filesystems are now excluded from archival by default.