Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

composer install ubuntu 20.04

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
Comment

install composer in ubantu 20

cd ~
curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
Comment

install composer on ubuntu 20.04

# 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
Comment

install composer on ubuntu 20.04

Easiest, safest, verified tutorial

https://www.digitalocean.com/community/tutorials/how-to-install-composer-on-ubuntu-20-04-quickstart
Comment

PREVIOUS NEXT
Code Example
Shell :: enospc no space left on device 
Shell :: how to remove git from a project 
Shell :: shell view binary file 
Shell :: wine install ubuntu 
Shell :: how to install nvm on linux terminal 
Shell :: git diff show only files 
Shell :: how to revert to a specific commit 
Shell :: how to check if your linux Server Is Under DDoS Attack 
Shell :: npm install mongoose specific version 
Shell :: how to use string format in powershell 
Shell :: how to start apache/2.4.6 linux 
Shell :: how to make a .sh file executable 
Shell :: bash delete swap file 
Shell :: setup wordpress on ubuntu 
Shell :: how to upgrade terraform v0.13 on mac 
Shell :: zip folder linux 
Shell :: how to kill process in linux by name 
Shell :: install spark on mac 
Shell :: ! [remote rejected] main - main 
Shell :: error: src refspec master does not match any. 
Shell :: install kubectl krew 
Shell :: Reset a remote branch to previous commit 
Shell :: virtualbox kernel driver not installed ubuntu 
Shell :: how toinstall npm on manjaro 
Shell :: grep v multiple word 
Shell :: how to install xdebug on Windows 
Shell :: create folder zip with cmd in windows 10 
Shell :: install neofetch on ubuntu 
Shell :: install pip archlinux 
Shell :: show commit differences between branches git 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =