#102 rpminfo is not working at all
Opened a year ago by fantom. Modified a year ago

I think rpminfo is not working, because it does not return any output. For exemple, profanity's package contains a binary, so I expect -e option to print something in the terminal:

% rpminfo -v profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -e profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -i profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -p profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -np profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -r profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -r -t profanity-0.11.1-2.fc36.x86_64.rpm
% rpminfo -v -ro -t profanity-0.11.1-2.fc36.x86_64.rpm

No output is printed in the terminal after theses commands.

Something should be printed. The profanity's package (used here as an exemple) contains a binary:

% rpmfile profanity-0.11.1-2.fc36.x86_64.rpm | grep bin
/usr/bin/profanity      100755  ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=c05912979dab5ec4a1d79413c14056c526fc5913, for GNU/Linux 3.2.0, stripped

It looks like rpmfile succeded to open and read the package file, but rpminfo cannot.

Additional infos:

% which rpminfo
/usr/bin/rpminfo
% rpm -qf /usr/bin/rpminfo
rpmdevtools-9.6-1.fc36.noarch
% file /usr/bin/rpminfo
/usr/bin/rpminfo: Bourne-Again shell script, ASCII text executable

The script is using these tools installed on my system:

% rpm -qf /usr/bin/readelf /usr/bin/eu-readelf /usr/bin/objdump 
binutils-2.37-37.fc36.x86_64
elfutils-0.188-3.fc36.x86_64
binutils-2.37-37.fc36.x86_64

Login to comment on this ticket.

Metadata