How do i force upgrade a installed package through the C API?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
      I have written an application in C which upgrades already running 
package. I do the following:

   rpmtsCreate()
   rpmtsAddInstallElement () /* with the upgrade flag set to 1 */
   rpmtsCheck()
   rpmtsOrder()
   rpmtsRun()

The rpmtsRun function fails saying the package is already installed. How do I 
specify that I want to do a forced upgrade of the package in the C API? 

Thanks in advance..

Regards,
Ram Prakash. R


***************************************************************************
This message is proprietary to Future Software Limited (FSL)
and is intended solely for the use of the individual to whom it
is addressed. It may contain  privileged or confidential information
and should not be circulated or used for any purpose other than for
what it is intended.

If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient,
you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message.
FSL accepts no responsibility for loss or damage arising from
the use of the information transmitted by this email including
damage from virus.
***************************************************************************


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux