fsprojects/Paket — pull request #64 by ilkerde (2014-09-08 19:39:16+00:00)
Title: A simple install script for Linux

This is a first drop of a simple bash installer for Linux. It basically mimics `nuget install` (in a somewhat half-bakery way) and installs to `/usr/local/`, following FHS guidelines. That's why it requires root privileges.

I hacked this quite quickly, so testing with different settings would be a must. A typical installation one-liner would be:

wget -qO - https://raw.githubusercontent.com/fsprojects/Paket/master/install.sh | sudo bash

The script is somewhat idempotentish, you can safely run it multiple times. It serves as an updater as well. That is, if there's a more recent version of Paket on nuget, it will happily install the new version (clearing the existing install).

In a "production" scenario, we would most probably want to expose the script on a more "friendly" URL (maybe docs). Right now it only contains the fundamental checks, but it's fairly good to use I guess.

Ref: #42