On Fri, 2004-11-19 at 14:54 +0100, Luca Ferrari wrote: > Hi all! I'm Luca Ferrari, an Italian Fedora user. > > I want to write a program in C++ that install Rpm. > > Now, if I've an rpm package (ex /home/luka/package.rpm) how can I use rpm's > function to install rpm package? > > I've seen rpmcli.h that include rpmInstall() function, but I don't know what I > have to do with it. > > For example, what is transaction?? Adn rpmts structure? How can I use it? Check out apt-rpm sources, specifically apt-pkg/rpm/rpmpm.cc which takes you through all the steps of installing/upgrading/erasing a package using rpmlib and in C++. - Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list