On 26/06/20 14:59 +0200, Tomasz Torcz wrote:
On Fri, Jun 26, 2020 at 12:27:39PM +0100, Jonathan Wakely wrote:
> On 26/06/20 10:19 +0200, Jan Kratochvil wrote:
> > On Fri, 26 Jun 2020 09:57:49 +0200, Samuel Sieb wrote:
> > > The dnf one works fine.
> > It does not as I have shown. Moreover it takes so much time to do dnf command
> > completion and one always has to ctrl-c it anyway. That is because dnf should
> > use cached results updated by cron and do not contact network during
> > interactive cache queries. If one really wants most fresh data there is
> > --refresh for that.
> That sounds like a good idea, and could be filed as a bug against
> dnf. I'd prefer if it's optional though, because for me 'sudo dnf
> install foo<TAB><TAB>' only takes seven seconds, not minutes, and
> that seems reasonable to me.
Seven seconds sounds like a horrible user experience. I would lose
patience and start hitting ^C after around 3s.
It depends what you're trying to do. If you want install something in
the local directory, sure, it's awful. If you really do want dnf to
query the repo and tell you all the packages that match 'foo*' then
it's useful to be able to do that.
It only takes about 3s the second time, so maybe a lot of the time is
getting the results into the disk cache, not the network operation.