Does not appear to be a RPM package

Hi Guys

I got this error when I try to install perl-5.24.0-1.aix6.1.ppc.rpm package

rpm -ivh perl-5.24.0-1.aix6.1.ppc.rpm
error: perl-5.24.0-1.aix6.1.ppc.rpm does not appear to be a RPM package

What output do you get from the command:

file perl-5.24.0-1.aix6.1.ppc.rpm

? What output do you get from the command:

ls -l perl-5.24.0-1.aix6.1.ppc.rpm

?

What version of AIX are you using?

What hardware are you using?

here's the result of code that u asked

# file perl-5.24.0-1.aix6.1.ppc.rpm
perl-5.24.0-1.aix6.1.ppc.rpm: empty
# ls -l perl-5.24.0-1.aix6.1.ppc.rpm
-rw-r--r--    1 sysadm2  system            0 Dec 31 12:08 perl-5.24.0-1.aix6.1.ppc.rpm
# oslevel
7.1.0.0

RPM package files are supposed to contain data that can be loaded into your system to install various pieces of software (in this case perl version 5.24.0 to run on a Power PC box). Since the size of this file is zero bytes, it obviously does not contain any data to allow the rpm utility to install any software. As the diagnostic you showed us from rpm said, that file does not seem to be a valid RPM package.

Well your file is a NULL one, that is, it has nothing in it; it is 0, zero, bytes in size.
Try obtaining the package again but before attempting to install it make a backup of the rpm package until you have a successful install then you can delete your backup.