pairtree is a command line program run from a shell like Bash. It allows you to organize encode “Name as Text” documents to provide metadata for a directory.
If you are running macOS or Linux you can install released versions of newt with the following curl command.
curl https://caltechlibrary.github.io/pairtree/installer.sh
Compiled versions are available for Mac OS X (amd64 processor, macosx-amd64), Linux (amd64 process, linux-amd64), Windows (amd64 processor, windows-amd64) and Rapsberry Pi (arm7 processor, raspberry_pi_os-arm7)
VERSION_NUMBER is a symantic version number (e.g. v0.1.2)
For all the released version go to the project page on Github and click latest release
https://github.com/caltechlibrary/pairtree/releases/latest
Platform | Zip Filename |
---|---|
Windows | pairtree-VERSION_NUMBER-windows-amd64.zip |
Mac OS (Intel) | pairtree-VERSION_NUMBER-macos-amd64.zip |
Mac OS (M1) | pairtree-VERSION_NUMBER-macos-amd64.zip |
Linux/Intel | pairtree-VERSION_NUMBER-linux-amd64.zip |
Raspbery Pi | pairtree-VERSION_NUMBER-raspberry_pi_os-arm7.zip |
export PATH="$HOME/bin:$PATH"
)Here’s an example of the commands run in the Terminal App after downloading the zip file.
cd Downloads/
unzip pairtree-*-macosx-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
pairtree -version
Here’s an example of the commands run in from the Bash shell on Windows 10 after downloading the zip file.
cd Downloads/
unzip pairtree-*-windows-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
pairtree -version
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip pairtree-*-linux-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
pairtree -version
Released version is for a Raspberry Pi 2 or later use (i.e. requires ARM 7 support).
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip pairtree-*-raspberry_pi_os-arm7.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
pairtree -version
pairtree is “go gettable”. Use the “go get” command to download the dependant packages as well as pairtree’s source code.
go get -u github.com/caltechlibrary/pairtree/...
Or clone the repstory and then compile
cd
git clone https://github.com/caltechlibrary/pairtree src/github.com/caltechlibrary/pairtree
cd src/github.com/caltechlibrary/pairtree
make
make test
make install