Hi. I have some trouble with rpmlib. I see that in the Maximum-RPM book (a bit old), there are referenced some functions like rpmReadPackageInfo e.t.c. The problem is that i dont find any definition of this function and some others, inside /usr/include/rpm/*.h Can you help me here? Thanks.
On Monday 15 March 2004 17:16, Filippos Papadopoulos wrote:
I have some trouble with rpmlib. I see that in the Maximum-RPM book (a bit old), there are referenced some functions like rpmReadPackageInfo e.t.c. The problem is that i dont find any definition of this function and some others, inside /usr/include/rpm/*.h
Can you help me here?
That book is about RPM 3. Starting with SuSE 9.0, we are using RPM 4. The RPM lib changed dramatically since then. You'll have to look for docs at http://www.rpm.org/ or, failing that, read RPM's sources. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany
On Mon, 15 Mar 2004, Stefan Hundhammer wrote:
On Monday 15 March 2004 17:16, Filippos Papadopoulos wrote:
I have some trouble with rpmlib. I see that in the Maximum-RPM book (a bit old), there are referenced some functions like rpmReadPackageInfo e.t.c. The problem is that i dont find any definition of this function and some others, inside /usr/include/rpm/*.h
Can you help me here?
That book is about RPM 3. Starting with SuSE 9.0, we are using RPM 4. The RPM lib changed dramatically since then. You'll have to look for docs at
or, failing that, read RPM's sources.
I looked in http://www.rpm.org/rpmapi-4.1/rpmlib_8h-source.html and it seems that this file is different from that found in SuSE 9.0. I believe that rpm.org is not updated... Reading RPM sources is a good idea but i dont know if the same API will be the same on all distros. Has LSB defined any stable API about RPMLIB ??? Thanks.
On Monday 15 March 2004 19:09, Filippos Papadopoulos wrote:
I looked in http://www.rpm.org/rpmapi-4.1/rpmlib_8h-source.html and it seems that this file is different from that found in SuSE 9.0. I believe that rpm.org is not updated...
That may very well be. You might want to write to their webmaster to get a statement on that - and if and when they plan to update it.
Reading RPM sources is a good idea but i dont know if the same API will be the same on all distros. Has LSB defined any stable API about RPMLIB ???
LSB doesn't know anything about the RPM lib since (AFAIK) it doesn't specify anything about a package manager. Otherwise they would have had to make a decision between Debian's APT, RPM (used by Red Hat, SuSE, Mandrake) and others. This is beyond the scope of that standard. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany
On Monday 15 March 2004 17:16, Filippos Papadopoulos wrote:
I have some trouble with rpmlib. I see that in the Maximum-RPM book (a bit old), there are referenced some functions like rpmReadPackageInfo e.t.c. The problem is that i dont find any definition of this function and some others, inside /usr/include/rpm/*.h
Can you help me here?
BTW what do you intend to do anyway? Maybe using the RPM lib is not even the best approach for your problem - depending on what it is. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany
On Mon, 15 Mar 2004, Stefan Hundhammer wrote:
On Monday 15 March 2004 17:16, Filippos Papadopoulos wrote:
I have some trouble with rpmlib. I see that in the Maximum-RPM book (a bit old), there are referenced some functions like rpmReadPackageInfo e.t.c. The problem is that i dont find any definition of this function and some others, inside /usr/include/rpm/*.h
Can you help me here?
BTW what do you intend to do anyway? Maybe using the RPM lib is not even the best approach for your problem - depending on what it is.
Say i want to "register" inside RPM DB a virtual package with some virtual files that it contains. I also found another promising library (the project is a bit dead though), libpackman from gnupdate.org. BTW how do you manage the RPM db, not via librpm ? Thanks, Filip.
On Monday 15 March 2004 22:45, Filippos Papadopoulos wrote:
Say i want to "register" inside RPM DB a virtual package with some virtual files that it contains.
The easiest approach would be to simply pack an RPM with all those files and install it. You don't need to program one single line of code for that.
BTW how do you manage the RPM db, not via librpm ?
Do it the right way - install or uninstall RPMs. Trying to directly manipulate such a data base is the straight way into desaster. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany
participants (2)
-
Filippos Papadopoulos
-
Stefan Hundhammer