Re: List available packages in a repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2025-06-05 at 19:48 -0400, Todd Zullinger wrote:
> Patrick O'Callaghan wrote:
> > On Thu, 2025-06-05 at 23:27 +0100, Patrick O'Callaghan wrote:
> > > > My conceptual problem is that this makes no logical sense. If I don't
> > > > include '--available' than I get a long list of packages which are
> > > > *not* from the repo I explicitly asked for. This violates the venerable
> > > > Principle Of Least Astonishment.
> > > 
> > > Not wishing to beat a dead horse, but in 'man dnf' we find:
> > > 
> > >        --repo=REPO_ID,...
> > >               Enable just specified repositories.
> > >               This is a list option which can be specified multiple times.
> > >               Accepted values are ids, or a glob of ids.
> > > 
> > > so I think my interpretation is correct and the actual behaviour is a
> > > bug. I'll consider filing it in BZ.
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=2370520
> 
> I don't know that I agree or if it will be changed, but you
> can certainly argue it either way. :)
> 
> Essentially, the list command behaves as though '--installed
> --available' are passed if neither are given. 
> 

Well, no. If "--available" is given explicitly, it *excludes* the
installed packages except those from the specified repo. The behaviour
is different if "--available" is omitted.

> [...]
> 

> If anything, maybe the documentation for the list command
> can be improved to make it clearer how things behave.

That's probably the most sensible course.

poc
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux