Ubuntu postgresql client 1311/22/2023 I like to use PostgreSQL, but the problem is installing the pg gem. Through practical demonstration, this Postgres blog has explained how to uninstall PostgreSQL from the ubuntu operating system.I am using the Ruby on Rails 3.1 pre version. 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. PostgreSQL is among the most popular open-source relational databases that provide a wide range of advantages, including security, stability, extensibility, etc.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |