Skip to content

Instantly share code, notes, and snippets.

@paoloumali
Last active May 15, 2020 20:41
Show Gist options
  • Save paoloumali/636a644f68ef9a5dedd0d3f3e3a3db92 to your computer and use it in GitHub Desktop.
Save paoloumali/636a644f68ef9a5dedd0d3f3e3a3db92 to your computer and use it in GitHub Desktop.
Installing utilities in ubuntu 20.04

Node

Composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
sudo usermod -aG composer_users $(whoami)
sudo mkdir -p /usr/local/share/composer
sudo chown $(whoami):composer_users /usr/local/share/composer
sudo chmod g+sw /usr/local/share/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment