Tried
pacman -S postgresql
which returns
Warning: atabase file fir 'core' does not exist
...
error: target not found: postgresql
How do I install postgresql?
Tried
pacman -S postgresql
which returns
Warning: atabase file fir 'core' does not exist
...
error: target not found: postgresql
How do I install postgresql?
You first need to do pacman -Syu then pacman -S postgresql
The reason you have this type of error is because pacman doesn't have a list of available packages. pacman -Syu will update (or create) the available package list, then upgrade the currently installed packages.
Before installing you could use pacman -Ss postgresql to see a list of package matching your input, it will help you figure out which packages you need.
For more advanced list of pacman features, read the Archwiki post about pacman
pacman -Syu? You should always dopacman -Syubefore you install new packages. – ctx Dec 05 '17 at 12:35