Getting started

Richard Lehane edited this page Oct 4, 2017 · 29 revisions

Installing siegfried

On Windows

If you are on a Windows system (32-bit or 64-bit), the easiest way to install siegfried is to:

  1. download the latest install package from the releases page and
  2. copy the executable files into a location in your system's path.

E.g. create a c:\utils folder and copy the executable files (sf.exe and roy.exe) there. Follow this guide to add c:\utils to your system's path.

You should now be able to run sf from the command prompt.

Installing the latest signature file

In order to start identifying files, you will need to install a signature file. sf has an update service to manage this. Type sf -update at the command prompt and sf will download the latest PRONOM signature file to a "siegfried" folder in your user directory (e.g. c:\Users\richardl\siegfried)

You can also use the sf -update command to download/update non-PRONOM signatures. Options are "loc", "tika", "freedesktop", "pronom-tika-loc", "deluxe" and "archivematica". To update a non-PRONOM signature, include the signature name as an argument after the flags e.g. sf -update freedesktop. This command will overwrite 'default.sig' (the default signature file that sf loads). You can preserve your default signature file by providing an alternative -sig target e.g. sf -sig notdefault.sig -update loc. If you use one of the signature options as a filename (with or without a .sig extension), you can omit the signature argument i.e. sf -update -sig loc.sig is equivalent to sf -sig loc.sig -update loc.

Troubleshooting: If you are having trouble downloading the signature file (e.g. because of a corporate proxy or system security settings), you can manually install the latest signature by downloading this file, renaming it "default.sig", and copying it into a "siegfried" folder in your user directory. If you need to change your home directory, you can do so and can use any alternate directory, but will need to include sf -home ALTERNATE_HOME_DIR for every sf command you run.

Congratulations, you are all set up and can start identifying files!

On OSX and Linux

The simplest way to install on OSX and Linux (ubuntu), is to use the brew or ubuntu packages.

Mac Homebrew (or Linuxbrew):

brew install mistydemeo/digipres/siegfried

Or, for the most recent updates, you can install from this fork:

brew install richardlehane/digipres/siegfried

Ubuntu/Debian (64 bit):

wget -qO - | sudo apt-key add -
echo "deb wheezy main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update && sudo apt-get install siegfried


pkg install siegfried

Installing from source

To install from source, first download and install golang. For help setting Go up, read the Getting Started guide.

Downloading and building sf and roy is then simply:

go get
go get

Copy your fresh binaries (they will be built in a "bin" folder within your $GOPATH folder) somewhere suitable that is in your system's path (e.g. create a $HOME/bin folder and add the line PATH=$PATH:$HOME/bin to your $HOME/.profile file) and then install the latest signature file using sf -update (full instructions same as for Windows users above).

Next up: Identifying file formats

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.