Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to be able to

import rpm

in my python script in Windows, where do I find the install packages for python rpm module?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

RPMs are RedHat Package Manager packages. They typically contain binaries that have been compiled specifically for an RPM-based Linux distribution such as RedHat, CentOS, Fedora, etc.

More information on RPM at http://rpm.org/

More information on RPM 5 at http://rpm5.org/

The typical RPM package (python-rpm) is painful to install in Windows. (You'd need to install RPM itself as well in Windows, which may require porting it.) There is a pure Python implementation of an RPM module called PyRPM available at http://pypi.python.org/pypi/pyrpm/0.3

share|improve this answer
    
I use cygwin RPM, but maybe PyRPM is enough for me for now. Thanks! –  joyceschan Dec 22 '10 at 16:02

Do you want to install python on Windows ?

If yes, you need to install python through msi installer on windows ...

http://www.python.org/download/windows/

You can't install an RPM pacjage on windows :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.