To figure out why a certain package was installed you can use aptitude. Why? Because you probably have another package installed (lets call it C) that recommends or suggests B. 1) Setup Pre-requisites For this guide, ensure that you have the following: Debian 11Debian 10 Server. When installation is done, PostgreSQL is set to run and start on system boot. Therefore, to install PostgreSQL 13 on Debian 11, run the command below apt install postgresql postgresql-contrib Running PostgreSQL. You then remove A and run autoremove/autopurge. This makes it easy to install PostgreSQL 13.x on Debian 11. Lets say you install package A which pulls B as a dependency. Removing a package and running apt autoremove or autopurge afterwards may not remove all the packages that were automatically installed. Regarding what seems to be your actual issue. sudo systemctl enable rvice & sudo systemctl start rvice. Once installed, start and enable the PostgreSQL service. It's a terrible advice and it's an instant red flag for not following any guide that suggests that. To install PostgreSQL on Debian 12, execute the following command: sudo apt install postgresql postgresql-client. People who write pseudo guides telling people to use -y with apt/apt-get deserve all the bad karma they can get. You should read the changes that are going to be made and then decide and press Y if you really want to proceed. It is an open-source, powerful, and feature-rich graphical user interface (GUI) administration and management tool for the PostgreSQL database. ![]() That's for scripts only, not when you're running interactively. PGAdmin is a web-based GUI tool used to interact with the Postgres database sessions, both locally and remote servers as well. It's possible using "apt purge -purge" is the trick, but it produced some errors from dkpg about directories not being empty so I removed them manually with "rm -rf". I tried the above stuff with several different permutations. Luckily I have an unused laptop to experiment with. This seems unnecessarily arcane and convoluted. I tried making a file of all of the packages installed for postgres and then removing them with "apt purge -purge $(cat installed.txt)" and I think that did the trick so that installing it again recreates the /etc/postgresql directory and its subdirectories. If I then do another "apt-get install -y postgresql" it appears to do the same thing as the first time except that the /etc/postgresql directory is created, but it's empty. libsensors-configĪt this point the directory /etc/postgresql and its subdirectories were gone. ![]() And if the installation is complete, verify the PostgreSQL service by running the commands below. Type ' y ' and press ' Enter ' to continue the PostgreSQL installation. Then removed it with apt-get remove -y postgresqlīut that left several packages which autoremove didn't remove so I removed the following manually with apt-get remove: postgresql-15Īfter that there were some postgresql things in the output from "apt list|grep postgres" tagged as 'residual' (or probably 'residual' and 'config'?) so I removed them with apt-get remove, or perhaps it was with apt purge -purge. To install the PostgreSQL server on the Debian server, execute the apt command below. I installed postgresql with apt-get install -y postgresql
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |