Skip to content

Instantly share code, notes, and snippets.

@yaroslavche
Last active October 7, 2018 09:07
Show Gist options
  • Save yaroslavche/f0b5c67d1e68b98a0ad22b8348050990 to your computer and use it in GitHub Desktop.
Save yaroslavche/f0b5c67d1e68b98a0ad22b8348050990 to your computer and use it in GitHub Desktop.

Update

sudo zypper -n dup

GIT

sudo zypper -n install git-core

MySQL (MariaDB)

sudo zypper install mariadb mariadb-client mariadb-tools
sudo systemctl start mysql
sudo systemctl enable mysql
sudo mysql_secure_installation

PHP 7

sudo zypper install php7 php7-mysql php7-openssl php7-zlib php7-phar php7-pear php7-devel php7-APCu php7-opcache php7-xdebug php7-pcntl php7-posix php7-mbstring php7-fileinfo php7-intl php7-curl php7-exif php7-gd php7-zip

Composer (PHP package manager)

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer

MongoDB Driver via PECL

sudo pecl install mongodb 
sudo sh -c 'echo "extension=mongodb" >> /etc/php7/conf.d/mongodb.ini'

MongoDB

sudo rpm --import https://www.mongodb.org/static/pgp/server-4.0.asc
sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/4.0/x86_64/" mongodb
sudo zypper -n install mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod

NodeJS via NVM (Node.js version manager)

touch ~/.bashrc
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
nvm install --lts

YARN

curl -o- -L https://yarnpkg.com/install.sh | bash

NPM self update globally

npm i npm@latest -g

Gulp globally

npm install -g gulp

links

mongodb mongodb-pecl

@yaroslavche
Copy link
Author

simple-phpunit requires the "zip" PHP extension

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