Skip to content

Instantly share code, notes, and snippets.

@jasonsnider
Created August 19, 2021 13:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonsnider/a666d9670edf0160c96c7deca49e1369 to your computer and use it in GitHub Desktop.
Save jasonsnider/a666d9670edf0160c96c7deca49e1369 to your computer and use it in GitHub Desktop.
Upgrade Composer from 1.x to 2.x on Ubuntu 20.04
#!/bin/bash
sudo apt remove composer
sudo apt update
sudo apt install curl
sudo curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer
@jasonsnider
Copy link
Author

chmod +x cmpsr.sh
./cmpsr.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment