“Zainstaluj Composer V2 Ubuntu” Kod odpowiedzi

Zainstaluj kompozytor 2 Ubuntu

Teniendo composer instaldo, correr 
composer self-update --2
AceptoRetos

Zainstaluj kompozytor

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Fine Fish

getComposer.org Pobierz

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c31c1e292ad7be5f49291169c0ac8f683499edddcfd4e42232982d0fd193004208a58ff6f353fde0012d35fdd72bc394') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Thoughtless Tuatara

Zainstaluj Composer V2 Ubuntu

Purge existing composer v1

sudo apt purge composer

Download composer-setup v2

curl -sS https://getcomposer.org/installer -o composer-setup.php

Use php to install Composer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

Check Composer Version
composer -V
calyCoder

Odpowiedzi podobne do “Zainstaluj Composer V2 Ubuntu”

Pytania podobne do “Zainstaluj Composer V2 Ubuntu”

Więcej pokrewnych odpowiedzi na “Zainstaluj Composer V2 Ubuntu” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu