3 releases (breaking)

0.3.0 Nov 2, 2024
0.2.0 Nov 3, 2023
0.1.0 Jan 3, 2022

#184 in Compression

Download history 39/week @ 2024-07-30 1/week @ 2024-09-17 14/week @ 2024-09-24 18/week @ 2024-10-01 121/week @ 2024-10-29 17/week @ 2024-11-05

138 downloads per month
Used in linux-package-analyzer

MPL-2.0 license

35KB
698 lines

RPM Repository

rpm-repository is a library crate implementing functionality related to RPM / yum based repositories.

See the crate's documentation for more.


lib.rs:

RPM repository interaction.

This crate facilitates interacting with RPM package repositories.

RPM repositories are defined by a base URL. Under that base URL is typically a repodata directory containing a repomd.xml file. This repomd.xml file (represented by metadata::repomd::RepoMd) describes other metadata files constituting the repository.

Files and data structures in the repodata directory are defined in the [metadata] module tree.

The [RepositoryRootReader] trait defines a generic read interface bound to a base URL. The [MetadataReader] trait defines an interface to repository metadata via a parsed repomd.xml file.

Concrete repository readers exist. http::HttpRepositoryClient provides a reader for repositories accessed via HTTP.

Dependencies

~12–23MB
~337K SLoC