Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sudo apt-get -y install postgresql

# updates the mirrors
sudo apt update

# installs postgresql and some additional utilities and functionalities
sudo apt install postgresql postgresql-contrib

# starts installed postgresql service
sudo systemctl start postgresql.service

# installation creates default user postgres with below you can connect with postgres user
sudo -i -u postgres

# type psql to access postgresql prompt
psql

# postgresql installation completed
Comment

apt install postgres client

sudo apt install postgresql 
Comment

install postgres ubuntu

# from the official postgresql site: https://www.postgresql.org/download/linux/ubuntu/
# this will install the latest version of the postgresql.

# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# Update the package lists:
sudo apt-get update

# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql
Comment

PREVIOUS NEXT
Code Example
Shell :: bash copy files but exclude some directories 
Shell :: install chrome beta on linux mint 
Shell :: reload shell command 
Shell :: shell: search a string if it contains another string 
Shell :: how to install frida 
Shell :: tail colorful 
Shell :: tor browser shortcut linux 
Shell :: The capture session could not be initiated on capture device "en0" 
Shell :: pip installer for mac 
Shell :: install vscode ubuntu 18.04 
Shell :: how to create a bash script 
Shell :: git remove user password 
Shell :: ubuntu server change timezone 
Shell :: instal .deb ubuntu 
Shell :: tmux how to kill all sessions 
Shell :: cmd kill process 
Shell :: command not found kube 
Shell :: snap store android studio 
Shell :: bluetooth headphone not working linux mint 
Shell :: kill python processes 
Shell :: powerline font install 
Shell :: hardhat compile 
Shell :: linux get all env variables 
Shell :: cannot open display: :0 wsl 
Shell :: fetch a particular branch git 
Shell :: how to install webhint globally 
Shell :: github gitattributes ignore files for statistics 
Shell :: git clone vs git pull 
Shell :: delete all docker containers and related volumes 
Shell :: how add access user to docker linux 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =