-
Notifications
You must be signed in to change notification settings - Fork 198
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
Comments
rpm-ostree dnf info
-> dnf info
(instead of having to look up rpm -q --whatprovides <path>
)rpm-ostree dnf info
-> dnf info
#alias dnf='python -m dnf.cli.main'
alias dnf='/usr/bin/python -m dnf.cli.main' python -m dnf.cli.main -h
python -m dnf.cli.main search --help
python -m dnf.cli.main repoquery --help
python -m dnf.cli.main search kernel-core
python -m dnf.cli.main repoquery --whatdepends kernel-core
python -m dnf.cli.main repoquery --whatprovides kernel-core
python -m dnf.cli.main repoquery --provides kernel-core
python -m dnf.cli.main repoquery --installed
python -m dnf.cli.main repoquery --userinstalled #
python -m dnf.cli.main history list 0..1
for n in $(python -m dnf.cli.main history list | awk '{ print $1 }' | tail -n+3 | sort -n); do (set -x; python -m dnf.cli.main history store -o dnf_transaction.${n}.json "$n"); done #
(set -e; for installroot in /sysroot/ostree/deploy/fedora/deploy/*; do python -m dnf.cli.main --installroot="${installroot}" repoquery --installed; done) # err: /var/tmp isn't writeable
python -m dnf.cli.main repoquery --whatprovides /bin/bash
python -m dnf.cli.main repoquery --whatprovides /etc/systemd
ls -al /usr/lib/python3.13/site-packages/dnf/cli/commands/search.py
python -m dnf.cli.main repoquery --whatprovides "$_"
rpm-ostree status --json | grep dnf
rpm-ostree status --json | jq '.' | grep dnf
rpm -qa | grep dnf | grep python3
rpm -ql python3-dnf To list (security) updates with
|
So, the currently working solution to this is: alias dnf='/usr/bin/python -m dnf.cli.main
dnf info --help This could just be in the default /etc/[skel/]profile; though dnf won't fail with something like "This dnf command doesn't work on an rpm-ostree system" And, will the dnf4 python CLI continue to be installed by default in [distros X, Y, and Z] images, given that dnf5 is a rewrite to cpp? https://github.com/rpm-software-management/dnf5/blob/main/dnf5/main.cpp |
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:
Decide on a CLI commands passthrough syntax:
$ rpm-ostree info
->dnf info
$ rpm-ostree dnf info
->dnf info
$ rpm-ostree dnf {info,}
->dnf {}
info
, should pass through?dnf info
doesn't change anythingThe text was updated successfully, but these errors were encountered: