postgresql-client-common is a software package available in Ubuntu that provides common files and utilities for PostgreSQL client applications. PostgreSQL is a popular open-source relational database management system that is widely used for web applications, data analytics, and other use cases. In Ubuntu, the postgresql-client-common package is installed by default when you install the postgresql-client package.
The postgresql-client-common package contains the following files and utilities that are used by PostgreSQL client applications:
- /usr/share/postgresql-common/pg_wrapper: A wrapper script that helps to simplify the process of invoking PostgreSQL client applications.
- /usr/share/postgresql-common/pg_service.conf: A configuration file that defines PostgreSQL database services that can be accessed by client applications.
- /usr/share/postgresql-common/pg_config and /usr/share/postgresql-common/pg_config_manual.txt: These files contain information about the PostgreSQL installation and can be used by client applications to compile PostgreSQL extensions.
The postgresql-client-common package does not contain the actual PostgreSQL database server or client libraries. Instead, it provides the common files and utilities that are shared by multiple PostgreSQL client applications.
Uninstalling postgresql-client-common package in Ubuntu
You can uninstall an installed postgresql-client-common package from Ubuntu using the below command:
$ sudo apt-get remove postgresql-client-common
Uninstall postgresql-client-common including dependent package
If you would like to remove postgresql-client-common and it’s dependent packages which are no longer needed from Ubuntu:
$ sudo apt-get remove --auto-remove postgresql-client-common
Use Purging postgresql-client-common
If you use with purge options to postgresql-client-common package all the configuration and dependent packages will be removed.
$ sudo apt-get purge postgresql-client-common
If you use purge options along with auto remove, will be removed everything regarding the package, It’s really useful when you want to reinstall again.
$ sudo apt-get purge --auto-remove postgresql-client-common
Summary
In summary, postgresql-client-common is a useful package for developers and administrators who work with PostgreSQL client applications in Ubuntu. It provides a set of common files and utilities that can simplify the process of developing and managing PostgreSQL databases.