Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.5 KB

installing.md

File metadata and controls

45 lines (38 loc) · 1.5 KB

Installing elfshaker

Using pre-built binaries

  1. Grab the latest elfshaker-Release-[arch].tar.gz from Releases.

  2. Extract to any location you would like and add the directory to your path:

mkdir -p ~/.local/opt && mkdir -p ~/.local/bin && tar -xf "elfshaker_v0.9.0_$(uname -m)-unknown-linux-musl.tar.gz" -C ~/.local/opt && ln -s ~/.local/opt/elfshaker/elfshaker ~/.local/bin/elfshaker
Formatted version of the above one-liner
mkdir -p ~/.local/opt
mkdir -p ~/.local/bin
tar -xf "elfshaker_v0.9.0_$(uname -m)-unknown-linux-musl.tar.gz" -C ~/.local/opt
ln -s ~/.local/opt/elfshaker/elfshaker ~/.local/bin/elfshaker

Please, make sure to add ~/.local/bin to your PATH environment variable.

How to add directory to PATH?

Building from source

elfshaker is written in Rust, so you will need to install the Rust build system.

  1. Install using rustup from https://www.rust-lang.org/tools/install
  2. Install a stable toolchain (1.67 known to work, YMMV for older versions):
rustup install stable
  1. Download the source code of elfshaker
git clone https://github.com/elfshaker/elfshaker.git
cd elfshaker
  1. Build elfshaker in Release mode
cargo +stable build --release --bin elfshaker
  1. You should be good to go! Run the freshly built executable
./target/release/elfshaker --help