The recommended method is via xpm.

Overview

The xPack GNU sed 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 GNU sed is by using the binary xPack, available as @xpack-dev-tools/sed 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/sed@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).

Uninstall

To remove the links from the current project:

cd my-project

xpm uninstall @xpack-dev-tools/sed

To completely remove the package from the central xPacks store:

xpm uninstall --global @xpack-dev-tools/sed --verbose

Test

To check if the xpm installed GNU sed starts, use something like:

$ ~/Library/xPacks/@xpack-dev-tools/sed/4.9.0-2.1/.content/bin/sed --version
sed (GNU sed) 4.9

Manual install

For all platforms, the xPack GNU sed 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 GNU sed are packed as .tar.gz archives. Download the latest version named like:

  • xpack-sed-4.9.0-2-darwin-x64.tar.gz
  • xpack-sed-4.9.0-2-darwin-arm64.tar.gz

Unpack

To manually install the xPack GNU sed, unpack the archive and move it to ~/.local/xPacks/sed/xpack-sed-4.9.0-2:

mkdir -p ~/.local/xPacks/sed
cd ~/.local/xPacks/sed

tar xvf ~/Downloads/xpack-sed-4.9.0-2-darwin-x64.tar.gz
chmod -R -w xpack-sed-4.9.0-2

The result is a structure like:

$ tree -L 2 /Users/ilg/.local/xPacks/sed/xpack-sed-4.9.0-2
/Users/ilg/.local/xPacks/sed/xpack-sed-4.9.0-2/
├── README.md
├── bin
│   ├── gsed -> sed
│   └── sed
└── distro-info
    ├── CHANGELOG.md
    ├── licenses
    └── scripts

4 directories, 4 files

Test

To check if the manually installed GNU sed starts, use something like:

$ ~/.local/xPacks/sed/xpack-sed-4.9.0-2/bin/sed --version
sed (GNU sed) 4.9

Easy install

The easiest way to install GNU sed is by using the binary xPack, available as @xpack-dev-tools/sed 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/sed@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).

Uninstall

To remove the links from the current project:

cd my-project

xpm uninstall @xpack-dev-tools/sed

To completely remove the package from the central xPacks store:

xpm uninstall --global @xpack-dev-tools/sed --verbose

Test

To check if the xpm installed GNU sed starts, use something like:

$ ~/.local/xPacks/@xpack-dev-tools/sed/4.9.0-2.1/.content/bin/sed --version
sed (GNU sed) 4.9

Manual install

For all platforms, the xPack GNU sed 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 GNU sed are packed as .tar.gz archives. Download the latest version named like:

  • xpack-sed-4.9.0-2-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 GNU sed, unpack the archive and move it to ~/.local/xPacks/sed/xpack-sed-4.9.0-2:

mkdir -p ~/.local/xPacks/sed
cd ~/.local/xPacks/sed

tar xvf ~/Downloads/xpack-sed-4.9.0-2-linux-x64.tar.gz
chmod -R -w xpack-sed-4.9.0-2
$ tree -L 2 '/home/ilg/.local/xPacks/sed/xpack-sed-4.9.0-2'
/home/ilg/.local/xPacks/sed/xpack-sed-4.9.0-2/
├── README.md
├── bin
│   ├── gsed -> sed
│   └── sed
└── distro-info
    ├── CHANGELOG.md
    ├── licenses
    └── scripts

4 directories, 4 files

Test

To check if the manually installed GNU sed starts, use something like:

$ ~/.local/xPacks/sed/xpack-sed-4.9.0-2/bin/sed --version
sed (GNU sed) 4.9