[opensuse] [zypper-1.11.20] NEW global option '--releasever' for distribution upgrades
Some of you may know about the '$releasever' placeholder which can be used in yum .repo files. On openSUSE the variable is substituted by the current distributions version (here 13.1): $ zypper ar -f -n 'packman ($releasever)' \ http://ftp.gwdg.de/pub/linux/packman/suse/\$releasever packman Adding repository 'packman (13.1)' ................................[done] Repository 'packman (13.1)' successfully added Enabled : Yes Autorefresh : Yes GPG check : Yes URI : http://ftp.gwdg.de/pub/linux/packman/suse/13.1 $ cat /etc/zypp/repos.d/packman.repo [packman] name=packman ($releasever) enabled=1 autorefresh=1 baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/$releasever $ $ zypper lr packman Alias : packman Name : packman (13.1) URI : http://ftp.gwdg.de/pub/linux/packman/suse/13.1 Defined like this, the repo will always match your distributions version. After having upgraded to 13.2, the repo will be 'packman (13.2)' at http://ftp.gwdg.de/pub/linux/packman/suse/13.2 (provided the directory layout on the server does not change and a repo for this version is already available). The missing link is the distribution upgrade itself; the system is still 13.1 but you want to refer to the 13.2 repos. This gap is now closed by the new '--releasever VERSION' global option. It allows to define the substitution value for '$releasever': $ zypper --releasever 31.2 lr packman Alias : packman Name : packman (13.2) URI : http://ftp.gwdg.de/pub/linux/packman/suse/13.2 To check where '$releasever' is used and where still fixed version strings try: $ zypper --releasever @--HERE--@ lr -u You can directly edit the /etc/zypp/repos.d/*.repo files and add $releasever to names and baseurls. Don't use it within the alias, it won't be replaced there. If all repos are prepared you can try switching to the new version repos: $ zypper --releasever 31.2 refresh If you're lucky and all required repos are available you can upgrade: $ zypper --releasever 31.2 dup Once openSUSE 13.2 is installed, the --releasever option is no longer needed. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX GmbH, Development, ma@suse.de Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 74 053-0 +------------------------------------------------------------------+ SUSE Linux GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Michael Andres <ma@suse.de> [01-14-15 06:50]:
Some of you may know about the '$releasever' placeholder which can be used in yum .repo files. On openSUSE the variable is substituted by the current distributions version (here 13.1):
$ zypper ar -f -n 'packman ($releasever)' \ http://ftp.gwdg.de/pub/linux/packman/suse/\$releasever packman Adding repository 'packman (13.1)' ................................[done] Repository 'packman (13.1)' successfully added Enabled : Yes Autorefresh : Yes GPG check : Yes URI : http://ftp.gwdg.de/pub/linux/packman/suse/13.1
In *what* versin of zypper was this added. 07:44 Crash: ~ > rpm -q zypper zypper-1.11.19-2.1.x86_64 07:44 Crash: ~ > zypper --help |grep releasever 07:44 Crash: ~ > I don't have it? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday 14 January 2015 13:45:02 Patrick Shanahan wrote:
* Michael Andres <ma@suse.de> [01-14-15 06:50]:
Some of you may know about the '$releasever' placeholder which can be used in yum .repo files. On openSUSE the variable is substituted by the current distributions version (here 13.1):
$ zypper ar -f -n 'packman ($releasever)' \ http://ftp.gwdg.de/pub/linux/packman/suse/\$releasever packman Adding repository 'packman (13.1)' ................................[done] Repository 'packman (13.1)' successfully added Enabled : Yes Autorefresh : Yes GPG check : Yes URI : http://ftp.gwdg.de/pub/linux/packman/suse/13.1
In *what* versin of zypper was this added.
Sorry, I mentioned it only in the subject: zypper-1.11.20 (i.e. via online update for 13.2/SLE12) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX GmbH, Development, ma@suse.de Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 74 053-0 +------------------------------------------------------------------+ SUSE Linux GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Wed, 14 Jan 2015 12:49:46 +0100 Michael Andres <ma@suse.de> пишет:
This gap is now closed by the new '--releasever VERSION' global option.
What exactly "now" refers to? bor@opensuse:~> LC_ALL=C zypper --releasever=13.2 Unknown option '--releasever=13.2' bor@opensuse:~> LC_ALL=C zypper --releasever 13.2 Unknown option '--releasever' bor@opensuse:~> cat /etc/SuSE-release openSUSE 13.2 (x86_64) VERSION = 13.2 CODENAME = Harlequin # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thursday 15 January 2015 04:47:09 Andrei Borzenkov wrote:
В Wed, 14 Jan 2015 12:49:46 +0100
Michael Andres <ma@suse.de> пишет:
This gap is now closed by the new '--releasever VERSION' global option.
What exactly "now" refers to?
Sorry, I mentioned it only in the subject: zypper-1.11.20 (i.e. via online update for 13.2/SLE12) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX GmbH, Development, ma@suse.de Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 74 053-0 +------------------------------------------------------------------+ SUSE Linux GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Michael Andres
-
Patrick Shanahan