How To Install postgresql-server on Fedora 36

In this tutorial we learn how to install postgresql-server in Fedora 36. postgresql-server is The programs needed to create and run a PostgreSQL server

Introduction

In this tutorial we learn how to install postgresql-server on Fedora 36.

What is postgresql-server

PostgreSQL is an advanced Object-Relational database management system (DBMS). The postgresql-server package contains the programs needed to create and run a PostgreSQL server, which will in turn allow you to create and maintain PostgreSQL databases.

We can use yum or dnf to install postgresql-server on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install postgresql-server.

Install postgresql-server on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install postgresql-server using dnf by running the following command:

sudo dnf -y install postgresql-server

Install postgresql-server on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install postgresql-server using yum by running the following command:

sudo yum -y install postgresql-server

How To Uninstall postgresql-server on Fedora 36

To uninstall only the postgresql-server package we can use the following command:

sudo dnf remove postgresql-server

postgresql-server Package Contents on Fedora 36

/etc/pam.d/postgresql
/etc/postgresql-setup
/etc/postgresql-setup/upgrade
/etc/postgresql-setup/upgrade/postgresql.conf
/usr/bin/initdb
/usr/bin/pg_basebackup
/usr/bin/pg_checksums
/usr/bin/pg_controldata
/usr/bin/pg_ctl
/usr/bin/pg_receivewal
/usr/bin/pg_recvlogical
/usr/bin/pg_resetwal
/usr/bin/pg_rewind
/usr/bin/pg_verifybackup
/usr/bin/postgres
/usr/bin/postgresql-setup
/usr/bin/postgresql-upgrade
/usr/bin/postmaster
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/09cb9793acee5a617e7902659bc6d0b7bcd079
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/5005738cf2d4d06b810ef15fc9cc0f7de0e891
/usr/lib/.build-id/13
/usr/lib/.build-id/13/cfe7f6495506365b127fe49ffee9160e0afe50
/usr/lib/.build-id/17
/usr/lib/.build-id/17/a96d17317f0861637d26df03a4071dde7ae7a1
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/711b8ef62e425bfe4a4984fa34ee3a5b35e06e
/usr/lib/.build-id/24
/usr/lib/.build-id/24/2f38828bf29705b9adea03d9ff51275356f511
/usr/lib/.build-id/29
/usr/lib/.build-id/29/eb39b4933b502bae6939b0103d7f67e0e85903
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/1f6da0af3e9c8de8f5cac6cbe78918f825b050
/usr/lib/.build-id/2b/489f4d63e40b7ff4b026e430dc4e49afeb2caf
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/5d0176c46fc8fe599d52daa9bebbd7476599f3
/usr/lib/.build-id/30/ec605ffa64cbee7454aa630fc544be913c3d87
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/5ea23d26b4f7adbb7a94fcf6580d112b4849e0
/usr/lib/.build-id/48
/usr/lib/.build-id/48/3eb3b58645e4ac1917822b2dcd436715e60f56
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/2bf00eb5d7a0642ca448cf3a063336d7d47436
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/f13c4a0b4b8ac991dab9e53643e1d4888199a7
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/2ebf204f626ba5ae598401a88dfc5c0dd7a451
/usr/lib/.build-id/4e/aee6bc1f3433bead108d901ca3fe3227aa41c9
/usr/lib/.build-id/60
/usr/lib/.build-id/60/17153634d80cfc00133234caaeefa64bae3f1a
/usr/lib/.build-id/69
/usr/lib/.build-id/69/5b7c36bd7984e76707a93c68ac6d796d86e816
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/fcc6d9333caeb55783c92b12ea52ec40aa3c8b
/usr/lib/.build-id/80
/usr/lib/.build-id/80/858f8195d3b7db2cc122eb8cc62de4bf00c67e
/usr/lib/.build-id/81
/usr/lib/.build-id/81/28617637ba8f9d0dadac72c1ce23a4de625f46
/usr/lib/.build-id/87
/usr/lib/.build-id/87/5be2b87cbae5f7e0172b0d981443268f06bd3f
/usr/lib/.build-id/87/98241513ab7814d471dd85bc6382f0efe7fb28
/usr/lib/.build-id/92
/usr/lib/.build-id/92/9eb72f0b18f2a844d94510f0210b4676e0c6a5
/usr/lib/.build-id/95
/usr/lib/.build-id/95/5b54efb819bac9f25c0b12b38782664d042e83
/usr/lib/.build-id/98
/usr/lib/.build-id/98/75e7c074072ef20c3d273a1feecbf61c20f98d
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/f2dccde682f92c3144e35beaa4c31b87d8c873
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/54164123cbc4a85f4231440f6648315fb8a78b
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/83c154c4101044d3cb4741b4350283d71135f6
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/ea326c352cbda24b6c74109e73a0154a6d14d4
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/d49df60524790487456e1e71afbbea8fa1148a
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/56723873252b677be4749d225cbcac810c6959
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/c1194c74e69c071bde4a1ee397fd3d3a7498ef
/usr/lib/.build-id/b3/9dcfab7a5b2b0abf0fef8071cf375cdb57c41a
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/196d5a85e98b8994396457287861e467bee602
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/f21848144f69222f61e50b1498829e87205fa9
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/6a87f2cfbd1d67463584fdec33949b5d366e8f
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/42caf43ff01258c0b4ae82997db9480ee6f867
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/fa72b96dd96a9aa2d5efefdb0b7e02aa319c42
/usr/lib/systemd/system/postgresql.service
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/postgresql.conf
/usr/lib64/pgsql
/usr/lib64/pgsql/cyrillic_and_mic.so
/usr/lib64/pgsql/dict_snowball.so
/usr/lib64/pgsql/euc2004_sjis2004.so
/usr/lib64/pgsql/euc_cn_and_mic.so
/usr/lib64/pgsql/euc_jp_and_sjis.so
/usr/lib64/pgsql/euc_kr_and_mic.so
/usr/lib64/pgsql/euc_tw_and_big5.so
/usr/lib64/pgsql/latin2_and_win1250.so
/usr/lib64/pgsql/latin_and_mic.so
/usr/lib64/pgsql/libpqwalreceiver.so
/usr/lib64/pgsql/pg_prewarm.so
/usr/lib64/pgsql/pgoutput.so
/usr/lib64/pgsql/plpgsql.so
/usr/lib64/pgsql/utf8_and_big5.so
/usr/lib64/pgsql/utf8_and_cyrillic.so
/usr/lib64/pgsql/utf8_and_euc2004.so
/usr/lib64/pgsql/utf8_and_euc_cn.so
/usr/lib64/pgsql/utf8_and_euc_jp.so
/usr/lib64/pgsql/utf8_and_euc_kr.so
/usr/lib64/pgsql/utf8_and_euc_tw.so
/usr/lib64/pgsql/utf8_and_gb18030.so
/usr/lib64/pgsql/utf8_and_gbk.so
/usr/lib64/pgsql/utf8_and_iso8859.so
/usr/lib64/pgsql/utf8_and_iso8859_1.so
/usr/lib64/pgsql/utf8_and_johab.so
/usr/lib64/pgsql/utf8_and_sjis.so
/usr/lib64/pgsql/utf8_and_sjis2004.so
/usr/lib64/pgsql/utf8_and_uhc.so
/usr/lib64/pgsql/utf8_and_win.so
/usr/libexec/initscripts/legacy-actions/postgresql
/usr/libexec/initscripts/legacy-actions/postgresql/initdb
/usr/libexec/initscripts/legacy-actions/postgresql/upgrade
/usr/libexec/postgresql-check-db-dir
/usr/sbin/postgresql-new-systemd-unit
/usr/share/locale/cs/LC_MESSAGES/initdb-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/cs/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/de/LC_MESSAGES/initdb-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/de/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/de/LC_MESSAGES/postgres-14.mo
/usr/share/locale/el/LC_MESSAGES/initdb-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/el/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/es/LC_MESSAGES/initdb-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/es/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/es/LC_MESSAGES/postgres-14.mo
/usr/share/locale/fr/LC_MESSAGES/initdb-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/fr/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/fr/LC_MESSAGES/postgres-14.mo
/usr/share/locale/it/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/it/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/it/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/it/LC_MESSAGES/postgres-14.mo
/usr/share/locale/ja/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ja/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ja/LC_MESSAGES/postgres-14.mo
/usr/share/locale/ko/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ko/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ko/LC_MESSAGES/postgres-14.mo
/usr/share/locale/pl/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/pt_BR/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ru/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ru/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ru/LC_MESSAGES/postgres-14.mo
/usr/share/locale/sv/LC_MESSAGES/initdb-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/sv/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/sv/LC_MESSAGES/postgres-14.mo
/usr/share/locale/tr/LC_MESSAGES/initdb-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/tr/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/uk/LC_MESSAGES/initdb-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/uk/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/uk/LC_MESSAGES/postgres-14.mo
/usr/share/locale/vi/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/initdb-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/postgres-14.mo
/usr/share/man/man1/initdb.1.gz
/usr/share/man/man1/pg_basebackup.1.gz
/usr/share/man/man1/pg_checksums.1.gz
/usr/share/man/man1/pg_controldata.1.gz
/usr/share/man/man1/pg_ctl.1.gz
/usr/share/man/man1/pg_receivewal.1.gz
/usr/share/man/man1/pg_resetwal.1.gz
/usr/share/man/man1/pg_rewind.1.gz
/usr/share/man/man1/pg_verifybackup.1.gz
/usr/share/man/man1/postgres.1.gz
/usr/share/man/man1/postgresql-new-systemd-unit.1.gz
/usr/share/man/man1/postgresql-setup.1.gz
/usr/share/man/man1/postgresql-upgrade.1.gz
/usr/share/man/man1/postmaster.1.gz
/usr/share/pgsql
/usr/share/pgsql/contrib
/usr/share/pgsql/extension
/usr/share/pgsql/extension/plpgsql--1.0.sql
/usr/share/pgsql/extension/plpgsql.control
/usr/share/pgsql/information_schema.sql
/usr/share/pgsql/pg_hba.conf.sample
/usr/share/pgsql/pg_ident.conf.sample
/usr/share/pgsql/pg_service.conf.sample
/usr/share/pgsql/postgres.bki
/usr/share/pgsql/postgresql.conf.sample
/usr/share/pgsql/psqlrc.sample
/usr/share/pgsql/snowball_create.sql
/usr/share/pgsql/sql_features.txt
/usr/share/pgsql/system_constraints.sql
/usr/share/pgsql/system_functions.sql
/usr/share/pgsql/system_views.sql
/usr/share/pgsql/timezonesets
/usr/share/pgsql/timezonesets/Africa.txt
/usr/share/pgsql/timezonesets/America.txt
/usr/share/pgsql/timezonesets/Antarctica.txt
/usr/share/pgsql/timezonesets/Asia.txt
/usr/share/pgsql/timezonesets/Atlantic.txt
/usr/share/pgsql/timezonesets/Australia
/usr/share/pgsql/timezonesets/Australia.txt
/usr/share/pgsql/timezonesets/Default
/usr/share/pgsql/timezonesets/Etc.txt
/usr/share/pgsql/timezonesets/Europe.txt
/usr/share/pgsql/timezonesets/India
/usr/share/pgsql/timezonesets/Indian.txt
/usr/share/pgsql/timezonesets/Pacific.txt
/usr/share/pgsql/tsearch_data
/usr/share/pgsql/tsearch_data/danish.stop
/usr/share/pgsql/tsearch_data/dutch.stop
/usr/share/pgsql/tsearch_data/english.stop
/usr/share/pgsql/tsearch_data/finnish.stop
/usr/share/pgsql/tsearch_data/french.stop
/usr/share/pgsql/tsearch_data/german.stop
/usr/share/pgsql/tsearch_data/hungarian.stop
/usr/share/pgsql/tsearch_data/hunspell_sample.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_long.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_long.dict
/usr/share/pgsql/tsearch_data/hunspell_sample_num.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_num.dict
/usr/share/pgsql/tsearch_data/ispell_sample.affix
/usr/share/pgsql/tsearch_data/ispell_sample.dict
/usr/share/pgsql/tsearch_data/italian.stop
/usr/share/pgsql/tsearch_data/nepali.stop
/usr/share/pgsql/tsearch_data/norwegian.stop
/usr/share/pgsql/tsearch_data/portuguese.stop
/usr/share/pgsql/tsearch_data/russian.stop
/usr/share/pgsql/tsearch_data/spanish.stop
/usr/share/pgsql/tsearch_data/swedish.stop
/usr/share/pgsql/tsearch_data/synonym_sample.syn
/usr/share/pgsql/tsearch_data/thesaurus_sample.ths
/usr/share/pgsql/tsearch_data/turkish.stop
/usr/share/pgsql/tsearch_data/unaccent.rules
/usr/share/pgsql/tsearch_data/xsyn_sample.rules
/usr/share/postgresql-setup
/usr/share/postgresql-setup/library.sh
/var/lib/pgsql
/var/lib/pgsql/.bash_profile
/var/lib/pgsql/backups
/var/lib/pgsql/data
/var/run/postgresql

References

Summary

In this tutorial we learn how to install postgresql-server on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install postgresql-server on Fedora 36” linkTitle: “postgresql-server” type: “docs” description: “In this tutorial we learn how to install postgresql-server in Fedora 36. postgresql-server is The programs needed to create and run a PostgreSQL server” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/postgresql-server-featured.png

Introduction

In this tutorial we learn how to install postgresql-server on Fedora 36.

What is postgresql-server

PostgreSQL is an advanced Object-Relational database management system (DBMS). The postgresql-server package contains the programs needed to create and run a PostgreSQL server, which will in turn allow you to create and maintain PostgreSQL databases.

We can use yum or dnf to install postgresql-server on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install postgresql-server.

Install postgresql-server on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install postgresql-server using dnf by running the following command:

sudo dnf -y install postgresql-server

Install postgresql-server on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install postgresql-server using yum by running the following command:

sudo yum -y install postgresql-server

How To Uninstall postgresql-server on Fedora 36

To uninstall only the postgresql-server package we can use the following command:

sudo dnf remove postgresql-server

postgresql-server Package Contents on Fedora 36

/etc/pam.d/postgresql
/etc/postgresql-setup
/etc/postgresql-setup/upgrade
/etc/postgresql-setup/upgrade/postgresql.conf
/usr/bin/initdb
/usr/bin/pg_basebackup
/usr/bin/pg_checksums
/usr/bin/pg_controldata
/usr/bin/pg_ctl
/usr/bin/pg_receivewal
/usr/bin/pg_recvlogical
/usr/bin/pg_resetwal
/usr/bin/pg_rewind
/usr/bin/pg_verifybackup
/usr/bin/postgres
/usr/bin/postgresql-setup
/usr/bin/postgresql-upgrade
/usr/bin/postmaster
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/04a6ced0342b34cd44926cc79151a770eb5aad
/usr/lib/.build-id/00/e1adbf658d61689d411e823b4b8ecca67921ff
/usr/lib/.build-id/01
/usr/lib/.build-id/01/88b20fb0e98fd37455583de1d84ec772108042
/usr/lib/.build-id/18
/usr/lib/.build-id/18/0bb8fd582ea4ae3befe672db7412cabb485e47
/usr/lib/.build-id/27
/usr/lib/.build-id/27/40fe291640da833922514eab86f1bcf998bf46
/usr/lib/.build-id/27/ac9057832001b4631471713ec943f6a9656e44
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/529eb980e30cce41626a7fd2033113880807ae
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/c475940e9d6338415caa5f772394de7a37d7f0
/usr/lib/.build-id/34/87eba705ffc9d3875fd985b787599e22a81507
/usr/lib/.build-id/38/eb3fcf6c762b1fcc34c090405465ca3a321dfb
/usr/lib/.build-id/40
/usr/lib/.build-id/40/3f0ec38b63e389ca852296c5fdc7136993468d
/usr/lib/.build-id/46
/usr/lib/.build-id/46/2b87e10c1251519a7063a18e09c2bb0ab7c515
/usr/lib/.build-id/52
/usr/lib/.build-id/52/bc2ff3d73452025613cd7b021152e857fe1235
/usr/lib/.build-id/59
/usr/lib/.build-id/59/96d97cd1ff8261b58e7e092c8027472676fdf8
/usr/lib/.build-id/5b/10cf9161c4d313f61595492a1bdcb44dff3c9d
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/23cf500f00620046032e321b8a40b643cf120d
/usr/lib/.build-id/70
/usr/lib/.build-id/70/89a6b1d90f6f6289ddba597f02909f7b6c6caa
/usr/lib/.build-id/71
/usr/lib/.build-id/71/5ba1e0baa8504733488e26b535cdf6a9760ebb
/usr/lib/.build-id/73
/usr/lib/.build-id/73/795af0efe26865c3919940bb2208ad76578206
/usr/lib/.build-id/7c/6629d2c5d627e2e450b827ceaf041f8731d9ab
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/dccf341e865236d84bd12c6eeedb4ca4a1280d
/usr/lib/.build-id/85
/usr/lib/.build-id/85/4b94887ef4a8d35772ea4676c1ff5686177868
/usr/lib/.build-id/85/83ff85bc19ae911e866a81d6e34b2f663cefc0
/usr/lib/.build-id/87
/usr/lib/.build-id/87/27b64323c3c06bea01b8559a75a77f36f52da0
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/4532f034d9aab5f571e06daeac8f36b2199046
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/faea7f7814b5092ec0bcbceba8cb9eddf937e1
/usr/lib/.build-id/91
/usr/lib/.build-id/91/5ef5aa3b8e54f1d132d53e90d3dc000885eab2
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/4b3e31f23cd7a6cd4a69200df3d87eb961a874
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/c2fb55603cbbd622502cc6f66e72f879d52792
/usr/lib/.build-id/af
/usr/lib/.build-id/af/b74b2a0191d933859d9c06283c4a5737912f57
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/e9d3aab9e28488be1ab8d0a7e8768c4450c5ee
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/8083a53cbf584d504490341582655766b4279b
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/a939afbe7df1e74aa1c8cefa46fae78abad171
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/f4ccebcd006a378eae911f3a291ce0f5848147
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/86ac911d3908afbd1f1f065da2cc53d40b4fcd
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/9bf8a5b5157950903e4c95a627635248363780
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/2230eb6b7db68b80d163ee22cb3d18514ca148
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/9c58b1772fd8d9e4b823437f75e39006676d46
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/5e1197ef7968d380e19d28617acfb8bb76b08d
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/7c3ea2df899a2d5bccf1d9e5534cb7a9d1bf50
/usr/lib/pgsql
/usr/lib/pgsql/cyrillic_and_mic.so
/usr/lib/pgsql/dict_snowball.so
/usr/lib/pgsql/euc2004_sjis2004.so
/usr/lib/pgsql/euc_cn_and_mic.so
/usr/lib/pgsql/euc_jp_and_sjis.so
/usr/lib/pgsql/euc_kr_and_mic.so
/usr/lib/pgsql/euc_tw_and_big5.so
/usr/lib/pgsql/latin2_and_win1250.so
/usr/lib/pgsql/latin_and_mic.so
/usr/lib/pgsql/libpqwalreceiver.so
/usr/lib/pgsql/pg_prewarm.so
/usr/lib/pgsql/pgoutput.so
/usr/lib/pgsql/plpgsql.so
/usr/lib/pgsql/utf8_and_big5.so
/usr/lib/pgsql/utf8_and_cyrillic.so
/usr/lib/pgsql/utf8_and_euc2004.so
/usr/lib/pgsql/utf8_and_euc_cn.so
/usr/lib/pgsql/utf8_and_euc_jp.so
/usr/lib/pgsql/utf8_and_euc_kr.so
/usr/lib/pgsql/utf8_and_euc_tw.so
/usr/lib/pgsql/utf8_and_gb18030.so
/usr/lib/pgsql/utf8_and_gbk.so
/usr/lib/pgsql/utf8_and_iso8859.so
/usr/lib/pgsql/utf8_and_iso8859_1.so
/usr/lib/pgsql/utf8_and_johab.so
/usr/lib/pgsql/utf8_and_sjis.so
/usr/lib/pgsql/utf8_and_sjis2004.so
/usr/lib/pgsql/utf8_and_uhc.so
/usr/lib/pgsql/utf8_and_win.so
/usr/lib/systemd/system/postgresql.service
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/postgresql.conf
/usr/libexec/initscripts/legacy-actions/postgresql
/usr/libexec/initscripts/legacy-actions/postgresql/initdb
/usr/libexec/initscripts/legacy-actions/postgresql/upgrade
/usr/libexec/postgresql-check-db-dir
/usr/sbin/postgresql-new-systemd-unit
/usr/share/locale/cs/LC_MESSAGES/initdb-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/cs/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/cs/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/de/LC_MESSAGES/initdb-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/de/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/de/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/de/LC_MESSAGES/postgres-14.mo
/usr/share/locale/el/LC_MESSAGES/initdb-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/el/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/el/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/es/LC_MESSAGES/initdb-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/es/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/es/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/es/LC_MESSAGES/postgres-14.mo
/usr/share/locale/fr/LC_MESSAGES/initdb-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/fr/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/fr/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/fr/LC_MESSAGES/postgres-14.mo
/usr/share/locale/it/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/it/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/it/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/it/LC_MESSAGES/postgres-14.mo
/usr/share/locale/ja/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/ja/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ja/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ja/LC_MESSAGES/postgres-14.mo
/usr/share/locale/ko/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ko/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ko/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ko/LC_MESSAGES/postgres-14.mo
/usr/share/locale/pl/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/pt_BR/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ru/LC_MESSAGES/initdb-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/ru/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/ru/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/ru/LC_MESSAGES/postgres-14.mo
/usr/share/locale/sv/LC_MESSAGES/initdb-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/sv/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/sv/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/sv/LC_MESSAGES/postgres-14.mo
/usr/share/locale/tr/LC_MESSAGES/initdb-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/tr/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/tr/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/uk/LC_MESSAGES/initdb-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/uk/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/uk/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/uk/LC_MESSAGES/postgres-14.mo
/usr/share/locale/vi/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/initdb-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_basebackup-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_checksums-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_controldata-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_ctl-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_resetwal-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_rewind-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_verifybackup-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/plpgsql-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/postgres-14.mo
/usr/share/man/man1/initdb.1.gz
/usr/share/man/man1/pg_basebackup.1.gz
/usr/share/man/man1/pg_checksums.1.gz
/usr/share/man/man1/pg_controldata.1.gz
/usr/share/man/man1/pg_ctl.1.gz
/usr/share/man/man1/pg_receivewal.1.gz
/usr/share/man/man1/pg_resetwal.1.gz
/usr/share/man/man1/pg_rewind.1.gz
/usr/share/man/man1/pg_verifybackup.1.gz
/usr/share/man/man1/postgres.1.gz
/usr/share/man/man1/postgresql-new-systemd-unit.1.gz
/usr/share/man/man1/postgresql-setup.1.gz
/usr/share/man/man1/postgresql-upgrade.1.gz
/usr/share/man/man1/postmaster.1.gz
/usr/share/pgsql
/usr/share/pgsql/contrib
/usr/share/pgsql/extension
/usr/share/pgsql/extension/plpgsql--1.0.sql
/usr/share/pgsql/extension/plpgsql.control
/usr/share/pgsql/information_schema.sql
/usr/share/pgsql/pg_hba.conf.sample
/usr/share/pgsql/pg_ident.conf.sample
/usr/share/pgsql/pg_service.conf.sample
/usr/share/pgsql/postgres.bki
/usr/share/pgsql/postgresql.conf.sample
/usr/share/pgsql/psqlrc.sample
/usr/share/pgsql/snowball_create.sql
/usr/share/pgsql/sql_features.txt
/usr/share/pgsql/system_constraints.sql
/usr/share/pgsql/system_functions.sql
/usr/share/pgsql/system_views.sql
/usr/share/pgsql/timezonesets
/usr/share/pgsql/timezonesets/Africa.txt
/usr/share/pgsql/timezonesets/America.txt
/usr/share/pgsql/timezonesets/Antarctica.txt
/usr/share/pgsql/timezonesets/Asia.txt
/usr/share/pgsql/timezonesets/Atlantic.txt
/usr/share/pgsql/timezonesets/Australia
/usr/share/pgsql/timezonesets/Australia.txt
/usr/share/pgsql/timezonesets/Default
/usr/share/pgsql/timezonesets/Etc.txt
/usr/share/pgsql/timezonesets/Europe.txt
/usr/share/pgsql/timezonesets/India
/usr/share/pgsql/timezonesets/Indian.txt
/usr/share/pgsql/timezonesets/Pacific.txt
/usr/share/pgsql/tsearch_data
/usr/share/pgsql/tsearch_data/danish.stop
/usr/share/pgsql/tsearch_data/dutch.stop
/usr/share/pgsql/tsearch_data/english.stop
/usr/share/pgsql/tsearch_data/finnish.stop
/usr/share/pgsql/tsearch_data/french.stop
/usr/share/pgsql/tsearch_data/german.stop
/usr/share/pgsql/tsearch_data/hungarian.stop
/usr/share/pgsql/tsearch_data/hunspell_sample.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_long.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_long.dict
/usr/share/pgsql/tsearch_data/hunspell_sample_num.affix
/usr/share/pgsql/tsearch_data/hunspell_sample_num.dict
/usr/share/pgsql/tsearch_data/ispell_sample.affix
/usr/share/pgsql/tsearch_data/ispell_sample.dict
/usr/share/pgsql/tsearch_data/italian.stop
/usr/share/pgsql/tsearch_data/nepali.stop
/usr/share/pgsql/tsearch_data/norwegian.stop
/usr/share/pgsql/tsearch_data/portuguese.stop
/usr/share/pgsql/tsearch_data/russian.stop
/usr/share/pgsql/tsearch_data/spanish.stop
/usr/share/pgsql/tsearch_data/swedish.stop
/usr/share/pgsql/tsearch_data/synonym_sample.syn
/usr/share/pgsql/tsearch_data/thesaurus_sample.ths
/usr/share/pgsql/tsearch_data/turkish.stop
/usr/share/pgsql/tsearch_data/unaccent.rules
/usr/share/pgsql/tsearch_data/xsyn_sample.rules
/usr/share/postgresql-setup
/usr/share/postgresql-setup/library.sh
/var/lib/pgsql
/var/lib/pgsql/.bash_profile
/var/lib/pgsql/backups
/var/lib/pgsql/data
/var/run/postgresql

References

Summary

In this tutorial we learn how to install postgresql-server on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).