Hi Experts,


I am new user using RPM libraries and C programming APIs for my project.
I am using rpmlib 5.1.6. but I am not getting any proper documentation
on this. Whatever document I can get by googling are of the version 4 of
RPMlib and most of them are out-dated. I mean the functions/APIs and
headers file (like dbindex.h, header.h etc) mentioned over there are no
longer existing!!



My action items will be mainly:



1) Fresh Install.
2) Upgrade.
3) Downgrade.
4) Uninstall.
5) Abort of any actions.
6) To get the action status of any ongoing actions.
7) To get all package information. Identify what are they..??
8) Signature of the packages.
9) Package dependencies.
10) Search package by attributes (like name, version)
11) Checksum of a package.
12) Pre/post-install handling.
13) RPM DB connections:
   a) To list all the installed packages.
   b) To list downgradable packages
   c) To list non-downgradable packages
   d) List of the packages in sub-tree
   e) To get all package information.



I have checked rpm.org and prm5.org documentations but no help from
those...By googling, I have found some APIs (from rpmlib version 4) such
as :

1)  int rpmReadPackageInfo(int fd,

                       Header * signatures,

                       Header * hdr);

2)  int rpmInstallPackage(char * rootdir,

                      rpmdb db,
                      int fd,
                      char * prefix,
                      int flags,
                      rpmNotifyFunction notify,
                      char * labelFormat,
                      char * netsharedPath);

but there are no longer supported in v5.1.6.

When I tried to compile a cpp file with the following command:

g++ -I/usr/include/rpm package-info.cpp -L/MM_BASE/host-tools/lib/rpm/
-L/usr/lib/rpm -lrpmbuild -lrpm -lrpmdb -lrpmio

/usr/bin/ld: cannot find -lrpmbuild

collect2: ld returned 1 exit status


Please help me out. Please let me know which APIs I should concentrate
for the above tasks.


Thanks and Regards,
Sanjay






Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

Reply via email to