1

Trying to learn how to use the rpm-python module (i.e. "import rpm" on RHEL5). I can't find any tutorials that are complete or recent. Specifically regarding how to install and manage rpm's on a system. Anyone?

pokstad
  • 3,411
  • 3
  • 30
  • 39

3 Answers3

3

There is some documentation on Fedora website.

vz0
  • 32,345
  • 7
  • 44
  • 77
0

If you are on RHEL then you could seriously consider using the yum APIs instead of rpm-python directly ... the API is much easier to use.

James Antill
  • 2,825
  • 18
  • 16
  • One requirement I have is for offline installations. Yum requires a network connection to a repository, right? – pokstad Feb 08 '11 at 23:38
  • No, you can use yum without any repos. (installing rpms from disk files). You can also call: yum.rpmsack.RPMDBPackageSack() directly for queries. – James Antill Feb 18 '11 at 18:02
0

Centos 5.6 uses rpm 4.4.2.3. I'd go with the Developer Documentation

Andrew
  • 4,289
  • 2
  • 28
  • 33