LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2009, 01:44 AM   #1
ShruthiS84
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 04-29-2009, 07:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,618

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
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.)
.....
 
Old 04-30-2009, 03:48 AM   #3
ShruthiS84
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 04-30-2009, 01:00 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,618

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
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/
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmlib(PayloadIsLzma) vduvvuru Linux - General 2 08-29-2008 09:41 AM
where to get rpmlib ? mahesh_chavan Linux - Newbie 1 02-08-2008 12:23 PM
rpmlib(CompressedFileNames) <= 3.0.4-1 ?? netmanw00t Linux - Software 1 07-31-2004 10:45 PM
KDevelop and rpmlib eqxro Programming 1 07-27-2004 04:57 AM
rpmlib ras123 Linux - Newbie 1 05-13-2004 02:27 PM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration