not an rpm package (or package manifest) but installed successfully

Latest response

when i run /bin/rpm -qp --queryformat '%{NAME}' /tmp/punit/python-perf-3.10.0-1062.12.1.el7.x86_64.rerror: /tmp/punit/python-perf-3.10.0-1062.12.1.el7.x86_64.rpm: headerRead failed: hdr blob(8141388): BAD, read returned 0
error: /tmp/punit/python-perf-3.10.0-1062.12.1.el7.x86_64.rpm: not an rpm package (or package manifest). But if i can install it using rpm -ivh or yum install, there is no problem during installation.

This is another rpm /bin/rpm -qp --queryformat '%{NAME}' /tmp/punit/python-perf-3.10.0-1127.8.2.el7.x86_64.rpm. It has no issues and yields "python-perf" as expected.

Why did it fail in first example but installed successfully. Is it problem with the package or the command? What command other than queryformat, is better suited to give rpm package name?


Hi Narendra,

I suggest to open a support case, for I do not have a clue. Other members have not been able to answer your question.


Jan Gerrit