geoff swartz
geoff swartz

Reputation: 5977

how to install postgresql on Linux

I'm new to Linux and have been using KDE for a little while. I'm working on learning more ruby on rails. The book I'm reading uses postgresql but I cannot find a walkthrough of installing postgresql on KDE. On this page - https://yum.postgresql.org/repopackages.php#pg10 - it doesn't list an rpm for KDE so I'm not sure if there's another one I can use or not. I don't know enough about Linux/KDE yet to know. Does anyone know if I can use any of the packages on that page or if there's another way to install postgresql on KDE?

Upvotes: 0

Views: 3657

Answers (2)

codenoob
codenoob

Reputation: 900

So KDE is your desktop. It could be used on almost any operating system, and probably doesn't determine your install. It's more about distros/OS that you're on. So, what OS are you on? Wild guess Fedora or Ubuntu. Here are the install guides for each:

Fedora: https://fedoraproject.org/wiki/PostgreSQL

Ubuntu: https://www.postgresql.org/download/linux/ubuntu/

Neither is as bad as it seems. Just take them step by step.

BTW, in the Linux world the command line is king. At first, this will seem daunting, but after a while, you'll find it faster for many things. Maybe Learn Enough Command Line to Be Dangerous would help.

Upvotes: 0

Shashwat Gupta
Shashwat Gupta

Reputation: 5272

Simple solution

sudo apt-get update

sudo apt-get install postgresql postgresql-contrib

sudo -i -u postgres

psql

Upvotes: 2

Related Questions