Skip to main content

fedrq is a tool to query the Fedora and EPEL repositories

Project description

fedrq

⚠️ This project is a work in progress. ⚠️

A tool for querying the Fedora and EPEL repositories

fedrq makes it easy to query any branch of Fedora or EPEL. It uses the dnf Python bindings and does not shell out to dnf repoquery. It allows querying for reverse dependencies, packages that contain a certain Provide or file, subpackages of an SRPM, and package metadata.

The tool doesn't seek to replace every feature of dnf repoquery. It provides a more user friendly interface than dnf repoquery for certain common tasks.

builds.sr.ht status

copr build status (stable)

copr build status (dev)

fedrq on sr.ht

fedrq on git.sr.ht

fedrq on lists.sr.ht

fedrq on todo.sr.ht

Installation

fedrq has a copr repository at gotmax23/fedrq that contains released versions. Development snapshots are available at gotmax23/fedrq-dev. The RPM specfile is in the repository root.

The package can also be installed from source with pip or any other PEP 517 frontend. The following additional system packages are required:

  • python3-dnf
  • fedora-repos-rawhide

Note that fedrq can only be installed for the system python interpreter. fedrq cannot be installed in a venv unless it has --system-site-packages, as it needs to find dnf.

fedrq check-config --dump requires tomli-w. The RPM package weakly depends on python3-tomli-w.

Versioning

This project is in alpha. fedrq.cli.* is internal to this module. A stable API for fedrq.repoquery and fedrq.config may be provided down the line. The CLI interface is also subject to small changes.

Documentaion

See fedrq(1) (source) for the CLI interface and fedrq(5) (source) for the config file format.

Contributing

Development, issue reporting, and project discussion happen on the mailing list (~gotmax23/fedrq@lists.sr.ht).

See CONTRIBUTING.md.

Credits

Thank you to the dnf maintainers. This tool is inspired by dnf repoquery and uses the dnf python bindings.

License

This project follows the REUSE specification. In general:

  • Code is licensed under GPL-2.0-or-later. This is the same license as dnf.
  • Configuration and repo files in fedrq/data/ are UNLICENSEed
  • fedrq.spec is licensed under MIT to match Fedora
  • The embedded repo defs in src/fedrq/data/repos from fedora-repos.rpm are MIT licensed. These are only used when the needed repo defs are not available in the system config (i.e. for querying the Fedora repos from a non Fedora system).
SPDX-License-Identifier: GPL-2.0-or-later AND Unlicense AND MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fedrq-0.2.0.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

fedrq-0.2.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file fedrq-0.2.0.tar.gz.

File metadata

  • Download URL: fedrq-0.2.0.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for fedrq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4ede9e784a795b1bf2bd6532e99397c1c74100b49c16f01ef634df93daf316e7
MD5 caa562f04162d342c6b0711915df7b5a
BLAKE2b-256 317ec5f2334347acb5c423ae144baf1edca0df54d6e426dff69eacba7ca6346c

See more details on using hashes here.

File details

Details for the file fedrq-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fedrq-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for fedrq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b05defb2da16816b91765ba25eb29502e96ec27f8002fd177fbc000eae837426
MD5 a6101a795d1da8c70a8eaec2d7eedbd8
BLAKE2b-256 47f56e1b51b51c187a9a55481401e867f254933b40bcabcc63cb56ef187b26cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page