On 2020-06-29 7:01 p.m., Carlos E. R. wrote:
On 30/06/2020 02.08, Darryl Gregorash wrote:
Would you happen to know, if the file /etc/zypp/vars.d/releasever does not exist, where zypper/YaST store the $releasever variable?
That part is new to me. There is nothing in that directory in my machine. I suspect it is the call to "zypper --releasever=xxxx" which fills the variable. However, the current release number is in "/etc/os-release".
No, it isn't the --releasever option that fills it in. Here is the file for the main OSS repo: # cat /etc/zypp/repos.d/repo-oss.repo [repo-oss] name=Main Repository enabled=1 autorefresh=1 baseurl=http://download.opensuse.org/distribution/leap/$releasever/repo/oss/ path=/ type=rpm-md keeppackages=0 If you go to the YaST repository manager, you will see that it shows the baseurl as above, along with the actual URL, with $releasever replaced by the current release version number. Both zypper and YaST must be getting the version from /etc/os-release, but if /etc/zypp/vars.d/releasever exists, that will be used instead -- at least for zypper. Using --releasever option will also override any other stored version. Just my guess, though. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org