Uninstall previous versions
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update -y
| #!/bin/sh | |
| set -e | |
| # Install dependencies. | |
| sudo apt install -y curl apt-transport-https \ | |
| software-properties-common ca-certificates | |
| # Install docker. | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - |
| #!/bin/sh | |
| # LTS Release | |
| sudo apt-get install curl software-properties-common | |
| curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | |
| # Install Node.js | |
| sudo apt-get install -y nodejs npm |
| #!/bin/sh | |
| # Download Latest Go Binary | |
| wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz | |
| # Install Go Language | |
| sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz | |
| # Add /usr/local/go/bin to the PATH | |
| echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile |
| #! /bin/bash | |
| # Stop all containers | |
| docker stop `docker ps -aq ` | |
| # Remove all containers | |
| docker rm `docker ps -aq ` | |
| # Remove all images | |
| docker rmi -f `docker images -aq ` |
| #! /bin/bash | |
| sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
| #! /bin/bash | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get -y install postgresql |