git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc
New packages can be installed using Luarocks from the command-line:
# run luarocks WITHOUT sudo
luarocks install image
luarocks list