Il giorno ven, 23/01/2026 alle 09.15 +1100, Stephen Morris ha scritto: > > > > 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 irepository.
>
> regards,
Also "dnf info" does not provide the info "Installed" or "Available"
into header of package (why not?), then it is not usable like a old
"dnf list".
With old "dnf list" format it was possible to see which packages were
installed (@) and which can be installed
This is an example [1] and [2]:
If "dnf list" provide on line the package state (Installed or
Available, example [2]) you can see which packages are not installed,
then install it, if it's necessary.
Having in the full list first the installed packages and then the
available packages not help, then sometimes makes it necessary to
reprocess the output with a script.
A new "dnf list" option might fix this ?.
Thanks
Dario.
[1] current "dnf list" output:
lesca@dodo:~$ dnf list|grep ^NetworkManager
Updating and loading repositories:
Repositories loaded.
NetworkManager.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-adsl.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-bluetooth.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-config-connectivity-fedora.noarch
1:1.54.3-2.fc43 updates
NetworkManager-libnm.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-libnm-devel.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-openconnect.x86_64
1.2.10-9.fc43 fedora
NetworkManager-openconnect-gnome.x86_64
1.2.10-9.fc43 fedora
NetworkManager-openvpn.x86_64
1:1.12.5-1.fc43 updates
NetworkManager-openvpn-gnome.x86_64
1:1.12.5-1.fc43 updates
NetworkManager-ppp.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-pptp.x86_64
1:1.2.12-10.fc43 fedora
NetworkManager-pptp-gnome.x86_64
1:1.2.12-10.fc43 fedora
NetworkManager-ssh.x86_64
1.4.2-1.fc43 updates
NetworkManager-ssh-gnome.x86_64
1.4.2-1.fc43 updates
NetworkManager-ssh-selinux.x86_64
1.4.2-1.fc43 updates
NetworkManager-sstp.x86_64
1:1.3.1-12.fc43 fedora
NetworkManager-sstp-gnome.x86_64
1:1.3.1-12.fc43 fedora
NetworkManager-tui.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-vpnc.x86_64
1:1.4.0-4.fc43 fedora
NetworkManager-vpnc-gnome.x86_64
1:1.4.0-4.fc43 fedora
NetworkManager-wifi.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-wwan.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-cloud-setup.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-config-server.noarch
1:1.54.3-2.fc43 updates
NetworkManager-fortisslvpn.x86_64
1.4.1-10.20231021gite201da5.fc43 fedora
NetworkManager-fortisslvpn-gnome.x86_64
1.4.1-10.20231021gite201da5.fc43 fedora
NetworkManager-iodine.x86_64
1.2.0-25.fc43 fedora
NetworkManager-iodine-gnome.x86_64
1.2.0-25.fc43 fedora
NetworkManager-l2tp.x86_64
1.52.0-1.fc43 updates
NetworkManager-l2tp-gnome.x86_64
1.52.0-1.fc43 updates
NetworkManager-libnm.i686
1:1.54.3-2.fc43 updates
NetworkManager-libnm-devel.i686
1:1.54.3-2.fc43 updates
NetworkManager-libreswan.x86_64
1.2.30-1.fc43 updates
NetworkManager-libreswan-gnome.x86_64
1.2.30-1.fc43 updates
NetworkManager-ovs.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-strongswan.x86_64
1.6.0-10.fc43 fedora
NetworkManager-strongswan-gnome.x86_64
1.6.0-10.fc43 fedora
NetworkManager-team.x86_64
1:1.54.3-2.fc43 updates
In this example[1] you cannot know what package are installed and what not
[2] old style output
lesca@dodo:~$ dnf list|awk 'BEGIN{p=" (Installed)"} $0~/^$/{p=""} NF==3{print
$0 p}'|grep ^NetworkManager
Updating and loading repositories:
Repositories loaded.
NetworkManager.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-adsl.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-bluetooth.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-config-connectivity-fedora.noarch
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-libnm.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-libnm-devel.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-openconnect.x86_64
1.2.10-9.fc43 fedora
(Installed)
NetworkManager-openconnect-gnome.x86_64
1.2.10-9.fc43 fedora
(Installed)
NetworkManager-openvpn.x86_64
1:1.12.5-1.fc43
updates (Installed)
NetworkManager-openvpn-gnome.x86_64
1:1.12.5-1.fc43
updates (Installed)
NetworkManager-ppp.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-pptp.x86_64
1:1.2.12-10.fc43 fedora
(Installed)
NetworkManager-pptp-gnome.x86_64
1:1.2.12-10.fc43 fedora
(Installed)
NetworkManager-ssh.x86_64
1.4.2-1.fc43
updates (Installed)
NetworkManager-ssh-gnome.x86_64
1.4.2-1.fc43
updates (Installed)
NetworkManager-ssh-selinux.x86_64
1.4.2-1.fc43
updates (Installed)
NetworkManager-sstp.x86_64
1:1.3.1-12.fc43 fedora
(Installed)
NetworkManager-sstp-gnome.x86_64
1:1.3.1-12.fc43 fedora
(Installed)
NetworkManager-tui.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-vpnc.x86_64
1:1.4.0-4.fc43 fedora
(Installed)
NetworkManager-vpnc-gnome.x86_64
1:1.4.0-4.fc43 fedora
(Installed)
NetworkManager-wifi.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-wwan.x86_64
1:1.54.3-2.fc43
updates (Installed)
NetworkManager-cloud-setup.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-config-server.noarch
1:1.54.3-2.fc43 updates
NetworkManager-fortisslvpn.x86_64
1.4.1-10.20231021gite201da5.fc43 fedora
NetworkManager-fortisslvpn-gnome.x86_64
1.4.1-10.20231021gite201da5.fc43 fedora
NetworkManager-iodine.x86_64
1.2.0-25.fc43 fedora
NetworkManager-iodine-gnome.x86_64
1.2.0-25.fc43 fedora
NetworkManager-l2tp.x86_64
1.52.0-1.fc43 updates
NetworkManager-l2tp-gnome.x86_64
1.52.0-1.fc43 updates
NetworkManager-libnm.i686
1:1.54.3-2.fc43 updates
NetworkManager-libnm-devel.i686
1:1.54.3-2.fc43 updates
NetworkManager-libreswan.x86_64
1.2.30-1.fc43 updates
NetworkManager-libreswan-gnome.x86_64
1.2.30-1.fc43 updates
NetworkManager-ovs.x86_64
1:1.54.3-2.fc43 updates
NetworkManager-strongswan.x86_64
1.6.0-10.fc43 fedora
NetworkManager-strongswan-gnome.x86_64
1.6.0-10.fc43 fedora
NetworkManager-team.x86_64
1:1.54.3-2.fc43 updates
In this example[2] you can see which package are installed and which you can
install it
--
_______________________________________________
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
