$ ssh ALIAS
-
Download Composer
$ curl -sS https://getcomposer.org/installer | php
-
Make Common Directory
$ mkdir common
-
Move Composer to Common Directory
$ mv composer.phar common
-
Add Composer .bash_profile
alias composer="/opt/php70/bin/php ~/common/composer.phar"
-
Confirm Composer Install
$ composer
-
Install composer on AWS Linux
https://pinecode.io/article/install-composer-on-aws-linux
Install composer using the supplied installer.
$ sudo curl -sS https://getcomposer.org/installer | sudo php
-
Move composer.phar
You'll notice that you now have a PHAR file in your working directory. We need to move this file to our global path
$ sudo mv composer.phar /usr/local/bin/composer
-
Create Phar Symbolic Link
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
https://stackoverflow.com/questions/30396451/remove-composer
-
Uninstall composer
To remove just composer package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal:
$ sudo apt-get remove composer
-
Uninstall composer and it's dependent packages
To remove the composer package and any other dependant package which are no longer needed from Ubuntu Xenial.
$ sudo apt-get remove --auto-remove composer
-
Purging composer
If you also want to delete configuration and/or data files of composer from Ubuntu Xenial then this will work:
$ sudo apt-get purge composer
To delete configuration and/or data files of composer and it's dependencies from Ubuntu Xenial then execute:
$ sudo apt-get purge --auto-remove composer