php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
#move composer.phar, so you can call composer command
sudo mv composer.phar /usr/local/bin/composer
#update composer to latest version
composer self-update
cd ~
curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
# download composer.phar to /usr/bin and symlink composer to composer.phar
pushd /usr/bin >/dev/null &&
sudo wget -O composer.phar https://getcomposer.org/composer-stable.phar &&
sudo chmod 755 composer.phar &&
sudo ln -fs composer.phar composer &&
popd >/dev/null
Easiest, safest, verified tutorial
https://www.digitalocean.com/community/tutorials/how-to-install-composer-on-ubuntu-20-04-quickstart
Code Example |
---|
Shell :: Kubectl get memory usage of pod |
Shell :: aab to apk |
Shell :: sample bash script |
Shell :: oh my zsh ubuntu 20.04 |
Shell :: bash replace string |
Shell :: delete auto purge |
Shell :: how to install nginx on docker |
Shell :: install docker ec2 |
Shell :: how to port-forward k8s on server |
Shell :: npm install without dev dependencies |
Shell :: get working directory rstudio |
Shell :: install laravel dompdf |
Shell :: git bring your changes to a new branch |
Shell :: see network trafic linux |
Shell :: git flow new feature branch |
Shell :: how to fast forward git |
Shell :: cmp in linux |
Shell :: change crontab editor |
Shell :: angular cli disable auto reload |
Shell :: heroku subfolder |
Shell :: echo new line |
Shell :: yum clean all |
Shell :: check user shell in linux |
Shell :: dart |
Shell :: grep exclude files |
Shell :: install cassandra ubuntu |
Shell :: how to install kubectl in ubuntu |
Shell :: view available pips |
Shell :: cypress install npm |
Shell :: push a branch with diffrent name |