Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm-ostree dnf info -> dnf info #5170

Open
westurner opened this issue Nov 24, 2024 · 1 comment
Open

rpm-ostree dnf info -> dnf info #5170

westurner opened this issue Nov 24, 2024 · 1 comment

Comments

@westurner
Copy link

westurner commented Nov 24, 2024

rpm-ostree dnf info would be super convenient.

Also or instead, dnf info could work on rpm-ostree systems;
though as far as general dnf <command> support,
dnf commands that don't change anything (that do not mutate state) could work on rpm-ostree systems

Workarounds:

  • rpm -q --whatprovides "${filepath}"
  • rpm -qi "${pkgname}"
    • this only works for packages that are already installed,
      whereas dnf info pulls the package catalogs and
      lists both: "Installed packages" and "Available packages"
  • Create a toolbox and run dnf in the toolbox container;
    toolbox create; toolbox run dnf info <path>
    • but a container may have a different distro+release or image
    • and probably has different different packages installed than the host
  • rpm-ostree install dnf5
    • There is a reason that /usr/bin/dnf isn't already installed on rpm-ostree systems;
      but rpm-ostree calls into libdnf,
      so dnf info could work on rpm-ostree systems.

Tasks:

  • Decide which of these if any:
  • rpm-ostree info -> dnf info
  • rpm-ostree dnf info -> dnf info
  • rpm-ostree dnf {info,} -> dnf {}
    • dnf info doesn't change anything
@westurner westurner changed the title rpm-ostree dnf info -> dnf info (instead of having to look up rpm -q --whatprovides <path>) rpm-ostree dnf info -> dnf info Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant