Unable to open /usr/lib/rpm/rpmrc for reading

Anurag Bhandari anurag.bhd at gmail.com
Wed Mar 25 12:48:32 UTC 2009


James,

How to use this rpmpopt file for my purpose? I did see the text "rpm
alias --info --qf [...]" in my rpmpopt-4.4.1 file (in
~/fakeroot/usr/lib/rpm/ directory).



On Wed, 2009-03-25 at 11:32 +0530, Anurag Bhandari wrote:
> 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).
[...]
>  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"
>
 This is popt, ie. on my system:

/usr/lib/rpm/rpmpopt-4.6.0

...which contains "rpm     alias --info --qf [...]" among others.

--
James Antill <james at fedoraproject.org>
Fedora


On Wed, Mar 25, 2009 at 11:32 AM, Anurag Bhandari <anurag.bhd at gmail.com>wrote:

> 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/
>



-- 
Anurag Bhandari
http://anurag.granularproject.org/

Founder & Project Lead,
Granular Linux Project
http://www.granularproject.org/
http://www.granularlinux.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090325/18e6b20c/attachment.htm>


More information about the Rpm-list mailing list