Another way of removing postgres from ubuntu is by using the “sudo apt-get –purge remove” command followed by the name of packages to be removed. To uninstall the dependent packages from the ubuntu operating system, use the “sudo apt autoremove” command. To uninstall Postgres from your Ubuntu operating system, open the terminal and run the “sudo apt remove postgresql postgresql-contrib” command. The above snippet proves that postgres has been uninstalled completely from Ubuntu. Let’s execute the below statement one more time to verify the uninstallation of Postgres from ubuntu: dpkg -l | grep postgres Hit the “Yes” button, and it will take a few minutes to complete the uninstallation. The following window will appear during the uninstallation, asking you to remove Postgres directories when the package is purged: Type “y” and hit the “Enter” button to continue the uninstallation process of Postgres: Remove Postgres from your system by running the remove purge command followed by the name of all the packages related to Postgres: sudo apt-get –purge remove postgresql postgresql-14 postgresql-client-common postgresql-common postgresql-contrib The above snippet shows the list of Postgres packages installed on our machine. Run the below-provided command to see the list of Postgres packages currently installed on your ubuntu operating system: dpkg -l |grep postgres If the above method is not working for some reasons, then nothing to worry about! We have explained another very convenient method to uninstall Postgres from your Ubuntu operating system. Method 2: Using ‘purge remove postgresql’ The whole process will take some time to remove Postgres and its dependent packages completely from ubuntu. Type “y” and hit the “Enter” button to remove Postgres from Ubuntu: So, to uninstall these dependent packages, the below-mentioned command is used in ubuntu: sudo apt autoremove However, when you remove Postgres from ubuntu, these dependent/additional packages are no longer needed. Some additional(dependent) packages are automatically installed on Ubuntu when you install Postgres. The above snippet demonstrates that Postgres has been removed from Ubuntu. To uninstall Postgres from your Ubuntu operating system, open the terminal and run the command below: sudo apt remove postgresql postgresql-contrib For that purpose, follow the steps provided below: This section describes the simplest way of uninstalling Postgres from ubuntu. Method 1: Using ‘sudo apt remove postgresql’ In this write-up, we are going to discuss a couple of them! Uninstalling Postgres from Ubuntu can be done using various ways. So it's crucial to understand how to uninstall the PostgreSQL database completely(along with its dependent packages) from your system. PostgreSQL may need to be uninstalled from a system at some point for various reasons, such as cleaning up the disk space, not needing it anymore, etc. This blog post will demonstrate how to uninstall Postgres completely from the ubuntu operating system. However, when PostgreSQL is no longer needed, you can uninstall it from your Ubuntu operating system. Users can safely store vast amount of complex data using Postgres. You can now explore the pgAdmin4 web interface and start managing your PostgreSQL server through a web browser.PostgreSQL is among the most popular open-source relational databases that provide a wide range of advantages, including security, stability, extensibility, etc. Once the connection is established, you should see the following page:Ĭongratulations! you have successfully installed PostgreSQL and pgAdmin4 on Ubuntu 20.04 server. Provide your PostgreSQL host, database user, password and click on the Save button. Provide your servername in General settings then click on the Connections tab. Next, click on the Add New Server to connect to the PostgreSQL server. You should see the pgAdmin4 dashboard in the following page: Provide your email address, password and click on the Login button. Now, you can access the pgAdmin4 web interface using the URL You will be redirected to the pgAdmin4 login page: You can now start using pgAdmin 4 in web mode at Access pgAdmin4 Web Interface Continue (y/n) ? y Apache successfully restarted. Do you wish to continue (y/n) ? y The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. We can now configure the Apache Web server for you. Enter the email address and password to use for the initial pgAdmin user account: Email address: Password: Retype password: pgAdmin 4 - Application Initialisation = Creating storage and log directories. NOTE: Configuring authentication for SERVER mode. Setting up pgAdmin 4 in web mode on a Debian based platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |