Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A pure python RPM file reader and YUM metadata generator.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 pyrpm
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 INSTALL.rst
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

PyRPM

https://travis-ci.org/02strich/pyrpm.png
authors: Stefan Richter, Mário Morgado
license: BSD

PyRPM is a pure python module to extract information from a RPM package and to create YUM metadata. Supports generation/editing YUM repositories.

Usage

>>> from pyrpm.rpm import RPM
>>> rpm = RPM(file('package-1.0-r1.i586.rpm')
>>> rpm.binary # this means that the package is a rpm and not a src.rpm
True
>>> rpm.header.name
'package'
>>> rpm.header.architecture
'i586'
>>> rpm.header.description
'package description'
Something went wrong with that request. Please try again.