-
-
Notifications
You must be signed in to change notification settings - Fork 54
Installing Composer
Kcchouette edited this page Sep 2, 2024
·
11 revisions
Now it is time to install Composer.
We recommend the global method, as we do not provide the composer.phar file in our repo.
You can use the following commands to install composer globally:
cd /var/www
sudo chmod 777 .
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r 'if (hash_file("SHA384", "composer-setup.php") === preg_filter("#^.*?<pre>|</pre>.*$#s", "", file_get_contents("https://composer.github.io/pubkeys.html"))) { echo "Installer verified"; } else { echo "Installer corrupt"; unlink("composer-setup.php"); } echo PHP_EOL;'
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
composer -V
You are now ready to download NNTmux using git:
git clone https://github.com/NNTmux/newznab-tmux.git NNTmux
cd /var/www/NNTmux
- If you want to be on stable release, you should do:
git fetch --all --tags --prune
git checkout {tag}
#eg git checkout 2.0.0
#or git checkout v1.7.5
where tag is the release version you want to checkout (see list here)
Be aware that your version would be in detached state, so you will not receive any updates until you switch to another branch and pull changes and checkout the new version
- Or if you prefer the dev version
git checkout master