openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
391 stars 107 forks source link

zypper search with outdated metadata #415

Open cy6erGn0m opened 2 years ago

cy6erGn0m commented 2 years ago

If zypper search executed from a regular user and the metadata is not exactly fresh (even few hours after refreshing), it simply hangs for long time, prints message "Repository main is outdated. Run zypper refresh as root" and then gets stuck.

If a regular user is unable to update meta, then it shouldn't even try and search quickly using existing data with a warning. May be it could treat it as error, but for sure it shouldn't hang for so long time.

The other issue is that the client does something with no output so I can't know, if it actually working or stuck

trmdi commented 1 year ago

If a regular user is unable to update meta, then it shouldn't even try and search quickly using existing data with a warning.

+1 Is this a good idea to implement in 2022?

dirkmueller commented 4 months ago

There is a manual workaround from command line to use "zypper --no-refresh search XXX". maybe --no-refresh should be made the default option on non-root usage?

I agree the slowdown is real, it takes almost a second to do something that changes nothing, when you're actively waiting. on stuff.