On 2021-10-28 1:25 a.m., Felix Miata wrote:
Darryl Gregorash composed on 2021-10-28 00:48 (UTC-0600):
Do you enjoy editing the repo urls every time you do a version upgrade? I don't.
There's nothing to enjoy or not. I run a sed command once per Leap release
…/Suse/153# sed -i 's/15.2/15.3/g' *.repo*
then stamp them with a timestamp visually equal to the releasever, and copy the set from my LAN server to each installation, which is typically upwards of 20. Any time I see a timestamp on a repo file that isn't as I made it, it's something to investigate:
/etc/zypp/repos.d# ls -Gg *repo <snip>
Carlos's observation of "once per lifetime" still applies: …/Suse/153# sed -i 's/15.2/$releasever/g' *.repo* then copy the set to each installation, and you are done for life. The timestamp on any repo file no longer matters, because Yast/zypper/whatever automatically translates the variable name into the current release version number. You no longer need to concern yourself with when the file was last edited.