Original Message:
Sent: Fri April 19, 2024 01:59 AM
From: Nicolas Aubert
Subject: RPM AIX corrupt (DNF)
Openssl was installed but it was removed with the rpm -e command
Despite deleting the rpms I have the impression that the lib and bin files still remain
/opt/freeware/lib#ls -l libss*
-rwxr-xr-x 1 root system 2751649 Dec 15 2022 libssh2.a
-rwxr-xr-x 1 root system 1208741 Aug 03 2004 libssl.a
lrwxrwxrwx 1 root system 26 Mar 07 09:18 libssl3.a -> /usr/opt/rpm/lib/libssl3.a
lrwxrwxrwx 1 root system 27 Mar 07 09:18 libssl3.so -> /usr/opt/rpm/lib/libssl3.so
/opt/freeware/bin#ls -l | grep open
lrwxrwxrwx 1 root system 25 Mar 07 09:18 ssleay -> /opt/freeware/bin/openssl
Is deleting these files necessary?
Or should I reinstall the rpm and try removing it again?
------------------------------
Nicolas Aubert
Original Message:
Sent: Thu April 18, 2024 11:27 AM
From: SANKET RATHI
Subject: RPM AIX corrupt (DNF)
Do you have any openssl rpm installed?
Looks like one openssl installed in /opt/freeware/lib ( /opt/freeware/lib/libssl.a) and that is getting used.
Please remove openssl rpm and then try.
Original Message:
Sent: 4/18/2024 6:32:00 AM
From: Nicolas Aubert
Subject: RPM AIX corrupt (DNF)
I have a problem regarding RPM management on a production machine.
Indeed we see with the rpm -qa command all the RPMs installed on the machine but some do not appear but the binaries continue to function such as sudo or rsync
I have the impression that the rpm database is heavily corrupted but despite a rebuild and an updapkg the situation remains the same.
The command below doesn't work either
/opt/freeware/rpm40/bin/rpmdb --rebuilddb --rcfile=/opt/freeware/lib/rpm40/rpmrc
exec(): 0509-036 Cannot load program /opt/freeware/rpm40/bin/rpmdb because of the following errors:
0509-150 Dependent module /usr/lib/libdb.a(libdb-3.3.so.0) could not be loaded.
0509-152 Member libdb-3.3.so.0 is not found in archive
/opt/freeware/rpm40/bin/rpmdb --rebuilddb --rcfile=/opt/freeware/lib/rpm40/rpmrc
cannot open Packages index
QYSPA116 root#/#/opt/freeware/dnf
ksh: /opt/freeware/dnf: not found.
QYSPA116 root#/#/opt/freeware/bin/dnf
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /opt/freeware/lib/libcurl.a(libcurl.so.4).
0509-150 Dependent module /opt/freeware/lib/libssl.a(libssl.so.1.1) could not be loaded.
0509-152 Member libssl.so.1.1 is not found in archive
0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /opt/freeware/lib/libcurl.a(libcurl.so.4) could not be loaded.
DNF is also more usable on this server.
rpm -qf /opt/freeware/bin/rsync
file /opt/freeware/bin/rsync is not owned by any package
ls -l /opt/freeware/bin/rsync
-rwxr-xr-x 1 root system 494770 Jan 04 2010 /opt/freeware/bin/rsync
Do you have an idea please ?
Thanks
------------------------------
Nicolas Aubert
------------------------------