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?
Asked
Active
Viewed 663 times
3 Answers
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