How To Install postgresql-upgrade on Rocky Linux 8

In this tutorial we learn how to install postgresql-upgrade on Rocky Linux 8. postgresql-upgrade is Support for upgrading from the previous major release of PostgreSQL

Introduction

In this tutorial we learn how to install postgresql-upgrade on Rocky Linux 8.

What is postgresql-upgrade

The postgresql-upgrade package contains the pg_upgrade utility and supporting files needed for upgrading a PostgreSQL database from the previous major version of PostgreSQL.

We can use yum or dnf to install postgresql-upgrade on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install postgresql-upgrade.

Install postgresql-upgrade on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install postgresql-upgrade

Install postgresql-upgrade on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install postgresql-upgrade

How To Uninstall postgresql-upgrade on Rocky Linux 8

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

sudo dnf remove postgresql-upgrade

postgresql-upgrade Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/03/8d0f6a07597b67d99cb4d5bd940fdc4c4c763a
/usr/lib/.build-id/05/ae1a533064409983494c36060a84ac4fa7478a
/usr/lib/.build-id/0e/40f6c0cc4cf5c42d83c4b20ee41790803edd80
/usr/lib/.build-id/10
/usr/lib/.build-id/10/e27732de839c10790d93e1e2dff1309e632eee
/usr/lib/.build-id/18
/usr/lib/.build-id/18/cd744fa0d4b18c05756c30ff197ac5a3b9bc3b
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/b546f203c66cd17c767a42adb4ba357eb19d22
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/78c3d60c7834ff4e986cd5aa8ce99a34a23712
/usr/lib/.build-id/1e/d1de8ea18d3842fcea70ac730943607ecfc701
/usr/lib/.build-id/25
/usr/lib/.build-id/25/539f659f50e08a7675516c0dc9cd019ca10446
/usr/lib/.build-id/26/48d21809403fab3a02c75f3566c6c939b3932f
/usr/lib/.build-id/27
/usr/lib/.build-id/27/95c8c334595eb326e2b9bf33a9a00f96c1c509
/usr/lib/.build-id/27/af0e1d8dc6b176b5f9666dc6276db6e85df58b
/usr/lib/.build-id/29/1ed075db79b1a97a4ce55a11e61fda33849e81
/usr/lib/.build-id/29/f57b6a8f84c51f4ac9687915eac12862a70b19
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/317a0f4107ffa3a78d72e58f67218e5d2b9861
/usr/lib/.build-id/32/de6ffa7c82a399abef514455fd3a936028e109
/usr/lib/.build-id/34
/usr/lib/.build-id/34/914689bb5f907d193a8d2c2024b707c77757ad
/usr/lib/.build-id/34/d1ca2330b85b067d9fb30fb1bd129662fdedc5
/usr/lib/.build-id/38
/usr/lib/.build-id/38/2c513cc82d60feeda036d7525011ffc729a4ed
/usr/lib/.build-id/3a/9bb955ab21d20458f99ba002fd1d46f622eb95
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/639a9113b827f4dedecd1a664d98d5a58fe4c4
/usr/lib/.build-id/3f/810742346088155d38aba8a459a63d47b93122
/usr/lib/.build-id/40/71e6b39565b4c295d6646bea3b66222d976222
/usr/lib/.build-id/41/a5914a49be1a8869b33659691a0f7d87180365
/usr/lib/.build-id/41/f93de587567c91ef9ff63a4e161675fce0010f
/usr/lib/.build-id/44
/usr/lib/.build-id/44/123406331c55dbbd79c5477dc2d601612fb502
/usr/lib/.build-id/46
/usr/lib/.build-id/46/86b36eb56993b94ef6df7d6e894895b5d02e69
/usr/lib/.build-id/47
/usr/lib/.build-id/47/3e04d2a34bb2e3a4af2406d4c14c872847fd46
/usr/lib/.build-id/48/23d7540e4d0f3fbeff04402a5816678f731ccd
/usr/lib/.build-id/48/988177245834f5c9bce8aec845419fde4a7f92
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/e11263db7ad0ae37471f985d7a38b47dad8181
/usr/lib/.build-id/56/2857ccd89548bcb0fecc30e56bd9c450ada2de
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/ca69783d5585af8868ff335d646adf08c2659a
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/7a78a74087c53f8713ed0a3cd640bd3572a072
/usr/lib/.build-id/60/f10cdf94db31ce7c8923ae3c96d9b62415aa1c
/usr/lib/.build-id/62/d979550c4ca819f259ebb1555d91595c59b32d
/usr/lib/.build-id/62/eaed6aa4665d03a9a0cc6acdbfd17dd8769c27
/usr/lib/.build-id/63/1f4bb235aeb6b9f866f5b1fdadf3d0480795ed
/usr/lib/.build-id/64/ab619e8abb12d53074943c9139a6853219d1ad
/usr/lib/.build-id/66
/usr/lib/.build-id/66/3f2374c2be36575ac7cd30c9e84c92deb772d5
/usr/lib/.build-id/68
/usr/lib/.build-id/68/49ba03dca25c535a483e1eeb7a4676b600a7b3
/usr/lib/.build-id/68/ea15b88d4a8d4e8fe41d919119db12a40c61e0
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/29bc14fc85644baf84afa3fd62e41d552c1745
/usr/lib/.build-id/70/e211a176ed686ec25c22db1db496c127b892f0
/usr/lib/.build-id/74/39044488054f0c20512880d0571c0066523a8a
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/5525e594595695ddd572c0ceb4618d25326366
/usr/lib/.build-id/80/0e790846506eec096142ee3ec5b071051bde48
/usr/lib/.build-id/81/10bf381c1e4ce61cc4d566c2112f17a8fc91b6
/usr/lib/.build-id/81/355808f241fdcdc2e04df1f0836e4ca06753d1
/usr/lib/.build-id/81/3c9d52ed4a4d46627f3274d4a68f42b6854e89
/usr/lib/.build-id/82/31b8dbfcefd04a7ed12cd5f4c93780fb86946a
/usr/lib/.build-id/82/4acb01dd2b96db3d2db2fd20925b09ccf02623
/usr/lib/.build-id/86
/usr/lib/.build-id/86/00027748da835b6ca8cf0f71a4bd47654dd3ea
/usr/lib/.build-id/90/0b4683cbb0d24481379ffa40c0c2ed12351328
/usr/lib/.build-id/91
/usr/lib/.build-id/91/03562586a57ce7893144ab23a7e32e599b469d
/usr/lib/.build-id/92
/usr/lib/.build-id/92/ebd9ee9107b6d947b00d61d0d5563614ba7d00
/usr/lib/.build-id/98/ab6f8ee3c428fb47942cb4d59f7d447458de91
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/fb8655d5e1c2aeadf1bb8352039d7bc20558b6
/usr/lib/.build-id/a1/7509b61b7fc3ae1284cabc786eeea8cec4a736
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/34c9afbb945b931f07697f297a7cd927ba4782
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/891774eab59e6ec17fec06d05932633aba0a8b
/usr/lib/.build-id/a8/84cecf543786b2c9de5dbd6a2ae72f2fd07624
/usr/lib/.build-id/a8/ab75dcdbb600cded66491d1f18dbe09ff625f7
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/e69c6734346d9d50fe88f5eee3475cbb83b8cd
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/75ac18b904f517334dcef7f23bbbd0f987f40d
/usr/lib/.build-id/af/d74163848697d87053ec3bf79d495647e2be5a
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/64407f731f07aeba8806055b93965b17a99821
/usr/lib/.build-id/b4/803bc18135c385edd1c314ea36a2dd04081ddd
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/cba7b2193535c06b4f103c146a4f4f6304ad73
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/8e98deed619480d0566f70a50056cf77d19050
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/2ff51102d7aa800543cba9760ab894cf7717b9
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/eb62dea7bc7157f4ee0d0a434f52dae3b57589
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/68228f4dfe5276912d7c07648b0e2f55506872
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/cb7a794e71cbabc4c1b9d5940bfe4024f8a5a4
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/6c2993c8b8e81fd9359970de20f8631b71fbd4
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/12619909584c5467ca9d38552043708ab6b205
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/c7caf3d1ee5b78827d6bb01ace81a4372a10fe
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/18fa3e6ab86c04a7663f91cd630b2b7f07c5a9
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/81f8e25aa328dd3e91b53771697b6016cf8da1
/usr/lib/.build-id/e4/e6da1dd468ec0f343f5f697145a00165013006
/usr/lib/.build-id/e7/0b16d68ac246f883ce2c3d560968f3283d3d3b
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/09f20314bb50a3d3323333e8efa3f5f71e1099
/usr/lib/.build-id/e9/4ab133b26c02eec6c6564c5101f08602cf4048
/usr/lib/.build-id/f7/70c4f554dd010a68cf4cf98353a7858c4f1dc1
/usr/lib/.build-id/f8/109fb02df45dd31570c6f50ed55fb5ba420565
/usr/lib/.build-id/f9/c017e86d6307f286621c66a0bd6ca64a3ca325
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/ead21fe15208c1c2a834ddae31f51df544ab26
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/9c40b969e409b885d13bf0b293122739b76e7e
/usr/lib64/pgsql/postgresql-9.2/bin
/usr/lib64/pgsql/postgresql-9.2/bin/oid2name
/usr/lib64/pgsql/postgresql-9.2/bin/pg_archivecleanup
/usr/lib64/pgsql/postgresql-9.2/bin/pg_controldata
/usr/lib64/pgsql/postgresql-9.2/bin/pg_ctl
/usr/lib64/pgsql/postgresql-9.2/bin/pg_receivexlog
/usr/lib64/pgsql/postgresql-9.2/bin/pg_resetxlog
/usr/lib64/pgsql/postgresql-9.2/bin/pg_standby
/usr/lib64/pgsql/postgresql-9.2/bin/pg_test_fsync
/usr/lib64/pgsql/postgresql-9.2/bin/pg_test_timing
/usr/lib64/pgsql/postgresql-9.2/bin/pg_upgrade
/usr/lib64/pgsql/postgresql-9.2/bin/pgbench
/usr/lib64/pgsql/postgresql-9.2/bin/pltcl_delmod
/usr/lib64/pgsql/postgresql-9.2/bin/pltcl_listmod
/usr/lib64/pgsql/postgresql-9.2/bin/pltcl_loadmod
/usr/lib64/pgsql/postgresql-9.2/bin/postgres
/usr/lib64/pgsql/postgresql-9.2/bin/postmaster
/usr/lib64/pgsql/postgresql-9.2/bin/vacuumlo
/usr/lib64/pgsql/postgresql-9.2/lib
/usr/lib64/pgsql/postgresql-9.2/lib/_int.so
/usr/lib64/pgsql/postgresql-9.2/lib/adminpack.so
/usr/lib64/pgsql/postgresql-9.2/lib/ascii_and_mic.so
/usr/lib64/pgsql/postgresql-9.2/lib/auth_delay.so
/usr/lib64/pgsql/postgresql-9.2/lib/auto_explain.so
/usr/lib64/pgsql/postgresql-9.2/lib/autoinc.so
/usr/lib64/pgsql/postgresql-9.2/lib/btree_gin.so
/usr/lib64/pgsql/postgresql-9.2/lib/btree_gist.so
/usr/lib64/pgsql/postgresql-9.2/lib/chkpass.so
/usr/lib64/pgsql/postgresql-9.2/lib/citext.so
/usr/lib64/pgsql/postgresql-9.2/lib/cube.so
/usr/lib64/pgsql/postgresql-9.2/lib/cyrillic_and_mic.so
/usr/lib64/pgsql/postgresql-9.2/lib/dblink.so
/usr/lib64/pgsql/postgresql-9.2/lib/dict_int.so
/usr/lib64/pgsql/postgresql-9.2/lib/dict_snowball.so
/usr/lib64/pgsql/postgresql-9.2/lib/dict_xsyn.so
/usr/lib64/pgsql/postgresql-9.2/lib/dummy_seclabel.so
/usr/lib64/pgsql/postgresql-9.2/lib/earthdistance.so
/usr/lib64/pgsql/postgresql-9.2/lib/euc2004_sjis2004.so
/usr/lib64/pgsql/postgresql-9.2/lib/euc_cn_and_mic.so
/usr/lib64/pgsql/postgresql-9.2/lib/euc_jp_and_sjis.so
/usr/lib64/pgsql/postgresql-9.2/lib/euc_kr_and_mic.so
/usr/lib64/pgsql/postgresql-9.2/lib/euc_tw_and_big5.so
/usr/lib64/pgsql/postgresql-9.2/lib/file_fdw.so
/usr/lib64/pgsql/postgresql-9.2/lib/fuzzystrmatch.so
/usr/lib64/pgsql/postgresql-9.2/lib/hstore.so
/usr/lib64/pgsql/postgresql-9.2/lib/insert_username.so
/usr/lib64/pgsql/postgresql-9.2/lib/isn.so
/usr/lib64/pgsql/postgresql-9.2/lib/latin2_and_win1250.so
/usr/lib64/pgsql/postgresql-9.2/lib/latin_and_mic.so
/usr/lib64/pgsql/postgresql-9.2/lib/libpqwalreceiver.so
/usr/lib64/pgsql/postgresql-9.2/lib/lo.so
/usr/lib64/pgsql/postgresql-9.2/lib/ltree.so
/usr/lib64/pgsql/postgresql-9.2/lib/moddatetime.so
/usr/lib64/pgsql/postgresql-9.2/lib/pageinspect.so
/usr/lib64/pgsql/postgresql-9.2/lib/passwordcheck.so
/usr/lib64/pgsql/postgresql-9.2/lib/pg_buffercache.so
/usr/lib64/pgsql/postgresql-9.2/lib/pg_freespacemap.so
/usr/lib64/pgsql/postgresql-9.2/lib/pg_stat_statements.so
/usr/lib64/pgsql/postgresql-9.2/lib/pg_trgm.so
/usr/lib64/pgsql/postgresql-9.2/lib/pg_upgrade_support.so
/usr/lib64/pgsql/postgresql-9.2/lib/pgcrypto.so
/usr/lib64/pgsql/postgresql-9.2/lib/pgrowlocks.so
/usr/lib64/pgsql/postgresql-9.2/lib/pgstattuple.so
/usr/lib64/pgsql/postgresql-9.2/lib/plperl.so
/usr/lib64/pgsql/postgresql-9.2/lib/plpgsql.so
/usr/lib64/pgsql/postgresql-9.2/lib/plpython3.so
/usr/lib64/pgsql/postgresql-9.2/lib/pltcl.so
/usr/lib64/pgsql/postgresql-9.2/lib/refint.so
/usr/lib64/pgsql/postgresql-9.2/lib/seg.so
/usr/lib64/pgsql/postgresql-9.2/lib/tablefunc.so
/usr/lib64/pgsql/postgresql-9.2/lib/tcn.so
/usr/lib64/pgsql/postgresql-9.2/lib/test_parser.so
/usr/lib64/pgsql/postgresql-9.2/lib/timetravel.so
/usr/lib64/pgsql/postgresql-9.2/lib/tsearch2.so
/usr/lib64/pgsql/postgresql-9.2/lib/unaccent.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_ascii.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_big5.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_cyrillic.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_euc2004.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_euc_cn.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_euc_jp.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_euc_kr.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_euc_tw.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_gb18030.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_gbk.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_iso8859.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_iso8859_1.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_johab.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_sjis.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_sjis2004.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_uhc.so
/usr/lib64/pgsql/postgresql-9.2/lib/utf8_and_win.so
/usr/lib64/pgsql/postgresql-9.2/share
/usr/lib64/pgsql/postgresql-9.2/share/extension
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Africa.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/America.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Antarctica.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Asia.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Atlantic.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Australia
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Australia.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Default
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Etc.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Europe.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/India
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Indian.txt
/usr/lib64/pgsql/postgresql-9.2/share/timezonesets/Pacific.txt
/usr/lib64/pgsql/postgresql-9.2/share/unknown.pltcl

References

Summary

In this tutorial we learn how to install postgresql-upgrade on Rocky Linux 8 using yum and dnf.