Extract RPM package cpio

3k views Asked by At

i am getting and error while extract rpm package which is below. I run this command many times before but this time it shows me an error. I try to run this command on Oracle Linux 7. What should i do ?

rpm2cpio couchbase-server-enterprise-6.5.0-oel7.x86_64.rpm | cpio --extract --make-directories --no-absolute-filenames

cpio: premature end of file
1

There are 1 answers

0
Can On

Ok. I solved it. when transfer the rpm file, some of the files can be missing. be sure your rpm file is not corrupt. try another way to tranfer the file. Thanks.