This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Installing nRF5x command-line tools on Debian Linux

So I reinstalled one of my Linux boxes (again) a few days ago, and one of the things I need to do to get all the development environment up and running (again) is get the nRF 5x command-line tools.

The issue is that the download is just a .tar file, and I always forget where the files should go. Should I copy the binaries to /usr/bin/? to /usr/local/bin? Just add everything to $PATH? Should I get the .so files into /usr/local/lib?

As I use Debian Linux, it occurred to me that this would be solved if instead of a .tar file I could have a .deb package. I could even try and build the /deb/rules metadata files myself, but for that I'd like to know:

Is there a canonical way of installing/copying all the files from the .tar file into a LSB-compliant linux filesystem?

  • We are looking into making installers for OS X and debian-derivate unix systems.

    There are several canonical ways to install command line tools on linux systems, but they way we've been doing it is the following:

    Untar the tarball in /opt/nrfjprog
     

    sudo tar xvf nRF5x... .tar --directory /opt/

    make a symlink from /usr/local/bin/nrfjprog to /opt/nrfjprog/nrfjprog with

    sudo ln -s /opt/nrfjprog/nrfjprog /usr/local/bin/nrfjprog

    nRFJProg will find the .so libraries if they are located in the same folder as nRFJProg or any place they can be found by dlopen. That would be anywhere in LD_LIBRARY_PATH, /lib or /usr/lib on most distros.

Related