On Fri, 11 Oct 2019 20:31, Carlos E. R. wrote:
Hi,
on https://en.opensuse.org/SDB:System_upgrade it says:
The following command modifies all repos from the old to the new. Modify "15.0" if your current system is not 15.0:
# sed -i 's/15.0/15.1/g' /etc/zypp/repos.d/*
Well, it does not work for me:
Telcontar:/etc/zypp/repos.d # sed -i 's/15.0/15.1/g' /etc/zypp/repos.d/* sed: couldn't edit /etc/zypp/repos.d/ANTIGUOS_REPOS: not a regular file Telcontar:/etc/zypp/repos.d #
Yes, certainly I do have directories in that path. How do I change that sed command to work ignoring directories in there? I confess that sed syntax overloads my mind, so I need help.
Meanwhile, I'm editing all those files by hand, one by one.
You personally know that the repo-files end in .repo? (A simple "ls /etc/zypp/repos.d/" should show that) So, simply correcting the glob in the sed line to end in "....repos.d/*.repo" would stop that problem. Ergo, the only mistake in the page would be the missing glob, as shown here in pseudo diff notation: - # sed -i 's/15.0/15.1/g' /etc/zypp/repos.d/* + # sed -i 's/15.0/15.1/g' /etc/zypp/repos.d/*.repo Have a nice day, - Yamaban. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org