Skip to content

myhro/staticd

Repository files navigation

staticd

Download statically linked binaries from GitHub.

Install

To install staticd, go to the releases page and follow the instructions below:

  • Download the binary for your OS and architecture.

  • Make the binary executable:

    chmod +x staticd-<os>-<arch>
    

From there, you can either opt for the home directory installation (recommended) or the system-wide installation.

Home-based installation

  • Create the ~/.local/bin directory if it does not exist:

    mkdir -p ~/.local/bin
    
  • Move the binary to ~/.local/bin:

    mv staticd-<os>-<arch> ~/.local/bin/staticd
    
  • Ensure $HOME/.local/bin is in your $PATH. Add the following line to your ~/.bashrc or equivalent shell configuration file:

    export PATH="$HOME/.local/bin:$PATH"
    

    P.s.: use $HOME instead of ~/ as tilde does not expand in quotes.

System-wide installation

  • Move the binary to /usr/local/bin:
    sudo mv staticd-<os>-<arch> /usr/local/bin/staticd
    

After installation, you can run the tool by calling the staticd command.

Usage

$ staticd <tool>

It's important to note that:

  • Calling it directly as a non-root user puts the binaries into ~/.local/bin.
  • Calling it using sudo puts the binaries into /usr/local/bin.

Tools