GPL-3.0-only licensed and maintained by Jens Petersen
This version can be pinned in stack with:fedora-repoquery-0.7.2@sha256:538b8d7512920deed60dccf38e8e5b8a485ffffba9d51ef93eeee89bc1a9ff68,3720

Module documentation for 0.7.2

There are no documented modules for this package.

fedora-repoquery

A dnf wrapper to repoquery different Fedora releases, caching repodata separately per release. It also supports EPEL, Centos Stream and ELN repos.

Usage

Usage examples:

$ fedora-repoquery rawhide firefox

firefox-138.0.1-1.fc43.x86_64 (fedora-rawhide)

$ fedora-repoquery 42 --requires filesystem

setup

$ fedora-repoquery epel9 ghc

ghc-8.10.7-116.el9.x86_64 (epel9)

$ fedora-repoquery c10 bash

bash-5.2.26-6.el10.x86_64 (c10s-BaseOS)

$ fedora-repoquery eln kernel

kernel-6.15.0-0.rc5.250507g0d8d44db295c.45.eln148.x86_64 (eln-BaseOS)

Without a release argument, the system yum repo configuration is used:

$ fedora-repoquery pandoc

pandoc-3.6.4-35.fc43.x86_64 (rawhide)

but then currently you have to insert -- before a query option:

$ fedora-repoquery -- --whatrequires pandoc

R-reprex-2.1.1-1.fc43.noarch (rawhide)
R-rmarkdown-2.24-8.fc43.noarch (rawhide)
pandoc-pdf-3.6.4-35.fc43.x86_64 (rawhide)
python3-pypandoc-1.15-3.fc42.noarch (rawhide)

Use the –time (-T) option to display repo timestamps:

$ fedora-repoquery -T 43 fedrq
2025-05-07 15:57:29 +08 <https://mirror.freedif.org/fedora/fedora/linux/development/rawhide/>

fedrq-1.5.0-1.fc43.noarch (fedora-rawhide)

Repo timestamp(s) are output when there are no query args after the release version:

$ fedora-repoquery 42

2025-04-15 01:43:43 +08 <https://mirror.freedif.org/fedora/fedora/linux/releases/42/>
2025-05-08 12:18:02 +08 <https://mirror.freedif.org/fedora/fedora/linux/updates/42/>

One can also query multiple releases (or arch’s):

$ fedora-repoquery 41 42 python3 | grep x86_64

python3-3.13.0-1.fc41.x86_64 (f41)
python3-3.13.3-2.fc41.x86_64 (f41-updates)
python3-3.13.2-2.fc42.x86_64 (f42)
python3-3.13.3-2.fc42.x86_64 (f42-updates)

Help

$ fedora-repoquery --version

0.7.2

$ fedora-repoquery --help

fedora-repoquery tool for querying Fedora repos for packages.

Usage: fedora-repoquery [--version] [-4|--dnf4] [(-q|--quiet) | (-v|--verbose)]
                        [--dynamic] [-T|--time] [-K|--koji]
                        [(-m|--mirror URL) | (-D|--dl)]
                        [(-s|--source) | (-A|--all-archs) | [-a|--arch ARCH]]
                        [-t|--testing] [-d|--debug]
                        ((-z|--cache-size) | (-e|--cache-clean-empty) |
                          (-l|--list) |
                          [RELEASE|--]... [REPOQUERY_OPTS]... [PACKAGE]...)

  where RELEASE is {fN or N (fedora), 'rawhide', epelN, epelN-next, cN (centos
  stream), 'eln'}, with N the release version number.
  https://github.com/juhp/fedora-repoquery#readme

Available options:
  -h,--help                Show this help text
  --version                Show version
  -4,--dnf4                Use dnf4 instead of dnf5 (if available)
  -q,--quiet               Avoid output to stderr
  -v,--verbose             Show stderr from dnf repoquery
  --dynamic                Redirect each HTTP through mirror
  -T,--time                Show time-stamp of repos
  -K,--koji                Use Koji buildroot
  -m,--mirror URL          Fedora mirror [default:
                           https://download.fedoraproject.org/pub]
  -D,--dl                  Use dl.fp.o
  -s,--source              Query source repos
  -A,--all-archs           Query all (64 bit) arch repos
  -a,--arch ARCH           Specify arch [default: x86_64]
  -t,--testing             Fedora updates-testing
  -d,--debug               Show some debug output
  -z,--cache-size          Show total dnf repo metadata cache disksize
  -e,--cache-clean-empty   Remove empty dnf caches
  -l,--list                List Fedora versions

The default arch is the system arch.

Installation

fedora-repoquery is available in Fedora and EPEL: https://src.fedoraproject.org/rpms/fedora-repoquery.

Building from source

Use stack install fedora-repoquery or cabal install fedora-repoquery to build the latest release.

To build from git: stack install or cabal install or cabal-rpm install.

Contributing

fedora-repoquery is distributed under the GPL license version 3 or later.

https://github.com/juhp/fedora-repoquery

Changes

Revision history for fedora-repoquery

0.7.2 (2025-05-08)

  • warn when no release specified
  • add support for epel10.x minor releases
  • also parse cNs (c8s, c9s, c10s)
  • use eln via download.fp.o (or dl.fp.o) and drop its channels
  • support short pneumonics for common queryformats (nv,nvr,nvra,envr,envra)
  • improve branched pre-release logic using fedora-releases for Bodhi API
  • drop head/tail usage

0.7.1 (2024-09-08)

  • fix for branched: “frozen” state is still in development/ like “pending”
  • enable updates-testing for fedora branched from Beta freeze
  • help: can use – for system repoquery
  • only output “slow redirection” for debug
  • refactor eitherRelease with lower case
  • curl connection: timeout for Location redirect but not Last-Modified

0.7 (2024-07-18)

  • use curl library for HTTP instead of http-directory
  • rename the executable back to fedora-repoquery to avoid confusion with fedrq

0.6 (2024-07-16)

  • defaults to no datestamp output: –time replaces –no-check
  • further speed improvements by reducing http checks
  • map latest pending release version to fedora-rawhide
  • add –dynamic redirect to not re-use first mirror redirect
  • update c8s url to Centos Vault
  • drop dep on utility-ht just for spanJust

0.5 (2024-07-02)

  • allow multiple release args
  • with no release arg use system yum repos
  • add –quick to skip url http checks, also done when multiple releases
  • dnf5 –qf does not add “\n” so we do it if no trailing “space”
  • update cache dir commands to support also dnf5 xdg cache path
  • use dnf5 repoquery.cpp list of –qf conflicts

0.4 (2024-05-24)

  • add –dnf4 option to use dnf4 (actually /usr/bin/dnf-3) instead of dnf5
  • oldest and newest active releases are now determined/cached via Bodhi API
  • can now query with rawhide by version (eg 41 currently)
  • disable –qf for –requires
  • –list now only shows active fedora releases
  • for centos and eln only check compose for the BaseOS repo
  • map version 11 to eln

0.3.2 (2024-02-19)

  • enable centos 10 stream (still alpha)
  • Query: disable –qf for –provides
  • minor debug tweaks

0.3.1 (2024-02-12)

  • use dnf5 when available
  • add –all-archs to query across all 64bit architectures

0.3 (2023-11-09)

  • Query: no –qf with –changelog
  • small OS versions now map to centos-stream
  • use hostname not full url for mirror repo name
  • repo urls should end with a slash
  • improve tests to fail if no results
  • map failing yzyu.jp http/3 mirror to main one
  • development/39 also needs os/
  • showRelease: reformat Centos and ELN repos
  • default to system arch and introduce sysarch and march

0.2 (2023-05-12)

  • support fedora and epel testing repos
  • fix fedora archive urls
  • support querying epel6 and older archives
  • support fedora-secondary urls for ppc64le and s390x including archive
  • rename –test to –test-channel and –centos-devel to –devel-channel
  • expand help to cover RELEASE and add readme url

0.1.0 (2023-05-07)

  • initial release with support for fedora releases, epel, eln and centos stream