Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-26 Thread Dario Lesca
Il giorno dom, 25/01/2026 alle 22.18 +, Barry ha scritto:
> emails are unlikely to see any action taken.
> 
> If you raise a bug against dnf5 reporting this issue you might see
> action
> or atleast a reason they do not want to implement a change.
> 
> Barr

Thanks for suggest.
I have try fill this "not bug":
https://bugzilla.redhat.com/show_bug.cgi?id=2432818

Dario
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-25 Thread Barry


> On 25 Jan 2026, at 19:24, Dario Lesca  wrote:
> 
> am not a programmer, then I have write in CC to some maintainers get
> from here:
> https://github.com/rpm-software-management/dnf5/blob/main/AUTHORS.md
> 
> It's sufficient to re-enable the "@" before the repo to a full "dnf
> list" command without options, or a new option "--old-style" or any way
> they deem most appropriate.

emails are unlikely to see any action taken.

If you raise a bug against dnf5 reporting this issue you might see action
or atleast a reason they do not want to implement a change.

Barry

-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-25 Thread Dario Lesca
Il giorno ven, 23/01/2026 alle 17.04 +, Patrick O'Callaghan ha
scritto:
> Sounds like a reason for an RFE. You should consider contacting the
> maintainers if you consider this to be a regression from the previous
> version.

I am not a programmer, then I have write in CC to some maintainers get
from here:
https://github.com/rpm-software-management/dnf5/blob/main/AUTHORS.md

It's sufficient to re-enable the "@" before the repo to a full "dnf
list" command without options, or a new option "--old-style" or any way
they deem most appropriate.

This is the link to this tread:
https://lists.fedoraproject.org/archives/list/[email protected]/message/KK46GRBHBPW73QXW2TN2MDPIKXVEXSQE/

Thanks

Dario Lesca

-- 
Dario Lesca
(Inviato dal mio Linux Fedora 43 Workstation)








-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-25 Thread Dario Lesca
Il giorno ven, 23/01/2026 alle 16.37 +, Will McDonald ha scritto:
> I imagine it would be pretty easy to knock up a little bit of awk
> that would append @installed / @available or similar alongside
> packages keying off those headings.

dnf list|awk 'BEGIN{p=" (Installed)"} $0~/^$/{p=""} NF==3{print $0 p}'|grep 
^NetworkManager

Dario
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Grumpey
On Thu, Jan 22, 2026 at 4:21 AM Dario Lesca  wrote:
>
> ... and, optional, a column "repository", like, for example, a old dnf
> style, with symbol @ + repo?
>
> or a way to customize the output columns?
>
You can use repoquery to do something similar with dnf5
dnf rq --installed --available kernel*
--queryformat="%{full_nevra},%{repoid}\n"  | LC_COLLATE=C sort -t, -b
-k2 | column -t -s,
or if you want to go nuts
dnf rq --installed --available kernel*
--queryformat="%{full_nevra},%{repoid},%{reason},%{from_repo}\n"  |
column -s"," -t | LC_COLLATE=C sort -b -k2

Take a look at man dnf-repoquery and the queryformat tags for some other ideas.
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Terry Polzin
You could script it and sort the o/p,  i do note that there is a difference
in the length of the line installed vs. available

 dnf list --available| awk '{ if ($NF=="updates"){print $0 " AVAILABLE"}
else {print $0 "\t AVAILABLE"}}' > *filename*
 dnf list --installed | awk '{ if ($NF=="updates"){print $0 " INSTALLED"}
else {print $0 "\t INSTALLED"}}' >> *filename* && sort *filename*

Not elegant, but it should work.


On Fri, Jan 23, 2026 at 12:16 PM Joe Zeff  wrote:

>
> On 1/23/26 09:03, Dario Lesca wrote:
> > 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.
>
> In the old dns, you could use list installed or list available if that's
> whag you needed.  Isn't that still available?
>
> --
> ___
> 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
>
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Joe Zeff


On 1/23/26 09:03, Dario Lesca wrote:

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.


In the old dns, you could use list installed or list available if that's 
whag you needed.  Isn't that still available?


--
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Patrick O'Callaghan
On Fri, 2026-01-23 at 17:03 +0100, Dario Lesca wrote:
> A new "dnf list" option might fix this ?.

Sounds like a reason for an RFE. You should consider contacting the
maintainers if you consider this to be a regression from the previous
version.

poc
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Will McDonald
On Fri, 23 Jan 2026 at 16:04, Dario Lesca  wrote:

> Il giorno ven, 23/01/2026 alle 09.15 +1100, Stephen Morris ha scritto:
>
> 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".


dnf list does indicate installed/available with headings for each. It's
just not immediately obvious/terribly intuitive if you're expecting that
indicator to be inline alongside the package.

$ dnf list | grep -E 'Installed packages|Available packages|swap'

Installed packages
libblockdev-swap.x86_64
 3.4.0-1.fc43
 fedora

Available packages
libblockdev-swap.i686
 3.4.0-1.fc43
 fedora


In your examples, your grep is filtering out the indication of installed vs
available.

I imagine it would be pretty easy to knock up a little bit of awk that
would append @installed / @available or similar alongside packages keying
off those headings.
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Dario Lesca
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.fc43fedora
NetworkManager-pptp-gnome.x86_64
 1:1.2.12-10.fc43fedora
NetworkManager-ssh.x86_64   
 1.4.2-1.fc43updates
NetworkManager-ssh-gnome.x86_64 
 1.4.2-1.fc43updates
NetworkManager-ssh-selinux.x86_64   
 1.4.2-1.fc43updates
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

Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-23 Thread Patrick O'Callaghan
On Fri, 2026-01-23 at 01:09 +, Barry wrote:
> 
> 
> > On 22 Jan 2026, at 14:53, Dario Lesca  wrote:
> > 
> > to understand which packages are installed and which are not
> 
> I use rpm -q to test if a package is installed.

Or 'rpm -qa' for a full list.

poc
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Barry


> On 22 Jan 2026, at 14:53, Dario Lesca  wrote:
> 
> to understand which packages are installed and which are not

I use rpm -q to test if a package is installed.

Barry

-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Stephen Morris

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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Dario Lesca
Il giorno gio, 22/01/2026 alle 14.02 +, Barry Scott ha scritto:
> 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
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Barry Scott


> On 22 Jan 2026, at 11:49, Dario Lesca  wrote:
> 
> It seems strange to me that a useful function (@repo) in list mode  has
> been removed without offering a similar possibility

The repo is the 3rd column.

Barry

-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Dario Lesca
Il giorno gio, 22/01/2026 alle 11.30 +, Patrick O'Callaghan ha
scritto:
> Possibly using rpm rather than dnf. See for example 'man rpm-
> queryformat'.

Command rpm show only package installed, not the ones available.

It seems strange to me that a useful function (@repo) in list mode  has
been removed without offering a similar possibility

Dario
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Patrick O'Callaghan
On Thu, 2026-01-22 at 10:21 +0100, Dario Lesca wrote:
> ... and, optional, a column "repository", like, for example, a old
> dnf
> style, with symbol @ + repo?
> 
> or a way to customize the output columns?

Possibly using rpm rather than dnf. See for example 'man rpm-queryformat'.

poc
-- 
___
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


Re: dnf5: How to get a full list of packages with a column installed/available ...

2026-01-22 Thread Dario Lesca
Il giorno gio, 22/01/2026 alle 10.21 +0100, Dario Lesca ha scritto:
> or a way to customize the output columns

... without write a shell script?

Thanks
Dario
> 
-- 
___
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