I am extracting a rpm package on RHEL-6.4. I am using rpm2cpio command as below:
rpm2cpio package-name.rpm | cpio -u -i -d ---quiet 2>&1
The above command runs in fakeroot v1.12.4 environment. (cpio (GNU cpio) 2.10) After execution of above command if I check file tpye using file
command it shows file as Directory.
I checked content of rpm using
rpm -qlpv package-name.rpm
It shows all files as file and directory as directory.
However, I noticed if i unset LD_LIBRARY_PATH
and then check filetype using file
command, it shows all data same as rpm -qlp
.
LD_LIBRARY_PATH is set to
/opt/tools/wh/dtd/RHE-5/fakeroot/1.12.4/lib64/libfakeroot
why file is marked as directory when LD_LIBRARY_PATH
is set ?