v0.5.2
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="9525b94e86cc57c75bc11064e1e46a7a5830ee07398a9cf8ef97ffb0593f13f5"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.5.2/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="aace28eccd82cbedfb21673c76a5e792a86011bf740cc503bdc33e258827b255"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.5.2/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="7e0493041c857678210ef80d49ec0ff46acf246935d518f7ce0023e9a8a559c8"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.5.2/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="6baddcf3d534c003d9062b064aa278f4a3dcd795d070e45a840b8a08d4f87a2c"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/genuinetools/netns/releases/download/v0.5.2/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