2 unstable releases

0.2.0 Nov 3, 2023
0.1.0 Jan 3, 2022

#293 in Compression

Download history 53/week @ 2024-01-10 4/week @ 2024-02-14 18/week @ 2024-02-21 20/week @ 2024-02-28 33/week @ 2024-03-06 6/week @ 2024-03-13

65 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

~11–25MB
~380K SLoC