ruby-rpm project provides bindings for accessing RPM packages and databases from Ruby. It includes the low-level C API to talk to rpm as well as Ruby classes to model the various objects that RPM deals with (such as packages, dependencies, and files).
Installation:
De-Compress archive and enter its top directory.
Then type:
$ ruby install.rb config
$ ruby install.rb setup
$ su
# ruby setup.rb install
You can also install files into your favorite directory by supplying install.rb some options. Try "ruby setup.rb --help".
Usage:
require 'rpm'
Requirements:
· ruby 1.6
· gcc
· rpm 4.0.0 or newer (tested on 4.0.4 and 4.2.1)
What's New in This Release:
· A hash method has been added. for RPM::Version.
· Zero epoch is treated the same as no epoch in RPM::Version::.
Product's homepage