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

Add an option for repoquery, which aims to query the packages that are installed from repositories #1950

Closed
Ricky-Tigg opened this issue Jun 25, 2023 · 1 comment
Assignees
Labels

Comments

@Ricky-Tigg
Copy link

Description

Hello. The need for a such option for DNF v. 4/5 can be proved if needed, as the related task cannot be accomplished by anyone other than someone who knows that

  • external tools are needed to accomplish this task
  • knowledge of such external tools is required

In that context, it is likely that the accomplishment of that task becomes most improbable for most of us, as illustrated by the command needed to produce in order to accomplish it:

dnf rq --installed --qf '%{from_repo} | %{name}' | sort -k 1,1 | awk '$1=="repository_1";$1=="repository_2" {print $0}'

Application with values; output truncated:

$ dnf rq --installed --qf '%{from_repo} | %{name}' | sort -k 1,1 | awk '$1=="updates";$1=="updates-testing" {print $0}' 
updates | aajohan-comfortaa-fonts
updates | aardvark-dns
(...)
updates-testing | zchunk-libs
updates-testing | zfs-fuse

Suggestion of model

--installed-from-repo=<repository_1>,<repository_2>,(...)

Wildcard support would be beneficial. Testing against the following command indicates no warning message related to the use of wildcard for --repo, thus implies it to be supported. However an empty output suggests either it is not or an issue:

$ dnf -q rq --available --repo=updates* --qf '%{repoid} | %{version}' dnf
$ 
@kontura
Copy link
Contributor

kontura commented Jul 11, 2023

Thank you for the report, we will likely no be adding new features to dnf4 but there is a plan to add this for dnf5.
I am closing this issue because we already track this for dnf5 in rpm-software-management/dnf5#381.

@kontura kontura closed this as completed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants