Hacker News new | ask | show | jobs
by nusmella 933 days ago
I don't know if this is normal or if anyone else does it but I usually either download binaries or compile from source and move the executable to /usr/local/bin/ and create a symlink. Lets me easily switch between versions. I avoid using a package manager for anything where I want control over the version and installation.

- curl -fSLJO $RELEASE

- tar xvf $DOWNLOAD.tar.gz && cd $DOWNLOAD`

- make .

- mv $EXECUTABLE /usr/local/bin/$EXECUTABLE-$VERSION`

- ln -s /usr/local/bin/$EXECUTABLE-$VERSION /usr/local/bin/$EXECUTABLE

- # chmod 750, chown root:$appuser, etc

Works great for everything I've tried thus far. Redis, HAproy, Prometheus exporters, and many more.