Removing opensuse repo and nvidia repo services

I am using code in ref below to remove repos service back to original:

(https://github.com/openSUSE/openSUSE-repos#restoring-original-distribution-repositories)

In section: Restoring original distribution repositories
Code to reincorporate previously saved files as layed out in doc is not working as shown below:

(base) tom@mydesktop: ~ $ sudo  for file in /etc/zypp/repos.d/*.rpmsave; do echo mv $file `echo $file | sed -s "s/\.rpmsave//"`; done
bash: syntax error near unexpected token `do'

Would someone suggest a revision. If an error on doc page, it should be fixed for the next guy.

thanks, tom kosvic

It is wiki. You can do it too.

Now you informed me that I can make the fix, I will.
First, I need a revision of the line of code though.
I don’t know where bash got the reverse-apostrophe in front of the do. Never saw that. No reverse-apostrophe in the code line.

thanks, tom kosvic

Sorry, there is reverse apostrophe in code line.

I reinstalled the original repos manually by re-entering them through yast software. I removed the debug repos that the repo services installed. All works fine.

No need for this code. Problem solved.

thanks, tom kosvic

1 Like