The repo is the 3rd column.

Yes, sorry, this is true

I made a mistake in writing, the repo is there.
what is missing is the indication whether the package is installed or
not.

Is difficult to understand with a line command in which session (the
first "Installed" or second "Available") is found it,

I always have to use a command like this.

    $ dnf list|awk 'BEGIN{p="I"} $0~/^$/{p="A"} NF==3{print $0, p}'| grep 
gnome-shell-ext
to understand which packages are installed and which are not

It was hoping there was some options or some simple trick

Thanks

Dario

Having just looked at the "dnf list" command help there are parameters you can supply to do things like list installed packages or available packages or extras. What may not be obvious from the command output is issuing the command "dnf list" displays a list of all the packages installed with the appropriate header and then it displays a list of all the available packages with the appropriate header. There is also the "dnf info" command which does the same thing as "dnf list" in terms of it provides info on all the installed packages first then all the available packages, but that command provides a lot more info that "dnf list", which includes a brief description of the package, the repository it's in and even the name of the rpm in the repository.

regards,
BEGIN:VCARD
VERSION:4.0
N:Morris;Stephen;;;
FN:Stephen Morris
EMAIL;PREF=1;TYPE=home:[email protected]
END:VCARD
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to