Unable to open /usr/lib/rpm/rpmrc for reading
anurag.bhd at gmail.com
Wed Mar 25 06:02:41 UTC 2009
I've installed the rpm package along with other required dependencies in a
directory "fakeroot" in my home folder of a Debian System (Etch amd64). I
did this by extracting the contents of related deb packages in the
"fakeroot" folder. After that, I also setup the PATH & LD_LIBRARY_PATH
variables for the proper functioning of "rpm" command.
Now, the rpm command works well in some cases, but in other cases, I get an
"error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or
That's because there actually isn't a rpmrc file in /usr/lib/rpm. It's in
the ~/fakeroot/usr/lib/rpm/ directory.
When I execute the rpm command along with the --rcfile modifier to point the
command to the rpmrc file in the "fakeroot" directory, it works ok, expect
for one thing. The following does not work:
rpm --rcfile=/home/anurag/fakeroot/usr/lib/rpm/rpmrc -qip
The error I get is:
"-qip: Unknown option"
Other options like -qlp, -qdp, -ivh, -Uvh, etc. work just fine.
Any suggestions for troubleshooting this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-list