On 30/06/2020 03.19, Darryl Gregorash wrote:
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.
Well, normally the version must be the current one. It should be the "next" one when upgrading to the next one, an override. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)