You can use the YUM repository’s yum command to uninstall PostgreSQL on Fedora-based distributions of Linux such Red Hat or CentOS: 1 Uninstall and remove PostgreSQL packages on Fedora Linux Use the rm command with the -rf options to recursively remove all of the directories and data for the postgresql packages: 1Īfter you complete your rm commands, execute the dpkg -l | grep postgres command one more time to verify that all of the packages have been removed. Remove all of the PostgreSQL data and directories This command will remove the package and purge all the data associated with it: 1 An example of this command is shown below: 1įinally, make sure to use the APT-GET repository’s -purge remove command, followed by the postgres package name. You can use the dpkg command for managing Debian packages, in conjunction with grep, to search for all the package names installed that contain the sub-string postgres. Grep for all PostgreSQL packages in Debian Linux Sudo apt-get –purge remove postgresql postgresql-doc postgresql-common You can use the apt-get command to completely remove PostgreSQL on a Debian-based distribution of Linux such as Linux Mint or Ubuntu: 1 Uninstall and remove PostgreSQL on Debian Linux NOTE: Be sure to elevate the privileges for any of the commands in this article with sudo if the terminal returns a Permission denied error. In this article, we’ll explain how to uninstall PostgreSQL from Linux, macOS and Windows operating systems. It’s important to know how to uninstall PostgreSQL properly to make sure all components of the package are completely removed and you don’t encounter any errors. If you’re using PostgreSQL, you may need to remove the package from your system at some point.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |