v0.2.1
Below are easy install instructions by OS and Architecture. As always there are always the standard instructions in the README.md as well.
linux
386 - linux
# Export the sha256sum for verification.
$ export NETNS_SHA256="8a0d907835db165c128402d71896d19697c16011af88d4872928d5f02ae4aa77"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.2.1/netns-linux-386" -o "/usr/local/bin/netns" \
&& echo "${NETNS_SHA256} /usr/local/bin/netns" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/netns"
$ echo "netns installed!"
# Run it!
$ netns -h
amd64 - linux
# Export the sha256sum for verification.
$ export NETNS_SHA256="6122dbbdf2c9fb52da23ef88258ab9cb9b9bb032c0d4eadadcad24c19f151fc4"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.2.1/netns-linux-amd64" -o "/usr/local/bin/netns" \
&& echo "${NETNS_SHA256} /usr/local/bin/netns" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/netns"
$ echo "netns installed!"
# Run it!
$ netns -h
arm - linux
# Export the sha256sum for verification.
$ export NETNS_SHA256="f57c25fb9051d7825ccc6365e9ea8b066ce0f4e36718260ec04eec9dc0712cbd"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.2.1/netns-linux-arm" -o "/usr/local/bin/netns" \
&& echo "${NETNS_SHA256} /usr/local/bin/netns" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/netns"
$ echo "netns installed!"
# Run it!
$ netns -h
arm64 - linux
# Export the sha256sum for verification.
$ export NETNS_SHA256="1ccbaa6c2b63c1a02fa547dd25a7fe264afc05412af4c8b4e6a6c462d63e39af"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.2.1/netns-linux-arm64" -o "/usr/local/bin/netns" \
&& echo "${NETNS_SHA256} /usr/local/bin/netns" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/netns"
$ echo "netns installed!"
# Run it!
$ netns -h