...
(may need to specify version such as sudo yum install postgresql15) we can find which version is currently supported with
sudo yum search "postgres"
...
$ pg_dump --host=HOST_VALUE --port=5432 --username=USERNAME_VALUE --dbname=DBNAME_VALUE VALUE --password --no-owner --if-exists --clean -W --file=FILENAME.sql
If you want just a specific table from a database you can pass the --table "<table-name>" to the pg_dump cmd to only dump tables that match the regex
You will be prompted for the database password
...