<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Terorie</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Terorie"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Terorie"/>
	<updated>2026-04-26T01:05:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Include:Upgrading_to_Edge&amp;diff=16443</id>
		<title>Include:Upgrading to Edge</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Include:Upgrading_to_Edge&amp;diff=16443"/>
		<updated>2019-09-16T06:17:49Z</updated>

		<summary type="html">&lt;p&gt;Terorie: Fix repo switch with sed (broken on v3.10)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An upgrade of Alpine Linux from a stable version to the rolling development version, &#039;&#039;edge&#039;&#039; can be done in a few simple steps. (These instructions assume that Alpine Linux is installed to a hard drive, rather than run-from-RAM.)&lt;br /&gt;
&lt;br /&gt;
To begin, you need to update your {{Path|/etc/apk/repositories}} file. Here are some shortcuts for doing so:&lt;br /&gt;
:* Launch {{Cmd|setup-apkrepos}} Enter {{Key|e}} to edit {{Path|/etc/apk/repositories}}. Change the version number (such as &amp;lt;var&amp;gt;v3.2&amp;lt;/var&amp;gt;) to &#039;&#039;&#039;edge&#039;&#039;&#039;.&lt;br /&gt;
:* Or, edit the file in place: {{Cmd|sed -i -e &#039;s/v&amp;amp;#91;&amp;amp;#91;:digit:&amp;amp;#93;&amp;amp;#93;\..*\//edge\//g&#039; /etc/apk/repositories}}&lt;br /&gt;
  &amp;lt;!-- &lt;br /&gt;
  cat /etc/alpine-release | cut -c 0-3&lt;br /&gt;
  This is not working at the moment&lt;br /&gt;
  cat /etc/alpine-release | cut -c 0-3 | sed -i -e &#039;s/v{}/edge/g&#039; /etc/apk/repositories&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
The result should look like this:&lt;br /&gt;
{{Cat|/etc/apk/repositories|...&lt;br /&gt;
http://dl-3.alpinelinux.org/alpine/edge/main}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
After updating the repositories file, obtain the latest index (and available packages, if you&#039;ve [[Local APK cache|enabled APK caching]]):&lt;br /&gt;
{{Cmd|apk update --update-cache}}&lt;br /&gt;
&lt;br /&gt;
Next, ensure you have the latest available version of the Alpine Linux Package Manager first before upgrading anything else:&lt;br /&gt;
{{Cmd|apk add --upgrade apk-tools}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, upgrade all your packages in one shot: {{Cmd|apk upgrade --update-cache --available}}&lt;br /&gt;
The &amp;lt;code&amp;gt;--available&amp;lt;/code&amp;gt; switch is used to force all packages to be upgraded, even if they have the same version numbers. Sometimes changes in musl-libc have required doing this.&lt;br /&gt;
&lt;br /&gt;
{{Note|You will need to restart any services that have been upgraded to begin using the upgraded versions. If the kernel is upgraded, you will need to reboot to begin using the upgraded version:&lt;br /&gt;
{{Cmd|sync&lt;br /&gt;
reboot}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To check your current release: {{Cmd|cat /etc/alpine-release}} You will see the build date attached to the release.&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Terorie</name></author>
	</entry>
</feed>