Unable to open /usr/lib/rpm/rpmrc for reading
Anurag Bhandari
anurag.bhd at gmail.com
Wed Mar 25 06:02:41 UTC 2009
Hello,
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
obvious error:
"error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or
directory."
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
amarok-1.4.10-5granular2008.i586.rpm
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?
Thanks.
--
Anurag Bhandari
http://anurag.granularproject.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090325/de63fe29/attachment.htm>
More information about the Rpm-list
mailing list