LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to access rpm/rpmlib.h in SUSE (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-access-rpm-rpmlib-h-in-suse-722413/)

ShruthiS84 04-29-2009 01:44 AM

How to access rpm/rpmlib.h in SUSE
 
Hi All,
I need to access native rpm APIs in my C++ code. For this I need access to rpm/rpmlib.h. But on my SUSE i dont find this.. Isn't this part of core SUSE packaging, Do I need to download this separately? If yes, can anyone provide me the link to a downloadable rpmlib package?

Thanks,
Shruthi

knudfl 04-29-2009 07:40 AM

Welcome to LQ.

The file '/usr/include/rpm/rpmlib.h'
is in package 'rpm-devel'.
To be found on the install DVD, the package manager, Yeast2,
or to be installed with the command # 'zypper in rpm-devel' .
( zypper will download and install the correct package.)
.....

ShruthiS84 04-30-2009 03:48 AM

Thanks for the reply. I tried running the command from the command prompt and got the required rpms installed. But the exact function that I plan to use is rpmInstallPackage() and this is not being defined under rpm/rpmlib.h.
I am looking to use this on a SLES 10Sp2 image and the rpmlib version that I installed was rpm-4.4.2-43.28. Looks like this rpmlib doesnt not provide me the interface. Is there any other API in this version which provides a similar functionality?

Basically this function is used to install a package. However I dont find anything like this in this version of rpmlib. Please help..

Thanks,
Shruthi

knudfl 04-30-2009 01:00 PM

Not much help, may be ...........

A link to the ( developer ) documentation
http://www.rpm.org/wiki/Docs

And the source code
http://rpm.net.in/mirror/rpm-4.4.x/
.....


All times are GMT -5. The time now is 09:21 AM.