LEAP 42.3 PostgreSQL reinstall

Hi,

I tried

https://en.opensuse.org/SDB:PostgreSQL
systemctl start postgresql

Result:
Job for postgresql.service failed because the control process exited with error code. See “systemctl status postgresql.service” and “journalctl -xe” for details.

sudo systemctl status postgresql

Result:

[sudo] password for root:
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-03-07 16:57:37 +08; 20min ago
Process: 24052 ExecStart=/usr/lib/postgresql-init start (code=exited, status=1/FAILURE)

Mar 07 16:57:37 r3 systemd[1]: Starting PostgreSQL database server…
Mar 07 16:57:37 r3 systemd[1]: postgresql.service: Control process exited, …=1
Mar 07 16:57:37 r3 systemd[1]: Failed to start PostgreSQL database server.
Mar 07 16:57:37 r3 systemd[1]: postgresql.service: Unit entered failed state.
Mar 07 16:57:37 r3 systemd[1]: postgresql.service: Failed with result ‘exit…’.
Mar 07 16:58:16 r3 systemd[1]: postgresql.service: Unit cannot be reloaded …e.
Hint: Some lines were ellipsized, use -l to show in full.
postgres@r3:~>

Since it is a new database, I am open to:
a) Fixing from above
b) deleting the old install and reinstalling again (actually this is what I tried and I ended with the above)

Appreciate your help

Well, I have no knowledge about PostgreSQL (never used it), but the output you posted is basically useless as the actual error messages are truncated.

Please run “sudo systemctl -l status postgresql” as instructed.
Maybe this will give a better clue where the problem lies…

First,
The recommendation to install PostgreSQL from the special database repository is probably very old and unnecessary today… You should be able to find PostgreSQL in the OSS. Also, the SDB describes installing from teh Tumbleweed repo (A likely big no-no).

So, my recommendation is to remove the repository, refresh your repositories and then do a “force re-install” of your PostgreSQL packages. The following compound command will do all that for you

zypper -n rr PostgreSQL && zypper ref && zypper -n in -f postgresql postgresql-server postgresql-contrib

After that go ahead and try to start your database server

systemctl start postgresql

My guess is the above should fix your problem.
To my eye, everything else in the SDB looks OK (am not actually testing).

TSU

Hi,

zypper -n rr PostgreSQL && zypper ref && zypper -n in -f postgresql postgresql-server postgresql-contrib

Still doesn’t work

sudo systemctl -l status postgresql

Result:

● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-03-08 10:17:05 +08; 5min ago
Process: 9061 ExecStart=/usr/lib/postgresql-init start (code=exited, status=1/FAILURE)

Mar 08 10:17:05 r3 systemd[1]: Starting PostgreSQL database server…
Mar 08 10:17:05 r3 systemd[1]: postgresql.service: Control process exited, code=exited status=1
Mar 08 10:17:05 r3 systemd[1]: Failed to start PostgreSQL database server.
Mar 08 10:17:05 r3 systemd[1]: postgresql.service: Unit entered failed state.
Mar 08 10:17:05 r3 systemd[1]: postgresql.service: Failed with result ‘exit-code’.

My bad, Does the following provide more info?

For more details see su(1).
r3:~ # psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?

I apologise for another thread. I suppose purging postgresql might be the way:

apt-get --purge remove postgresql\*

Result:

Loading repository data…
Reading installed packages…
Resolving package dependencies…

The following 12 packages are going to be REMOVED:
postgresql postgresql-contrib postgresql-init postgresql-plpython
postgresql-server postgresql94 postgresql94-contrib postgresql94-server
postgresql96 postgresql96-contrib postgresql96-plpython postgresql96-server

12 packages to remove.
After the operation, 48.4 MiB will be freed.
Continue? [y/n/…? shows all options] (y): y
( 1/12) Removing postgresql-9.6-1.1.noarch …[done]
( 2/12) Removing postgresql-contrib-9.6-1.1.noarch …[done]
( 3/12) Removing postgresql-plpython-9.6-1.1.noarch …[done]
( 4/12) Removing postgresql-server-9.6-1.1.noarch …[done]
( 5/12) Removing postgresql94-contrib-9.4.15-15.1.x86_64 …[done]
( 6/12) Removing postgresql96-contrib-9.6.7-12.1.x86_64 …[done]
( 7/12) Removing postgresql96-plpython-9.6.7-12.1.x86_64 …[done]
( 8/12) Removing postgresql94-server-9.4.15-15.1.x86_64 …[done]
( 9/12) Removing postgresql96-server-9.6.7-12.1.x86_64 …[done]
Additional rpm output:
warning: directory /var/lib/pgsql: remove failed: Device or resource busy

(10/12) Removing postgresql94-9.4.15-15.1.x86_64 …[done]
(11/12) Removing postgresql96-9.6.7-12.1.x86_64 …[done]
(12/12) Removing postgresql-init-9.6-15.1.noarch …[done]
Additional rpm output:
Removed symlink /etc/systemd/system/multi-user.target.wants/postgresql.service.

Seems like PGSQL is the recurring theme…

Any Ideas?

Is what you just posted from somewhere else on the Internet or on your system?
Apt-get is not a command which should be executed on an openSUSE system.

If you are running apt-get somehow on your system, then I don’t know what to say and don’t know what you did on your system.

If you’d like to remove all psotgresql remnants from your system completely, this is my procedure…

  1. Remove all your postgresql packages
zypper rm "postgre*"
  1. install mlocate to be able to use the locate command
zypper in mlocate
  1. To run locate, you first need to update its index/database of files on your system (It updates automatically every 24 hrs, but we’re not going to wait 24 hrs for first use)
updatedb
  1. Search for all files on your system with “postgr” in the name. Remove any of the results you wish.
locate postgr

Your system should now be completely cleaned of any postresql related files you want removed, and can re-install <from the OSS>

TSU

First: You must have installed apt-get manually since ‘zypper’ is the preferred packagemanager.
Second: Do not treat your openSUSE system as if it is a Debian / *buntu system, take your time and learn about zypper.
Third: I have been using PostgreSQL as a database for the Kontact suite, both on Leap 42.3 and TW, without any of these issues
Fourth: Question: did you add extra repos? I’ve been horrified lately by the mess people can make of their packagecollection on *buntu when using the PPAs. Please show output of

zypper lr -d

And #5: Why don’t you use the stock PostgreSQL packages? Any reason for that?

Hi Tsu2, Knurpht,

Thanks for your comments. I am very new to linux and Postgresql, so in the process of finding my way to daylight…

Is what you just posted from somewhere else on the Internet or on your system?

It is from my own system but I got the command from the Internet

zypper rm "postgre*"
zypper in mlocate
updatedb
locate postgr

Result:

/root/anaconda3/pkgs/tk-8.6.7-h5979e9b_1/lib/tdbcpostgres1.0.5/tdbcpostgres.tcl
/usr/lib/postgresql94
/usr/lib/postgresql95
/usr/lib/postgresql96
/usr/lib64/tcl/tdbcpostgres1.0.5
/usr/lib64/tcl/tdbcpostgres1.0.5/libtdbcpostgres1.0.5.so
/usr/lib64/tcl/tdbcpostgres1.0.5/pkgIndex.tcl
/usr/lib64/tcl/tdbcpostgres1.0.5/tdbcpostgres.tcl
/usr/share/postgresql96
/usr/share/augeas/lenses/dist/postgresql.aug
/usr/share/man/mann/tdbc_postgres.n.gz
/usr/share/postgresql96/pg_service.conf.sample
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-docs.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-tk.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql.desktop
/var/lib/pgsql/data/postgresql.auto.conf
/var/lib/pgsql/data/postgresql.conf.old
/var/lib/pgsql/data/pg_log/postgresql-2018-03-05_130554.log
/var/lib/sudo/lectured/postgres

I didn’t copy the output for other log files like /var/lib/pgsql/data/pg_log/postgresql-2018-03-05_130554.log and other anaconda files to keep the message shorter.

zypper lr -d

Output:

Repository priorities are without effect. All enabled repositories share the same priority.

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±------------------------------------±----------------------------------------±--------±----------±--------±---------±-------±-----------------------------------------------------------------------------------±-------
1 | download.nvidia.com-leap | nVidia Graphics Drivers | Yes | (r ) Yes | Yes | 99 | rpm-md | https://download.nvidia.com/opensuse/leap/42.3 |
2 | http-download.opensuse.org-9fcdf72e | openSUSE:Leap:42.3 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Leap:/42.3/standard/ |
3 | openSUSE-Leap-42.3-0 | openSUSE-Leap-42.3-0 | No | ---- | ---- | 99 | yast2 | hd:///?device=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_4C531001560725109115-0:0-part1 |
4 | packman | packman | Yes | (r ) Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.3/ |
5 | packman.inode.at-suse | Packman Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.3/ |
6 | repo-debug | openSUSE-Leap-42.3-Debug | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/42.3/repo/oss/ |
7 | repo-debug-non-oss | openSUSE-Leap-42.3-Debug-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/42.3/repo/non-oss/ |
8 | repo-debug-update | openSUSE-Leap-42.3-Update-Debug | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/42.3/oss/ |
9 | repo-debug-update-non-oss | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/42.3/non-oss/ |
10 | repo-non-oss | openSUSE-Leap-42.3-Non-Oss | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/ |
11 | repo-oss | openSUSE-Leap-42.3-Oss | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/leap/42.3/repo/oss/ |
12 | repo-source | openSUSE-Leap-42.3-Source | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/42.3/repo/oss/ |
13 | repo-source-non-oss | openSUSE-Leap-42.3-Source-Non-Oss | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/42.3/repo/non-oss/ |
14 | repo-update | openSUSE-Leap-42.3-Update | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/42.3/oss/ |
15 | repo-update-non-oss | openSUSE-Leap-42.3-Update-Non-Oss | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/ |

Why don’t you use the stock PostgreSQL packages? Any reason for that?

Tried it initially but not too sure where I went wrong…

Thanks again

There is the package zypper-aptitude, which contains an “apt-get” as a wrapper for zypper.
I do have it installed here without remembering to install it manually…

It’s just a shell script that runs zypper with appropriate arguments though.

@wolfi
Thx. I’ve seen that apt-get zypper package but didn’t explore what it did or didn’t do.
Assume that if it’s “only a shell script” that everything is still managed by libzipp so the system is still OK.

@by79
First, if supported apt-get commands are only shell scripts for zypper/rpm commands, be aware that there will be subtle differences between apt-get on a debian based system and what you’ll find on an openSUSE system… The package management systems are very different.

From your output, it looks like you have Anaconda installed, so if you remove all postgresql related files, you may have to re-install your apps from Anaconda to restore those files.

It also looks like the “remove” command I gave you may not have worked, it looks like you may still have 3 postgresql versions on your system.

Run the following to verify if any postgresql packaes are still installed on your system…

zypper se -i postgres

If the above returns any results, then “zypper rm” them… and then run the “update” and “locate” commands again as before to doublecheck what still exists on your system.

The idea is that you should be able to remove files from your system faster and easier by removing packages, and then you can remove anything else manually. You should also know that removing packages generally does not remove configuration files, so if your problems are due to some kind of mis-configuration, removing packages and re-installing will not remove the problem.

TSU

Hi Tsu2,

zypper se -i postgres

Result
r3:~ # zypper se -i postgres
Retrieving repository ‘packman’ metadata …[done]
Building repository ‘packman’ cache …[done]
Retrieving repository ‘Packman Repository’ metadata …[done]
Building repository ‘Packman Repository’ cache …[done]
Retrieving repository ‘openSUSE-Leap-42.3-Update’ metadata …[done]
Building repository ‘openSUSE-Leap-42.3-Update’ cache …[done]
Loading repository data…
Reading installed packages…
No matching items found.
r3:~ # update
If ‘update’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf update
r3:~ # locate
locate: no pattern to search for specified
r3:~ #

so if your problems are due to some kind of mis-configuration,

Anyway I can reinstall the configuration files?

Thank you.

Ordinarily,
When you remove or re-install an app, the configuration files are preserved.

That is the reason I suggested additional steps beyond uninstalling to use the locate utility to find and remaining folders that might contain those configuration files. Once you remove those files, only then an app re-install will install new, default configuration files as well.

TSU

That should be

# updatedb

not

# update

My bad!

r3:~ # zypper se -i postgres
Retrieving repository ‘packman’ metadata …[done]
Building repository ‘packman’ cache …[done]
Retrieving repository ‘Packman Repository’ metadata …[done]
Building repository ‘Packman Repository’ cache …[done]
Retrieving repository ‘openSUSE-Leap-42.3-Update’ metadata …[done]
Building repository ‘openSUSE-Leap-42.3-Update’ cache …[done]
Loading repository data…
Reading installed packages…
No matching items found.
r3:~ # updatedb
r3:~ # locate postgr
/etc/sysconfig/postgresql

/etc/sysconfig/postgresql
/home/by79/Downloads/google-cloud-sdk/lib/third_party/pygments/lexers/_postgres_builtins.py
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5/libtdbcpostgres1.0.5.so
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5/pkgIndex.tcl
pygresql.py
/home/by79/anaconda3/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.py
/home/by79/anaconda3/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/ranges.py
/home/by79/anaconda3/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/zxjdbc.py
.
.
.
/root/.local/share/Trash/files/postgresql-9.5.12-1-linux-x64.run
/root/.local/share/Trash/info/postgresql-9.5.12-1-linux-x64.run.trashinfo
/root/anaconda3/lib/tdbcpostgres1.0.5
/root/anaconda3/lib/python3.6/site-packages/blaze/compute/tests/test_postgresql_compute.py
/root/anaconda3/lib/python3.6/site-packages/blaze/compute/tests/pycache/test_postgresql_compute.cpython-36.pyc
.
.
.
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-docs.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-tk.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql.desktop
/var/lib/pgsql/data/postgresql.auto.conf
/var/lib/pgsql/data/postgresql.conf.old
/var/lib/pgsql/data/pg_log/postgresql-2018-03-05_130554.log
/var/lib/pgsql/data/pg_log/postgresql-2018-03-05_141509.log
/var/lib/pgsql/data/pg_log/postgresql-2018-03-05_142924.log

Once you remove those files, only then an app re-install will install new, default configuration files as well.

Is there any easy way to remove the huge number of files easily? I went to look at the zypper cheat sheet…

https://forums.opensuse.org/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAABdCAIAAAAaOVWzAAAAA3NC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gzvFP5J8Cf/OvMvP2c/OLBgEx0Jc6c1IvNyGzu1hZWksQuBstQoC14xWTGTj01eHrLcz8WP Bh/TBohHGZqwZkFmUWZA oOUMRdd2ldwtUEaFamrcSDeq3 azpVQW5B FcfHfsouSCZJsQD2kS1ic2JtX3wpeGAY9beuz2p7NEBzNGsU7PwUUcGjKR3llU4bHOS55BMmmUVJTZ2RASvfXT7uCtxDIcw3ZGrR5q4N3nG xnCEtOTplMCw6knphKq0Rmji4MLJvHq7aus90qJj04vsqrMEaii m6EOKpS6YzF0s3im Yh7OqO1a 8cgWCwf6DJyVOCgsIY5Wi0I8LHMccjcuJc6/qvrDNwhDvEP2qr5/5 oPED0JjQgvvFuJcLQtZRjTCrqGWhkNExwiG0CG6A2NkeUMgjqWU6J1oxPM/PT w3kAWYKLElo5wF1HLN LfIJBDHCK0RuhX7b4iSkHEcsKRCYTp67nUm9Fyxs5M04EcWh8iNNzFNl7aSLjPlk61 MhyYwgYWEGJjipzfhAHqli0Z03m42OKj5X44XYbvDM4/tl4JUU879QQouDubt1Wp8qa LEvkWiU55/41q1bvIFuQELTOkqcfWfeGAUr0YlkyXH55mUegw7yG6SokwEJZBOJQDlEQJzdb0Awk0apvmlb4ktNnyZ92mx7M7ya2a1Nhw3Jj0TgcULAsEaZvD6AyMrKslAhud3wcZofcix2IYCPZjin /3oufWqCQUzvDizS3pJLBEobwiU6KDpCHxfo8hkYa1U fn5Ja6mdFjLKolARUQAQ8LxyYYlv /1ifYca2zBi6Af4XWt1/wM9yobSgTKJwKoU2kMFIP6f9JLCU rKEizAAAAAElFTkSuQmCC

Can I use “zypper remove postgresql”?

[QUOTE=by79;2858379]

You could use ‘find’

find -type f -name '*postgres*' -delete

and

find -type d -name '*pgsql*' -delete

as root

But then again, these files reside in no more than a couple of folders, where no other data, programs, libraries live, other than postgresql’s, f.e. the anaconda folders ( that should never ever have been in /root ) and the pgsql folders. Do remove the contents of /root, the basics will be regenerated on reboot.

https://forums.opensuse.org/image/png;base64,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DFsxLM6ReLJAr71e2HAhCNYBE13H84BDZ2xJ2CbPP1XeqzJgzvFP5J8Cf/OvMvP2c/OLBgEx0Jc6c1IvNyGzu1hZWksQuBstQoC14xWTGTj01eHrLcz8WP Bh/TBohHGZqwZkFmUWZA oOUMRdd2ldwtUEaFamrcSDeq3 azpVQW5B FcfHfsouSCZJsQD2kS1ic2JtX3wpeGAY9beuz2p7NEBzNGsU7PwUUcGjKR3llU4bHOS55BMmmUVJTZ2RASvfXT7uCtxDIcw3ZGrR5q4N3nG xnCEtOTplMCw6knphKq0Rmji4MLJvHq7aus90qJj04vsqrMEaii m6EOKpS6YzF0s3im Yh7OqO1a 8cgWCwf6DJyVOCgsIY5Wi0I8LHMccjcuJc6/qvrDNwhDvEP2qr5/5 oPED0JjQgvvFuJcLQtZRjTCrqGWhkNExwiG0CG6A2NkeUMgjqWU6J1oxPM/PT w3kAWYKLElo5wF1HLN LfIJBDHCK0RuhX7b4iSkHEcsKRCYTp67nUm9Fyxs5M04EcWh8iNNzFNl7aSLjPlk61 MhyYwgYWEGJjipzfhAHqli0Z03m42OKj5X44XYbvDM4/tl4JUU879QQouDubt1Wp8qa LEvkWiU55/41q1bvIFuQELTOkqcfWfeGAUr0YlkyXH55mUegw7yG6SokwEJZBOJQDlEQJzdb0Awk0apvmlb4ktNnyZ92mx7M7ya2a1Nhw3Jj0TgcULAsEaZvD6AyMrKslAhud3wcZofcix2IYCPZjin /3oufWqCQUzvDizS3pJLBEobwiU6KDpCHxfo8hkYa1U fn5Ja6mdFjLKolARUQAQ8LxyYYlv /1ifYca2zBi6Af4XWt1/wM9yobSgTKJwKoU2kMFIP6f9JLCU rKEizAAAAAElFTkSuQmCC

Can I use “zypper remove postgresql”?

Nope,.It will not remove config files, logs, data. And this is by design. You wouldn’t want to loose your databases because they live in a folder the package created,

Re-reading the thread I see some things that bother me:

  • A Trash folder in /root/.local . This means that you have used desktop software as root for deleting files from root’s home folder which is /root. If you tried to run the desktop as root, don’t do that. Mainly for security reasons.
  • Why not execute something like the following one-liner ( copy and paste in a terminal window ) ? The remains of your postgresql install will be gone. Are you sure a postgresql db is what you need / want? If so, invest some time and energy to learn about the underlying OS, command line usage, before actually starting with a database. It will save time in the future and give you a better understanding of what you are doing,

sudo rm -rf /var/lib/pgsql && sudo rm -rf /root/* && sudo rm -rf /etc/sysconfig/post/gresql && sudo updatedb && sudo locate -i postgres

After that your system should be ready for a clean postgresql install:


sudo zypper in postgresql

Then use YaST - System - Servicesmanager to enable and start the database server,

A Trash folder in /root/.local . This means that you have used desktop software as root for deleting files from root’s home folder which is /root. If you tried to run the desktop as root, don’t do that. Mainly for security reasons.

Noted…learned about this during the anaconda installation

r3:~ # find -type f -name ‘postgres’ -delete
r3:~ # find -type d -name ‘pgsql’ -delete
r3:~ # updatedb
r3:~ # locate postgr
/etc/sysconfig/postgresql
/home/by79/Downloads/google-cloud-sdk/lib/third_party/pygments/lexers/_postgres_builtins.py
.
.
.
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5/libtdbcpostgres1.0.5.so
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5/pkgIndex.tcl
/home/by79/anaconda3/envs/pythonv1/lib/tdbcpostgres1.0.5/tdbcpostgres.tcl
.
.
./root/anaconda3/pkgs/tk-8.6.7-h5979e9b_1/lib/tdbcpostgres1.0.5/pkgIndex.tcl
/usr/lib/postgresql94
/usr/lib/postgresql95
/usr/lib/postgresql96
/usr/lib64/tcl/tdbcpostgres1.0.5
/usr/lib64/tcl/tdbcpostgres1.0.5/libtdbcpostgres1.0.5.so
/usr/lib64/tcl/tdbcpostgres1.0.5/pkgIndex.tcl
/usr/lib64/tcl/tdbcpostgres1.0.5/tdbcpostgres.tcl
/usr/share/postgresql96
/usr/share/augeas/lenses/dist/postgresql.aug
/usr/share/man/mann/tdbc_postgres.n.gz
/usr/share/postgresql96/pg_service.conf.sample
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-docs.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql-tk.desktop
/usr/share/susehelp/meta/Manuals/Productivity/postgresql.desktop
/var/lib/sudo/lectured/postgres
r3:~ # zypper se -i postgres
Loading repository data…
Reading installed packages…
No matching items found.

The remains of your postgresql install will be gone.

From the above, does it mean it is gone now?:\

Are you sure a postgresql db is what you need / want?

Not too sure but I realise that there will be things that will not be clear…and I build a simple computer to learn the ropes, and in case catastrophes occur…I can remove the anacondas if necessary…

sudo zypper in postgresql

Do I run this from root or one of the created account?

Thanks again so much for your patience:shame:

Run this as a normal user. This is the whole point of sudo :slight_smile: (to elevate your priviliges or run a command as some other user)

Thanks!

sudo rm -rf /var/lib/pgsql && sudo rm -rf /root/* && sudo rm -rf /etc/sysconfig/post/gresql && sudo updatedb && sudo locate -i postgres

Rerun it a couple of time and I got the below:

by79@r3:~> sudo rm -rf /var/lib/pgsql && sudo rm -rf /root/* && sudo rm -rf /etc/sysconfig/post/gresql && sudo updatedb && sudo locate -i postgres
[sudo] password for root:
rm: cannot remove ‘/var/lib/pgsql’: Device or resource busy
by79@r3:~>

I rebooted the machine a couple of times…How to identify the process and how to kill it? I tried searching the web…is it mounting and dismounting?