1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
root@eee-x383:~# sudo apt install wget php-cli php-zip unzip Načítají se seznamy balíků… Hotovo Vytváří se strom závislostí Načítají se stavové informace… Hotovo php-cli je již nejnovější verze (2:7.3+69). php-zip je již nejnovější verze (2:7.3+69). unzip je již nejnovější verze (6.0-23+deb10u1). wget je již nejnovější verze (1.20.1-1.1). 0 aktualizováno, 0 nově instalováno, 0 k odstranění a 0 neaktualizováno. root@eee-x383:~# wget -O composer-setup.php https://getcomposer.org/installer --2020-09-18 01:50:37-- https://getcomposer.org/installer Překládám getcomposer.org (getcomposer.org)… 142.44.245.229, 2607:5300:201:2100::4:d105 Navazuje se spojení s getcomposer.org (getcomposer.org)|142.44.245.229|:443… spojeno. HTTP požadavek odeslán, program čeká na odpověď… 200 OK Délka: 276191 (270K) [application/octet-stream] Ukládám do: „composer-setup.php“ composer-setup.php 100%[========================================>] 269,72K 528KB/s za 0,5s 2020-09-18 01:50:38 (528 KB/s) – „composer-setup.php“ uloženo [276191/276191] root@eee-x383:~# sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer All settings correct for using Composer Downloading... Composer (version 1.10.13) successfully installed to: /usr/local/bin/composer Use it: php /usr/local/bin/composer root@eee-x383:~# sudo php composer-setup.php --install-dir=/path/to/project The defined install dir (/path/to/project) does not exist. root@eee-x383:~# sudo composer self-update A preview release of the next major version of Composer is available (2.0.0-RC1), run "composer self-update --preview" to give it a try. See also https://github.com/composer/composer/releases for changelogs. You are already using composer version 1.10.13 (stable channel). root@eee-x383:~# composer require nesbot/carbon Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version ^2.40 for nesbot/carbon ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 5 installs, 0 updates, 0 removals - Installing symfony/translation-contracts (v2.2.0): Downloading (100%) - Installing symfony/polyfill-php80 (v1.18.1): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.18.1): Downloading (100%) - Installing symfony/translation (v5.1.5): Downloading (100%) - Installing nesbot/carbon (2.40.0): Downloading (100%) symfony/translation suggests installing symfony/config symfony/translation suggests installing symfony/yaml symfony/translation suggests installing psr/log-implementation (To use logging capability in translator) Writing lock file Generating autoload files 5 packages you are using are looking for funding. Use the `composer fund` command to find out more! |
exit/root
1 2 3 4 5 |
root@eee-x383:/home/portable# sudo chmod o+w /var/www/ root@eee-x383:/home/portable# ls -l /var/www celkem 4 drwxr-xr-x 3 root root 4096 zář 16 02:44 html root@eee-x383:/home/portable# |