You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 infoNov 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}"
whereas
dnf info
pulls the package catalogs andlists both: "Installed packages" and "Available packages"
toolbox create; toolbox run dnf info <path>
rpm-ostree install dnf5
/usr/bin/dnf
isn't already installed on rpm-ostree systems;but rpm-ostree calls into libdnf,
so
dnf info
could work onrpm-ostree
systems.Tasks:
rpm-ostree info
->dnf info
rpm-ostree dnf info
->dnf info
rpm-ostree dnf {info,}
->dnf {}
dnf info
doesn't change anythingThe text was updated successfully, but these errors were encountered: