In this video we will install, use, and then uninstall Composer on a Linux Debian 12 server. The commands used in this tutorial:
Install Composer on Debian 12
Update package list and install required packages
sudo apt update
sudo apt install -y php-cli unzip curl
Download Composer installer script
curl -sS https://getcomposer.org/installer -o composer-setup.php
Verify the installer script's SHA-384 hash (replace "hash_value" with the latest hash from https://getcomposer.org/download/)
HASH_VALUE=$(curl -sS https://composer.github.io/installer.sig)
php -r "if (hash_file('sha384', 'composer-setup.php') === '$HASH_VALUE') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Install Composer globally
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Remove the installer script
rm composer-setup.php
Check Composer installation
composer --version
Update Composer to the latest version
composer self-update
Uninstall Composer
sudo rm /usr/local/bin/composer
All Open Source!
Arashtad provides high quality tutorials, eBooks, articles and documents, design and development services, over 400 free online tools, frameworks, CMS, WordPress plugins, Joomla extensions, and other products.
More Courses ▶ https://tuts.arashtad.com/
Business Inquiries ▶ https://arashtad.com/business-inquiries/
Affiliate Programs ▶ https://arashtad.com/affiliate-programs/
eBooks ▶ https://press.arashtad.com/
Our Products ▶ https://market.arashtad.com/
Our Services ▶ https://arashtad.com/services/
Our Portfolio ▶ https://demo.arashtad.com/
Free Online Tools ▶ https://tools.arashtad.com/
Our Blog ▶ https://blog.arashtad.com/
Documents ▶ https://doc.arashtad.com/
Licensing ▶ https://arashtad.com/licensing/
About us ▶ https://arashtad.com/about/
Join Arashtad Network ▶ https://i.arashtad.com/
Our Social Profiles ▶ https://arashtad.com/arashtad-social-...
Vimeo ▶ https://vimeo.com/arashtad
Udemy ▶ https://www.udemy.com/user/arashtad
GitHub ▶ https://github.com/arashtad
Linkedin ▶ / arashtad
Twitter ▶ / arashtad