Project

rupert

0.0
No commit activity in last 3 years
No release in over 3 years
Rupert allows to manipulate RPM files independently from availability of rpmlib.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Gem Version Build Status Code Climate Coverage Status Dependency Status

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

Parsing an RPM

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)

Verifying RPM for corruption

You can verify if an RPM is corrupted after loading it with:

rpm.intact?

Note that this only verifies if the MD5 stored in RPM metadata corresponds to the MD5 calculated over the content and metadata itself. It doesn't provide any warranty that the packages has been maliciously altered. For this, you need to check package signature.

List of installed files

The list of installed files is returned as an array of absolute filenames with:

rpm.filenames

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Changelog

See Changelog.md