package rpmfile

  1. Overview
  2. Docs

Rpmfile

A library for reading RPM packages (supports version 3.0 and partially 4.0) powered by Angstrom.

Installation

Installation by OPAM package manager

$ opam install rpmfile

or pin the latest development version from GitHub.

$ opam pin https://github.com/dx3mod/rpmfile.git

Usage

# #require "rpmfile";;
let pkg =
  In_channel.with_open_bin Sys.argv.(1) Rpmfile.Reader.of_channel
  |> Result.get_ok
# Rpmfile.View.name pkg;;
- : string = "hello"

For more details see source code and examples.