On 3/22/23 10:33, Bengt Gördén wrote:
On 2023-03-22 14:17, Knurpht-openSUSE wrote:
This is the url for the zypper command "zypper lr -d"
https://paste.opensuse.org/pastes/7f631951c1b8 22 Repos ..... To be honest, that is a mess. At least remove the *Factory* repos, that said also look at all the other non-distro repos. Remove whatever holds packages that are in the distro repos, then run sudo zypper dup --allow-vendor-change. Create a btrfs snapshot before
Op woensdag 22 maart 2023 14:12:57 CET schreef Frank McCormick: performing the operation.
Frank,
As Knurpht says, it might be a good idea to go through your set of repos. I have a bunch of weird repos but I live with them and keep an eye on them. But I would suggest you start by checking how many installed packages you actually have in each of them. I made myself a small one-liner a few years ago to deal with that.
for i in `zypper --no-refresh lr -E | awk -F\| '{print $2}' | grep -v -e ^$ -e Alias`;do echo -n $i:\ ;zypper --no-refresh se --installed-only --repo $i | grep ^i| wc -l;done
Doesn't work here. desktop-tumbleweed frank ~> sudo for i in `zypper --no-refresh lr -E | awk -F\| '{print $2}' | grep -v -e ^$ -e Alias`;do echo -n $i:\ ;zypper --no-refresh se --installed-only --repo $i | grep ^i| wc -l;done -bash: syntax error near unexpected token `do' I don't use repo aliases...might that be the problem?