Overview
The xPack NixOS PatchELF can be installed automatically, via xpm
(the
recommended method), or manually, by downloading and unpacking one of the
portable archives.
Binaries are available only for GNU/Linux and macOS.
Easy install
The easiest way to install NixOS PatchELF is by using the binary xPack, available as
@xpack-dev-tools/patchelf
from the npmjs.com
registry.
Prerequisites
The only requirement is a recent xpm, which is a portable Node.js command line application. To install it, follow the instructions from the xpm install page.
Install
With xpm available, installing the latest version of the package is quite easy:
cd my-project
xpm init # Only at first use.
xpm install @xpack-dev-tools/patchelf@latest --verbose
This command will always install the latest available version,
in the global xPacks store, which is a platform dependent folder
(check the output of the xpm
command for the actual folder used on
your platform).
XPACKS_STORE_FOLDER
environment variable; for more details please check the
xpm folders page.
.content
. On some platforms
this might be hidden for normal browsing, and require
separate options (like ls -A
) or, in file browsers, to enable
settings like Show Hidden Files.Uninstall
To remove the links from the current project:
cd my-project
xpm uninstall @xpack-dev-tools/patchelf
To completely remove the package from the central xPacks store:
xpm uninstall --global @xpack-dev-tools/patchelf --verbose
Test
To check if the xpm installed NixOS PatchELF starts, use something like:
$ ~/Library/xPacks/@xpack-dev-tools/patchelf/0.17.2-1.1/.content/bin/patchelf --version
patchelf 0.17.2
Manual install
For all platforms, the xPack NixOS PatchELF binaries are released as portable archives that can be installed in any location.
The archives can be downloaded from the GitHub releases page.
Download
The macOS versions of xPack NixOS PatchELF
are packed as .tar.gz
archives.
Download the latest version named like:
xpack-patchelf-0.17.2-1-darwin-x64.tar.gz
xpack-patchelf-0.17.2-1-darwin-arm64.tar.gz
Unpack
To manually install the xPack NixOS PatchELF,
unpack the archive and move it to
~/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1
:
mkdir -p ~/.local/xPacks/patchelf
cd ~/.local/xPacks/patchelf
tar xvf ~/Downloads/xpack-patchelf-0.17.2-1-darwin-x64.tar.gz
chmod -R -w xpack-patchelf-0.17.2-1
The result is a structure like:
$ tree -L 2 /Users/ilg/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1
/Users/ilg/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1/
├── README.md
├── bin
│ └── patchelf
├── distro-info
│ ├── CHANGELOG.md
│ ├── licenses
│ ├── patches
│ └── scripts
└── share
└── doc
7 directories, 3 files
Test
To check if the manually installed NixOS PatchELF starts, use something like:
$ ~/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1/bin/patchelf --version
patchelf 0.17.2
Easy install
The easiest way to install NixOS PatchELF is by using the binary xPack, available as
@xpack-dev-tools/patchelf
from the npmjs.com
registry.
Prerequisites
The only requirement is a recent xpm, which is a portable Node.js command line application. To install it, follow the instructions from the xpm install page.
Install
With xpm available, installing the latest version of the package is quite easy:
cd my-project
xpm init # Only at first use.
xpm install @xpack-dev-tools/patchelf@latest --verbose
This command will always install the latest available version,
in the global xPacks store, which is a platform dependent folder
(check the output of the xpm
command for the actual folder used on
your platform).
XPACKS_STORE_FOLDER
environment variable; for more details please check the
xpm folders page.
.content
. On some platforms
this might be hidden for normal browsing, and require
separate options (like ls -A
) or, in file browsers, to enable
settings like Show Hidden Files.Uninstall
To remove the links from the current project:
cd my-project
xpm uninstall @xpack-dev-tools/patchelf
To completely remove the package from the central xPacks store:
xpm uninstall --global @xpack-dev-tools/patchelf --verbose
Test
To check if the xpm installed NixOS PatchELF starts, use something like:
$ ~/.local/xPacks/@xpack-dev-tools/patchelf/0.17.2-1.1/.content/bin/patchelf --version
patchelf 0.17.2
Manual install
For all platforms, the xPack NixOS PatchELF binaries are released as portable archives that can be installed in any location.
The archives can be downloaded from the GitHub releases page.
Download
The GNU/Linux versions of xPack NixOS PatchELF
are packed as .tar.gz
archives.
Download the latest version named like:
xpack-patchelf-0.17.2-1-linux-x64.tar.gz
As the name implies, these are GNU/Linux tar.gz
archives; they were build on
Ubuntu, but can be executed on most recent GNU/Linux distributions.
Unpack
To manually install the xPack NixOS PatchELF,
unpack the archive and move it to
~/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1
:
mkdir -p ~/.local/xPacks/patchelf
cd ~/.local/xPacks/patchelf
tar xvf ~/Downloads/xpack-patchelf-0.17.2-1-linux-x64.tar.gz
chmod -R -w xpack-patchelf-0.17.2-1
@xpack-dev-tools
) to group different tools,
and .content
to store the unpacked archive.$ tree -L 2 '/home/ilg/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1'
/home/ilg/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1/
├── README.md
├── bin
│ └── patchelf
├── distro-info
│ ├── CHANGELOG.md
│ ├── licenses
│ ├── patches
│ └── scripts
├── libexec
│ ├── libgcc_s.so.1
│ ├── libstdc++.so.6 -> libstdc++.so.6.0.30
│ └── libstdc++.so.6.0.30
└── share
└── doc
8 directories, 6 files
Test
To check if the manually installed NixOS PatchELF starts, use something like:
$ ~/.local/xPacks/patchelf/xpack-patchelf-0.17.2-1/bin/patchelf --version
patchelf 0.17.2