Content:
[labhak0@labvmrhel01 ~]$ sudo -i\r\n[sudo] password for labhak0: \r\n[root@labvmrhel01 ~]# hostnamectl\r\n Static hostname: labvmrhel01\r\n Icon name: computer-vm\r\n Chassis: vm đŽ\r\n Machine ID: f59ee43d0da146e8bf3b056e54e822b5\r\n Boot ID: 1906ef7f3dd04c35b210992f81847553\r\n Virtualization: vmware\r\nOperating System: Red Hat Enterprise Linux 9.8 (Plow) \r\n CPE OS Name: cpe:/o:redhat:enterprise_linux:9::baseos\r\n Kernel: Linux 5.14.0-687.42.1.el9_8.x86_64\r\n Architecture: x86-64\r\n Hardware Vendor: VMware, Inc.\r\n Hardware Model: VMware20,1\r\nFirmware Version: VMW201.00V.21805430.B64.2305221830\r\n[root@labvmrhel01 ~]# php -v\r\nbash: php: command not found...\r\nInstall package \'php-cli\' to provide command \'php\'? [N/y] N\r\n\r\n\r\n[root@labvmrhel01 ~]# psql --version\r\nbash: psql: command not found...\r\nInstall package \'postgresql\' to provide command \'psql\'? [N/y] n\r\n\r\n\r\n[root@labvmrhel01 ~]# dnf install -y postgresql postgresql-server\r\nUpdating Subscription Management repositories.\r\nLast metadata expiration check: 1:12:33 ago on Wed 26 Aug 2026 01:54:58 PM CET.\r\nDependencies resolved.\r\n=========================================================================================\r\n Package Arch Version Repository Size\r\n=========================================================================================\r\nInstalling:\r\n postgresql x86_64 13.23-5.el9_8 rhel-9-for-x86_64-appstream-rpms 1.6 M\r\n postgresql-server x86_64 13.23-5.el9_8 rhel-9-for-x86_64-appstream-rpms 5.8 M\r\nInstalling dependencies:\r\n postgresql-private-libs x86_64 13.23-5.el9_8 rhel-9-for-x86_64-appstream-rpms 145 k\r\n\r\nTransaction Summary\r\n=========================================================================================\r\nInstall 3 Packages\r\n\r\nTotal download size: 7.6 M\r\nInstalled size: 29 M\r\nDownloading Packages:\r\n(1/3): postgresql-private-libs-13.23-5.el9_8.x86_64.rpm 160 kB/s | 145 kB 00:00 \r\n(2/3): postgresql-13.23-5.el9_8.x86_64.rpm 404 kB/s | 1.6 MB 00:04 \r\n(3/3): postgresql-server-13.23-5.el9_8.x86_64.rpm 646 kB/s | 5.8 MB 00:09 \r\n-----------------------------------------------------------------------------------------\r\nTotal 838 kB/s | 7.6 MB 00:09 \r\nRunning transaction check\r\nTransaction check succeeded.\r\nRunning transaction test\r\nTransaction test succeeded.\r\nRunning transaction\r\n Preparing : 1/1 \r\n Installing : postgresql-private-libs-13.23-5.el9_8.x86_64 1/3 \r\n Installing : postgresql-13.23-5.el9_8.x86_64 2/3 \r\n Running scriptlet: postgresql-server-13.23-5.el9_8.x86_64 3/3 \r\n Installing : postgresql-server-13.23-5.el9_8.x86_64 3/3 \r\n Running scriptlet: postgresql-server-13.23-5.el9_8.x86_64 3/3 \r\n Verifying : postgresql-13.23-5.el9_8.x86_64 1/3 \r\n Verifying : postgresql-private-libs-13.23-5.el9_8.x86_64 2/3 \r\n Verifying : postgresql-server-13.23-5.el9_8.x86_64 3/3 \r\nInstalled products updated.\r\n\r\nInstalled:\r\n postgresql-13.23-5.el9_8.x86_64 postgresql-private-libs-13.23-5.el9_8.x86_64 \r\n postgresql-server-13.23-5.el9_8.x86_64 \r\n\r\nComplete!\r\n[root@labvmrhel01 ~]# postgresql-setup --initdb\r\n * Initializing database in \'/var/lib/pgsql/data\'\r\n * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log\r\n[root@labvmrhel01 ~]# systemctl enable --now postgresql\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/postgresql.service â /usr/lib/systemd/system/postgresql.service.\r\n[root@labvmrhel01 ~]# rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm\r\nwarning: /var/tmp/rpm-tmp.7QnBb3: Header V4 RSA/SHA256 Signature, key ID 210976f2: NOKEY\r\n[root@labvmrhel01 ~]# dnf install -y pgadmin4\r\nUpdating Subscription Management repositories.\r\npgadmin4 866 B/s | 833 B 00:00 \r\npgadmin4 3.4 MB/s | 3.8 kB 00:00 \r\nImporting GPG key 0x210976F2:\r\n Userid : \"Package Manager (Package Signing Key) <packages@pgadmin.org>\"\r\n Fingerprint: E869 7E2E EF76 C02D 3A63 3277 8881 B2A8 2109 76F2\r\n From : /etc/pki/rpm-gpg/PGADMIN_PKG_KEY\r\npgadmin4 634 kB/s | 3.4 MB 00:05 \r\nLast metadata expiration check: 0:00:06 ago on Wed 26 Aug 2026 03:12:15 PM CET.\r\nDependencies resolved.\r\n=========================================================================================\r\n Package Arch Version Repository Size\r\n=========================================================================================\r\nInstalling:\r\n pgadmin4 noarch 9.17-1.el9 pgAdmin4 6.3 k\r\nInstalling dependencies:\r\n libpq5 x86_64 18.4-1PGDG.rhel9.8 pgAdmin4 289 k\r\n replacing libpq.x86_64 13.23-3.el9_8\r\n pgadmin4-desktop x86_64 9.17-1.el9 pgAdmin4 92 M\r\n pgadmin4-server x86_64 9.17-1.el9 pgAdmin4 124 M\r\n pgadmin4-web noarch 9.17-1.el9 pgAdmin4 9.3 k\r\n python3-mod_wsgi x86_64 4.7.1-12.el9_6 rhel-9-for-x86_64-appstream-rpms 1.0 M\r\n\r\nTransaction Summary\r\n=========================================================================================\r\nInstall 6 Packages\r\n\r\nTotal download size: 217 M\r\nDownloading Packages:\r\n(1/6): pgadmin4-9.17-1.el9.noarch.rpm 17 kB/s | 6.3 kB 00:00 \r\n(2/6): libpq5-18.4-1PGDG.rhel9.8.x86_64.rpm 125 kB/s | 289 kB 00:02 \r\n(3/6): pgadmin4-web-9.17-1.el9.noarch.rpm 4.8 kB/s | 9.3 kB 00:01 \r\n(4/6): python3-mod_wsgi-4.7.1-12.el9_6.x86_64.rpm 137 kB/s | 1.0 MB 00:07 \r\n(5/6): pgadmin4-server-9.17-1.el9.x86_64.rpm 742 kB/s | 124 MB 02:51 \r\n(6/6): pgadmin4-desktop-9.17-1.el9.x86_64.rpm 380 kB/s | 92 MB 04:07 \r\n-----------------------------------------------------------------------------------------\r\nTotal 900 kB/s | 217 MB 04:07 \r\npgadmin4 3.8 MB/s | 3.8 kB 00:00 \r\nImporting GPG key 0x210976F2:\r\n Userid : \"Package Manager (Package Signing Key) <packages@pgadmin.org>\"\r\n Fingerprint: E869 7E2E EF76 C02D 3A63 3277 8881 B2A8 2109 76F2\r\n From : /etc/pki/rpm-gpg/PGADMIN_PKG_KEY\r\nKey imported successfully\r\nRunning transaction check\r\nTransaction check succeeded.\r\nRunning transaction test\r\nTransaction test succeeded.\r\nRunning transaction\r\n Preparing : 1/1 \r\n Installing : python3-mod_wsgi-4.7.1-12.el9_6.x86_64 1/7 \r\n Installing : libpq5-18.4-1PGDG.rhel9.8.x86_64 2/7 \r\n Running scriptlet: libpq5-18.4-1PGDG.rhel9.8.x86_64 2/7 \r\n Running scriptlet: pgadmin4-server-9.17-1.el9.x86_64 3/7 \r\n Installing : pgadmin4-server-9.17-1.el9.x86_64 3/7 \r\n Installing : pgadmin4-desktop-9.17-1.el9.x86_64 4/7 \r\n Running scriptlet: pgadmin4-desktop-9.17-1.el9.x86_64 4/7 \r\n Installing : pgadmin4-web-9.17-1.el9.noarch 5/7 \r\n Installing : pgadmin4-9.17-1.el9.noarch 6/7 \r\n Obsoleting : libpq-13.23-3.el9_8.x86_64 7/7 \r\n Running scriptlet: libpq-13.23-3.el9_8.x86_64 7/7 \r\n Verifying : libpq5-18.4-1PGDG.rhel9.8.x86_64 1/7 \r\n Verifying : libpq-13.23-3.el9_8.x86_64 2/7 \r\n Verifying : pgadmin4-9.17-1.el9.noarch 3/7 \r\n Verifying : pgadmin4-desktop-9.17-1.el9.x86_64 4/7 \r\n Verifying : pgadmin4-server-9.17-1.el9.x86_64 5/7 \r\n Verifying : pgadmin4-web-9.17-1.el9.noarch 6/7 \r\n Verifying : python3-mod_wsgi-4.7.1-12.el9_6.x86_64 7/7 \r\nInstalled products updated.\r\n\r\nInstalled:\r\n libpq5-18.4-1PGDG.rhel9.8.x86_64 pgadmin4-9.17-1.el9.noarch \r\n pgadmin4-desktop-9.17-1.el9.x86_64 pgadmin4-server-9.17-1.el9.x86_64 \r\n pgadmin4-web-9.17-1.el9.noarch python3-mod_wsgi-4.7.1-12.el9_6.x86_64 \r\n\r\nComplete!\r\n[root@labvmrhel01 ~]# /usr/pgadmin4/bin/setup-web.sh\r\nSetting up pgAdmin 4 in web mode on a Redhat based platform...\r\nCreating configuration database...\r\n/usr/pgadmin4/venv/lib64/python3.9/site-packages/passlib/pwd.py:16: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\r\n import pkg_resources\r\nNOTE: Configuring authentication for SERVER mode.\r\n\r\nEnter the email address and password to use for the initial pgAdmin user account:\r\n\r\nEmail address: khelaf.hanifi@liebherr.com\r\nPassword: \r\nRetype password:\r\n/usr/pgadmin4/venv/lib64/python3.9/site-packages/google/api_core/_python_version_support.py:242: FutureWarning: You are using a non-supported Python version (3.9.25). Google will not post any further updates to google.api_core supporting this Python version. Please upgrade to the latest Python version, or at least Python 3.10, and then update google.api_core.\r\n warnings.warn(message, FutureWarning)\r\n/usr/pgadmin4/venv/lib64/python3.9/site-packages/google/auth/__init__.py:54: FutureWarning: You are using a Python version 3.9 past its end of life. Google will update google-auth with critical bug fixes on a best-effort basis, but not with any other fixes or features. Please upgrade your Python version, and then update google-auth.\r\n warnings.warn(eol_message.format(\"3.9\"), FutureWarning)\r\n/usr/pgadmin4/venv/lib64/python3.9/site-packages/google/oauth2/__init__.py:40: FutureWarning: You are using a Python version 3.9 past its end of life. Google will update google-auth with critical bug fixes on a best-effort basis, but not with any other fixes or features. Please upgrade your Python version, and then update google-auth.\r\n warnings.warn(eol_message.format(\"3.9\"), FutureWarning)\r\npgAdmin 4 - Application Initialisation\r\n======================================\r\n\r\nCreating storage and log directories...\r\nConfiguring SELinux...\r\nThe Apache web server is not running. We can enable and start the web server for you to finish pgAdmin 4 installation. Continue (y/n)? y\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/httpd.service â /usr/lib/systemd/system/httpd.service.\r\nApache successfully enabled.\r\nApache successfully started.\r\nYou can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4\r\n[root@labvmrhel01 ~]# sudo -u postgres psql -c \"ALTER USER postgres WITH PASSWORD \'Rhel2024+\';\"\r\ncould not change directory to \"/root\": Permission denied\r\nALTER ROLE\r\n[root@labvmrhel01 ~]# sed -i \'s/127.0.0.1\\/32 ident/127.0.0.1\\/32 scram-sha-256/g\' /var/lib/pgsql/data/pg_hba.conf\r\nsystemctl restart postgresql\r\n[root@labvmrhel01 ~]# sed -i \'s/scram-sha-256/trust/g\' /var/lib/pgsql/data/pg_hba.conf\r\nsystemctl restart postgresql\r\nsudo -u postgres psql -c \"ALTER USER postgres WITH PASSWORD \'Rhel2024+\';\"\r\nsed -i \'s/trust/scram-sha-256/g\' /var/lib/pgsql/data/pg_hba.conf\r\nsystemctl restart postgresql\r\ncould not change directory to \"/root\": Permission denied\r\nALTER ROLE\r\n[root@labvmrhel01 ~]# sed -i \'s/scram-sha-256/trust/g\' /var/lib/pgsql/data/pg_hba.conf\r\nsystemctl restart postgresql\r\n[root@labvmrhel01 ~]# dnf module enable -y nodejs:20\r\nUpdating Subscription Management repositories.\r\nLast metadata expiration check: 0:55:11 ago on Wed 26 Aug 2026 03:12:15 PM CET.\r\nDependencies resolved.\r\n=========================================================================================\r\n Package Architecture Version Repository Size\r\n=========================================================================================\r\nEnabling module streams:\r\n nodejs 20 \r\n\r\nTransaction Summary\r\n=========================================================================================\r\n\r\nComplete!\r\n[root@labvmrhel01 ~]# dnf install -y nodejs\r\nUpdating Subscription Management repositories.\r\n\r\nThe system clock is skewed. There is a time difference of 9.0 seconds with the entitlement server. Please check your clock settings to ensure access to all entitled content.\r\n\r\nLast metadata expiration check: 0:56:49 ago on Wed 26 Aug 2026 03:12:15 PM CET.\r\nDependencies resolved.\r\n=========================================================================================\r\n Package Arch Version Repository Size\r\n=========================================================================================\r\nInstalling:\r\n nodejs x86_64 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 14 M\r\nInstalling weak dependencies:\r\n nodejs-docs noarch 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 8.6 M\r\n nodejs-full-i18n x86_64 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 8.9 M\r\n npm x86_64 1:10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 2.3 M\r\n\r\nTransaction Summary\r\n=========================================================================================\r\nInstall 4 Packages\r\n\r\nTotal download size: 34 M\r\nInstalled size: 181 M\r\nDownloading Packages:\r\n[MIRROR] nodejs-docs-20.20.2-1.module+el9.7.0+24193+41b7b572.noarch.rpm: Curl error (6): Couldn\'t resolve host name for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/Packages/n/nodejs-docs-20.20.2-1.module%2bel9.7.0%2b24193%2b41b7b572.noarch.rpm [Could not resolve host: cdn.redhat.com]\r\n[MIRROR] nodejs-full-i18n-20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64.rpm: Curl error (6): Couldn\'t resolve host name for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/Packages/n/nodejs-full-i18n-20.20.2-1.module%2bel9.7.0%2b24193%2b41b7b572.x86_64.rpm [Could not resolve host: cdn.redhat.com]\r\n[MIRROR] nodejs-20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64.rpm: Curl error (6): Couldn\'t resolve host name for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/Packages/n/nodejs-20.20.2-1.module%2bel9.7.0%2b24193%2b41b7b572.x86_64.rpm [Could not resolve host: cdn.redhat.com]\r\n[MIRROR] nodejs-docs-20.20.2-1.module+el9.7.0+24193+41b7b572.noarch.rpm: Curl error (6): Couldn\'t resolve host name for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/Packages/n/nodejs-docs-20.20.2-1.module%2bel9.7.0%2b24193%2b41b7b572.noarch.rpm [Could not resolve host: cdn.redhat.com]\r\n[FAILED] nodejs-docs-20.20.2-1.module+el9.7.0+24193+41b7b572.noarch.rpm: No more mirrors to try - All mirrors were already tried without success\r\n(2-3/4): nodejs-20.20.2-1 25% [====== ] 5.1 GB/s | 8.6 MB 00:00 ETA\r\nThe downloaded packages were saved in cache until the next successful transaction.\r\nYou can remove cached packages by executing \'dnf clean packages\'.\r\nError: Error downloading packages:\r\n nodejs-docs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.noarch: Cannot download, all mirrors were already tried without success\r\n[root@labvmrhel01 ~]# node -v\r\nnpm -v\r\nbash: node: command not found...\r\nInstall package \'nodejs\' to provide command \'node\'? [N/y] n\r\n\r\n\r\nbash: npm: command not found...\r\nInstall package \'npm\' to provide command \'npm\'? [N/y] n\r\n\r\n\r\n[root@labvmrhel01 ~]# dnf install -y nodejs\r\nUpdating Subscription Management repositories.\r\nRed Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 587 B/s | 4.5 kB 00:07 \r\nRed Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 195 kB/s | 108 MB 09:23 \r\nLast metadata expiration check: 0:06:25 ago on Wed 26 Aug 2026 04:17:23 PM CET.\r\nDependencies resolved.\r\n=========================================================================================\r\n Package Arch Version Repository Size\r\n=========================================================================================\r\nInstalling:\r\n nodejs x86_64 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 14 M\r\nInstalling weak dependencies:\r\n nodejs-docs noarch 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 8.6 M\r\n nodejs-full-i18n x86_64 1:20.20.2-1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 8.9 M\r\n npm x86_64 1:10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b572\r\n rhel-9-for-x86_64-appstream-rpms 2.3 M\r\n\r\nTransaction Summary\r\n=========================================================================================\r\nInstall 4 Packages\r\n\r\nTotal download size: 34 M\r\nInstalled size: 181 M\r\nDownloading Packages:\r\n[MIRROR] nodejs-docs-20.20.2-1.module+el9.7.0+24193+41b7b572.noarch.rpm: Curl error (56): Failure when receiving data from the peer for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/Packages/n/nodejs-docs-20.20.2-1.module%2bel9.7.0%2b24193%2b41b7b572.noarch.rpm [OpenSSL SSL_read: Connection reset by peer, errno 104]\r\n(1/4): nodejs-docs-20.20.2-1.module+el9.7.0+24193+41b7b5 98 kB/s | 8.6 MB 01:30 \r\n(2/4): nodejs-full-i18n-20.20.2-1.module+el9.7.0+24193+4 94 kB/s | 8.9 MB 01:36 \r\n(3/4): npm-10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b 210 kB/s | 2.3 MB 00:11 \r\n(4/4): nodejs-20.20.2-1.module+el9.7.0+24193+41b7b572.x8 81 kB/s | 14 MB 02:58 \r\n-----------------------------------------------------------------------------------------\r\nTotal 195 kB/s | 34 MB 02:58 \r\nRunning transaction check\r\nTransaction check succeeded.\r\nRunning transaction test\r\nTransaction test succeeded.\r\nRunning transaction\r\n Preparing : 1/1 \r\n Installing : nodejs-docs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.noarch 1/4 \r\n Installing : nodejs-full-i18n-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x8 2/4 \r\n Installing : npm-1:10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b572.x86_64 3/4 \r\n Installing : nodejs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64 4/4 \r\n Running scriptlet: nodejs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64 4/4 \r\n Verifying : nodejs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64 1/4 \r\n Verifying : nodejs-docs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.noarch 2/4 \r\n Verifying : nodejs-full-i18n-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x8 3/4 \r\n Verifying : npm-1:10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b572.x86_64 4/4 \r\nInstalled products updated.\r\n\r\nInstalled:\r\n nodejs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64 \r\n nodejs-docs-1:20.20.2-1.module+el9.7.0+24193+41b7b572.noarch \r\n nodejs-full-i18n-1:20.20.2-1.module+el9.7.0+24193+41b7b572.x86_64 \r\n npm-1:10.8.2-1.20.20.2.1.module+el9.7.0+24193+41b7b572.x86_64 \r\n\r\nComplete!\r\n[root@labvmrhel01 ~]# node -v\r\nv20.20.2\r\n[root@labvmrhel01 ~]# npm -v\r\n10.8.2\r\n