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 :: git ignore folder except one file 
Shell :: git tag a previous commit 
Shell :: Finding Apache http Process 
Shell :: cmake run cmake clean 
Shell :: Use pip to install the EB CLI. 
Shell :: split sh string 
Shell :: ubuntu dns config 
Shell :: how to remove non empty dircetory 
Shell :: deleting remote branch in GitHub 
Shell :: create sudo user centos 
Shell :: scheduler ubuntu cmd 
Shell :: gitlab create branch 
Shell :: for loop in bash for files 
Shell :: How to use Github Personal Access Token in Jenkins 
Shell :: launch bash script from application mac without opening terminal 
Shell :: move view vim 
Shell :: -bash: bin/startup.sh: Permission denied 
Shell :: how to update forked repo in github 
Shell :: ram info unix 
Shell :: bigquery export schema json 
Shell :: how to install tar.xz file on ubuntu 
Shell :: download file using scp hostfile 
Shell :: aws extend volume ubuntu 
Shell :: ubuntu hide home folder on desktop 
Shell :: command get full history terminal mac 
Shell :: install homebrew on linux 
Shell :: bash rename foldr 
Shell :: remove commit not pushed 
Shell :: how to see the size of /var 
Shell :: run docker compose 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =