Ubuntu or Debian users, if you are not interested in doing rust development at this time, and do not want to create a ~/.cargo directory, then instead do the following:
- switch to root:
sudo su - install cargo package:
apt-get -y update && apt-get -y install cargo - install the package of interest under
/tmp; for example, unf:cargo install --bin --root /tmp unf - navigate to
/tmp/binand move the unf binary to/usr/local/bin - end result:
/usr/local/bin/unf