Rupert
Pure Ruby RPM Library
Installation
Add this line to your application's Gemfile:
gem 'rupert'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rupert
Usage
You can read an RPM simply with:
rpm = Rupert::RPM.load('rpm-4.8.0-32.el6.x86_64.rpm')
or just check if a specific file is an RPM with:
Rupert::RPM.rpm? 'iamtrollingyou' # false
(note that loading a file that is not an RPM generates an exception)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request