<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linux Archivi &#8226; CHIT</title>
	<atom:link href="https://christeninformatica.ch/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Tue, 01 Dec 2026 04:59:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>
	<item>
		<title>How To Use Old Versions of GCC on openSUSE Leap 16.1</title>
		<link>https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/</link>
					<comments>https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/#respond</comments>
		
		<dc:creator><![CDATA[Ch IT]]></dc:creator>
		<pubDate>Tue, 01 Dec 2026 04:22:25 +0000</pubDate>
				<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gcc-10]]></category>
		<category><![CDATA[gcc-7]]></category>
		<category><![CDATA[gcc-9]]></category>
		<category><![CDATA[ggc-8]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[openSUSE Leap 16.1]]></category>
		<category><![CDATA[update-alternatives]]></category>
		<category><![CDATA[versions]]></category>
		<guid isPermaLink="false">https://christeninformatica.ch/?p=2081</guid>

					<description><![CDATA[<p>How To Use Multiple Versions of GCC on openSUSE Leap 16.1 To install old versions of gcc you can download the RPM packets from old repositories and install them. For example, if you want to install the gcc-7 version of GCC, you search for the packets and their dependencies in the oss repository of openSUSE...</p>
<p class="more-link-wrap"><a href="https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/" class="more-link">Read More<span class="screen-reader-text"> &#8220;How To Use Old Versions of GCC on openSUSE Leap 16.1&#8221;</span> &#187;</a></p>
<p>L'articolo <a href="https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/">How To Use Old Versions of GCC on openSUSE Leap 16.1</a> sembra essere il primo su <a href="https://christeninformatica.ch">CHIT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>How To Use Multiple Versions of GCC on openSUSE Leap 16.1</h2>
<p>To install old versions of gcc you can download the RPM packets from old repositories and install them.</p>
<p>For example, if you want to install the gcc-7 version of GCC, you search for the packets and their dependencies in the oss repository of openSUSE 15.</p>
<p>You can download the files and install the RPM packets.</p>
<div class="comandi">
<blockquote>
<pre>
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libisl15-0.18-lp150.1.49.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libtsan0-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/cpp7-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/gcc7-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libasan4-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libmpx2-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libubsan0-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libcilkrts5-7.3.1+r258812-lp150.2.10.x86_64.rpm
:~&gt; wget https://download.opensuse.org/distribution/leap/15.0/repo/oss/x86_64/libmpxwrappers2-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i libtsan0-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i libisl15-0.18-lp150.1.49.x86_64.rpm
# rpm -i cpp7-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i libubsan0-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i libmpx2-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i libasan4-7.3.1+r258812-lp150.2.10.x86_64.rpm
# rpm -i gcc7-7.3.1+r258812-lp150.2.10.x86_64.rpm
</pre>
</blockquote>
</div>
<h2>Update-alternatives &#8211; How To Use Multiple Versions Of GCC</h2>
<p>Now, to be able to use multiple versions of GCC on Linux you have to use update-alternatives.</p>
<div class="comandi">
<blockquote>
<pre>
:~> which gcc-7
/bin/gcc-7
:~> 
# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 20
# update-alternatives --install /usr/bin/gcc gcc /bin/gcc-7 40
# update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 60
# update-alternatives --set cc /usr/bin/gcc
# update-alternatives --config gcc
</pre>
</blockquote>
</div>
<p>The version you want in auto mode is the one with the highest number and it will be used automatically. To check the version in use you can run the following command:</p>
<div class="comandi">
<blockquote>
<pre>
:~> gcc --version
</pre>
</blockquote>
</div>
<p><img decoding="async" src="https://christeninformatica.ch/media/update-alternatives-config-gcc-versions-linux.jpg" alt="Update-alternatives - How to use old versions of GCC" /></p>
<p>L'articolo <a href="https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/">How To Use Old Versions of GCC on openSUSE Leap 16.1</a> sembra essere il primo su <a href="https://christeninformatica.ch">CHIT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://christeninformatica.ch/how-to-use-old-versions-gcc-opensuse-leap-16-linux-update-alternatives/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
