<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/default.xsl"?>
<fr:tree xmlns:fr="http://www.forester-notes.org" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xml="http://www.w3.org/XML/1998/namespace" root="false" base-url="/">
  <fr:frontmatter>
    <fr:authors>
      <fr:author>
        <fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link>
      </fr:author>
    </fr:authors>
    <fr:date>
      <fr:year>2019</fr:year>
      <fr:month>2</fr:month>
      <fr:day>22</fr:day>
    </fr:date>
    <fr:uri>https://xw.is/0018/</fr:uri>
    <fr:display-uri>0018</fr:display-uri>
    <fr:route>/0018/</fr:route>
    <fr:title text="Linux › Upgrade Debian Linux to Testing"><fr:link href="/linux-index/" title="Linux" uri="https://xw.is/linux-index/" display-uri="linux-index" type="local">Linux</fr:link> › Upgrade <fr:link href="/debian/" title="Debian" uri="https://xw.is/debian/" display-uri="debian" type="local">Debian Linux</fr:link> to Testing</fr:title>
  </fr:frontmatter>
  <fr:mainmatter>
    <html:p>See the <fr:link href="https://wiki.debian.org/DebianTesting" type="external">Debian wiki</fr:link> for more information.</html:p>
    <html:p>Everything on this page must be ran as <html:code>root</html:code>. Switch to <html:code>root</html:code> with <html:code>su -</html:code>.</html:p>
    <fr:tree show-metadata="false">
      <fr:frontmatter>
        <fr:authors>
          <fr:author>
            <fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link>
          </fr:author>
        </fr:authors>
        <fr:date>
          <fr:year>2019</fr:year>
          <fr:month>2</fr:month>
          <fr:day>22</fr:day>
        </fr:date>
        <fr:title text="Upgrade to testing">Upgrade to testing</fr:title>
      </fr:frontmatter>
      <fr:mainmatter>
        <html:p>Run the following commands</html:p>
        <html:pre>apt-get update &amp;&amp; apt-get upgrade -y
cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb https://deb.debian.org/debian testing main contrib non-free
deb https://deb.debian.org/debian-security testing/updates main contrib non-free
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre>
        <html:p>Answer the questions. If you enable extra architectures (see below), you might want to limit the architectures of the main repositories to amd64 (assuming you use that). In this case do this instead:</html:p>
        <html:pre>apt-get update &amp;&amp; apt-get upgrade -y
cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb [arch=amd64] https://deb.debian.org/debian testing main contrib non-free
deb [arch=amd64] https://deb.debian.org/debian-security testing/updates main contrib non-free
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre>
      </fr:mainmatter>
    </fr:tree>
    <fr:tree show-metadata="false">
      <fr:frontmatter>
        <fr:authors>
          <fr:author>
            <fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link>
          </fr:author>
        </fr:authors>
        <fr:date>
          <fr:year>2019</fr:year>
          <fr:month>2</fr:month>
          <fr:day>22</fr:day>
        </fr:date>
        <fr:title text="Make apt prefer testing by default">Make <fr:link href="/apt/" title="Advanced Package Tool" uri="https://xw.is/apt/" display-uri="apt" type="local">apt</fr:link> prefer testing by default</fr:title>
      </fr:frontmatter>
      <fr:mainmatter>
        <html:p>If you are going to use multiple repos (e.g. debian-ports below), make testing the default like so:</html:p>
        <html:pre>echo 'APT::Default-Release "testing";' &gt;/etc/apt/apt.conf.d/91prefertesting</html:pre>
      </fr:mainmatter>
    </fr:tree>
    <fr:tree show-metadata="false">
      <fr:frontmatter>
        <fr:authors>
          <fr:author>
            <fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link>
          </fr:author>
        </fr:authors>
        <fr:date>
          <fr:year>2019</fr:year>
          <fr:month>2</fr:month>
          <fr:day>22</fr:day>
        </fr:date>
        <fr:title text="Add support for new (hardware) ports">Add support for new (hardware) ports</fr:title>
      </fr:frontmatter>
      <fr:mainmatter>
        <html:p>If you want to add support for new ports (e.g. RISC-V), do this:</html:p>
        <html:pre>apt-get install -y debian-ports-archive-keyring
cat &lt;&lt;EOF &gt;&gt;/etc/apt/sources.list
deb https://deb.debian.org/debian-ports unstable main
deb https://deb.debian.org/debian-ports unreleased main
deb https://deb.debian.org/debian-ports experimental main
EOF
apt-get update</html:pre>
        <html:p>Consider limiting the new ports to a specific architecture. Also consider limiting the main repositories to amd64 (if you use amd64). So do this instead:</html:p>
        <html:pre>apt-get install -y debian-ports-archive-keyring
cat &lt;&lt;EOF &gt;&gt;/etc/apt/sources.list
deb [arch=riscv64] https://deb.debian.org/debian-ports unstable main
deb [arch=riscv64] https://deb.debian.org/debian-ports unreleased main
deb [arch=riscv64] https://deb.debian.org/debian-ports experimental main
EOF
apt-get update</html:pre>
      </fr:mainmatter>
    </fr:tree>
  </fr:mainmatter>
  <fr:backmatter>
    <fr:tree show-metadata="false" hidden-when-empty="true">
      <fr:frontmatter>
        <fr:authors />
        <fr:title text="References">References</fr:title>
      </fr:frontmatter>
      <fr:mainmatter />
    </fr:tree>
    <fr:tree show-metadata="false" hidden-when-empty="true">
      <fr:frontmatter>
        <fr:authors />
        <fr:title text="Context">Context</fr:title>
      </fr:frontmatter>
      <fr:mainmatter>
        <fr:tree show-metadata="true" expanded="false" toc="false" numbered="false">
          <fr:frontmatter>
            <fr:authors>
              <fr:author>
                <fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link>
              </fr:author>
            </fr:authors>
            <fr:date>
              <fr:year>2019</fr:year>
              <fr:month>2</fr:month>
              <fr:day>22</fr:day>
            </fr:date>
            <fr:uri>https://xw.is/0019/</fr:uri>
            <fr:display-uri>0019</fr:display-uri>
            <fr:route>/0019/</fr:route>
            <fr:title text="Linux › Upgrade Debian Linux to Unstable"><fr:link href="/linux-index/" title="Linux" uri="https://xw.is/linux-index/" display-uri="linux-index" type="local">Linux</fr:link> › Upgrade <fr:link href="/debian/" title="Debian" uri="https://xw.is/debian/" display-uri="debian" type="local">Debian Linux</fr:link> to Unstable</fr:title>
          </fr:frontmatter>
          <fr:mainmatter><html:p>See the <fr:link href="https://wiki.debian.org/DebianUnstable" type="external">Debian wiki</fr:link> for more information.</html:p><html:p>Everything on this page must be ran as <html:code>root</html:code>. Switch to <html:code>root</html:code> with <html:code>su -</html:code>.</html:p><html:p>Before upgrading to Debian Unstable, you must first upgrade to Debian Testing.</html:p>
  
  <fr:tree show-metadata="false" expanded="false"><fr:frontmatter><fr:authors><fr:author><fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link></fr:author></fr:authors><fr:date><fr:year>2019</fr:year><fr:month>2</fr:month><fr:day>22</fr:day></fr:date><fr:uri>https://xw.is/0018/</fr:uri><fr:display-uri>0018</fr:display-uri><fr:route>/0018/</fr:route><fr:title text="Linux › Upgrade Debian Linux to Testing"><fr:link href="/linux-index/" title="Linux" uri="https://xw.is/linux-index/" display-uri="linux-index" type="local">Linux</fr:link> › Upgrade <fr:link href="/debian/" title="Debian" uri="https://xw.is/debian/" display-uri="debian" type="local">Debian Linux</fr:link> to Testing</fr:title></fr:frontmatter><fr:mainmatter><html:p>See the <fr:link href="https://wiki.debian.org/DebianTesting" type="external">Debian wiki</fr:link> for more information.</html:p><html:p>Everything on this page must be ran as <html:code>root</html:code>. Switch to <html:code>root</html:code> with <html:code>su -</html:code>.</html:p><fr:tree show-metadata="false"><fr:frontmatter><fr:authors><fr:author><fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link></fr:author></fr:authors><fr:date><fr:year>2019</fr:year><fr:month>2</fr:month><fr:day>22</fr:day></fr:date><fr:title text="Upgrade to testing">Upgrade to testing</fr:title></fr:frontmatter><fr:mainmatter><html:p>Run the following commands</html:p><html:pre>apt-get update &amp;&amp; apt-get upgrade -y
cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb https://deb.debian.org/debian testing main contrib non-free
deb https://deb.debian.org/debian-security testing/updates main contrib non-free
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre><html:p>Answer the questions. If you enable extra architectures (see below), you might want to limit the architectures of the main repositories to amd64 (assuming you use that). In this case do this instead:</html:p><html:pre>apt-get update &amp;&amp; apt-get upgrade -y
cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb [arch=amd64] https://deb.debian.org/debian testing main contrib non-free
deb [arch=amd64] https://deb.debian.org/debian-security testing/updates main contrib non-free
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre></fr:mainmatter></fr:tree><fr:tree show-metadata="false"><fr:frontmatter><fr:authors><fr:author><fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link></fr:author></fr:authors><fr:date><fr:year>2019</fr:year><fr:month>2</fr:month><fr:day>22</fr:day></fr:date><fr:title text="Make apt prefer testing by default">Make <fr:link href="/apt/" title="Advanced Package Tool" uri="https://xw.is/apt/" display-uri="apt" type="local">apt</fr:link> prefer testing by default</fr:title></fr:frontmatter><fr:mainmatter><html:p>If you are going to use multiple repos (e.g. debian-ports below), make testing the default like so:</html:p><html:pre>echo 'APT::Default-Release "testing";' &gt;/etc/apt/apt.conf.d/91prefertesting</html:pre></fr:mainmatter></fr:tree><fr:tree show-metadata="false"><fr:frontmatter><fr:authors><fr:author><fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link></fr:author></fr:authors><fr:date><fr:year>2019</fr:year><fr:month>2</fr:month><fr:day>22</fr:day></fr:date><fr:title text="Add support for new (hardware) ports">Add support for new (hardware) ports</fr:title></fr:frontmatter><fr:mainmatter><html:p>If you want to add support for new ports (e.g. RISC-V), do this:</html:p><html:pre>apt-get install -y debian-ports-archive-keyring
cat &lt;&lt;EOF &gt;&gt;/etc/apt/sources.list
deb https://deb.debian.org/debian-ports unstable main
deb https://deb.debian.org/debian-ports unreleased main
deb https://deb.debian.org/debian-ports experimental main
EOF
apt-get update</html:pre><html:p>Consider limiting the new ports to a specific architecture. Also consider limiting the main repositories to amd64 (if you use amd64). So do this instead:</html:p><html:pre>apt-get install -y debian-ports-archive-keyring
cat &lt;&lt;EOF &gt;&gt;/etc/apt/sources.list
deb [arch=riscv64] https://deb.debian.org/debian-ports unstable main
deb [arch=riscv64] https://deb.debian.org/debian-ports unreleased main
deb [arch=riscv64] https://deb.debian.org/debian-ports experimental main
EOF
apt-get update</html:pre></fr:mainmatter></fr:tree></fr:mainmatter></fr:tree>
<fr:tree show-metadata="false"><fr:frontmatter><fr:authors><fr:author><fr:link href="/aram/" title="Aram Hăvărneanu" uri="https://xw.is/aram/" display-uri="aram" type="local">Aram Hăvărneanu</fr:link></fr:author></fr:authors><fr:date><fr:year>2019</fr:year><fr:month>2</fr:month><fr:day>22</fr:day></fr:date><fr:title text="Upgrade to unstable">Upgrade to unstable</fr:title></fr:frontmatter><fr:mainmatter><html:p>Run the following commands:</html:p><html:pre>cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb http://deb.debian.org/debian unstable main
deb http://deb.debian.org/debian-debug unstable-debug main
deb http://deb.debian.org/debian-ports unstable main
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre><html:p>Then answer the questions. Consider limiting the architecture to amd64 (if that's what you use):</html:p><html:pre>cat &lt;&lt;EOF &gt;/etc/apt/sources.list
deb [arch=amd64] http://deb.debian.org/debian unstable main
deb [arch=amd64] http://deb.debian.org/debian-debug unstable-debug main
deb [arch=amd64] http://deb.debian.org/debian-ports unstable main
EOF
apt-get update
apt-get dist-upgrade -y
apt autoremove -y</html:pre></fr:mainmatter></fr:tree></fr:mainmatter>
        </fr:tree>
      </fr:mainmatter>
    </fr:tree>
    <fr:tree show-metadata="false" hidden-when-empty="true">
      <fr:frontmatter>
        <fr:authors />
        <fr:title text="Backlinks">Backlinks</fr:title>
      </fr:frontmatter>
      <fr:mainmatter />
    </fr:tree>
    <fr:tree show-metadata="false" hidden-when-empty="true">
      <fr:frontmatter>
        <fr:authors />
        <fr:title text="Related">Related</fr:title>
      </fr:frontmatter>
      <fr:mainmatter>
        <fr:tree show-metadata="true" expanded="false" toc="false" numbered="false">
          <fr:frontmatter>
            <fr:authors />
            <fr:uri>https://xw.is/apt/</fr:uri>
            <fr:display-uri>apt</fr:display-uri>
            <fr:route>/apt/</fr:route>
            <fr:title text="Advanced Package Tool">Advanced Package Tool</fr:title>
            <fr:taxon>Software</fr:taxon>
            <fr:meta name="external">https://wiki.debian.org/Apt</fr:meta>
          </fr:frontmatter>
          <fr:mainmatter>
            <html:p>The main package manager for <fr:link href="/debian/" title="Debian" uri="https://xw.is/debian/" display-uri="debian" type="local">Debian</fr:link> and its derivatives.</html:p>
          </fr:mainmatter>
        </fr:tree>
        <fr:tree show-metadata="true" expanded="false" toc="false" numbered="false">
          <fr:frontmatter>
            <fr:authors />
            <fr:uri>https://xw.is/debian/</fr:uri>
            <fr:display-uri>debian</fr:display-uri>
            <fr:route>/debian/</fr:route>
            <fr:title text="Debian">Debian</fr:title>
            <fr:taxon>Software</fr:taxon>
            <fr:meta name="external">https://www.debian.org</fr:meta>
          </fr:frontmatter>
          <fr:mainmatter>
            <html:p>Debian is a free and open source Linux distribution. Debian is one of the oldest operating systems based on the Linux kernel, and is the basis of many other Linux distributions.</html:p>
          </fr:mainmatter>
        </fr:tree>
      </fr:mainmatter>
    </fr:tree>
    <fr:tree show-metadata="false" hidden-when-empty="true">
      <fr:frontmatter>
        <fr:authors />
        <fr:title text="Contributions">Contributions</fr:title>
      </fr:frontmatter>
      <fr:mainmatter />
    </fr:tree>
  </fr:backmatter>
</fr:tree>
