<?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>computers Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/computers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 28 Jan 2021 21:09:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Spack on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-spack-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-spack-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 01 Feb 2021 05:08:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[spack]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28036</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Spack on Ubuntu 20.04. In case you don’t know what Sack is, we’ll tell you about it here too. According to the official website of Spack, Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. Spack isn’t [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-spack-ubuntu-20-04/">Install Spack on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Spack on Ubuntu 20.04. In case you don’t know what Sack is, we’ll tell you about it here too.</p>



<p>According to the official <a href="https://spack.io/about/" target="_blank" rel="noreferrer noopener">website of Spack</a>,</p>



<blockquote class="wp-block-quote"><p>Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. Spack isn’t tied to a particular language; you can build a software stack in Python or R, link to libraries written in C, C++, or Fortran, and easily swap compilers or target specific microarchitectures.</p></blockquote>



<p>This makes it a tool for a very specific sector but also for users who need a similar tool. With Spack, you can build a package with multiple versions, configurations, platforms, and compilers, and all of these builds can coexist on the same machine.</p>



<p>For such a professional tool, it’s very easy to install on Ubuntu 20.04</p>



<h2 id="install-spack-on-ubuntu-20.04"><a href="#install-spack-on-ubuntu-20.04" name="install-spack-on-ubuntu-20.04"></a>Install Spack on Ubuntu 20.04</h2>



<p>Before you start, update all the operating system packages by running the following commands in the terminal:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>After that, install <code>git</code> and the Ubuntu package <a href="https://www.osradar.com/install-development-build-tools-fedora/" target="_blank" rel="noreferrer noopener">building tools</a>.</p>



<pre class="wp-block-preformatted">sudo apt install git build-essential</pre>



<p>Once the installation is finished, it’s time to install Spack.</p>



<p>To do this, you can use git and specify a directory where you want to save the archive.</p>



<pre class="wp-block-preformatted">git clone https://github.com/spack/spack ~/.apps/spack/Spack</pre>



<p>In my case, I have chosen <code>~/.apps/spack/Spack</code> but you can choose another path.</p>



<p>Now, to use Spack from any location at the prompt, you have to add this folder to the <code>PATH</code>.</p>



<pre class="wp-block-preformatted">echo '. ~/.apps/spack/Spack/Spack/share/spack/setup-env.sh' >> ~/.bash_profile</pre>



<p>Then, apply the changes by running</p>



<pre class="wp-block-preformatted">source ~/.bash_profile</pre>



<p>And we can start using it, for example, it shows the installed version:</p>



<pre class="wp-block-preformatted">spack -V
0.16.0-1053-f28026c040</pre>



<h2 id="using-spack-on-ubuntu-20.04"><a href="#using-spack-on-ubuntu-20.04" name="using-spack-on-ubuntu-20.04"></a>Using Spack on Ubuntu 20.04</h2>



<p>The tool is quite simple to use, to install a program you just need to run</p>



<pre class="wp-block-preformatted">spack install [program_name]</pre>



<p>Also, you can install the specific version of a program with the help of the <code>@</code> sign.</p>



<pre class="wp-block-preformatted">spack install [program_name]@version</pre>



<p>Now to know the version list of a program, you can use versions</p>



<pre class="wp-block-preformatted">spack versions [program_name]</pre>



<p>If you want to know which packages or programs are available, you can do so with the list command</p>



<pre class="wp-block-preformatted">spack list</pre>



<p>You can even filter them using a wildcard</p>



<pre class="wp-block-preformatted">spack list 'py-*'</pre>



<p>In this case, all packages starting with <code>py-</code> will be shown.</p>



<p>To uninstall packages we can use the same syntax as install but with the uninstall command</p>



<pre class="wp-block-preformatted">spack uninstall [program_name]</pre>



<p>Or for a specific version:</p>



<pre class="wp-block-preformatted">spack uninstall [program_name]@version</pre>



<p>Also, it is useful to remove its dependencies with the <code>-R</code> option.</p>



<pre class="wp-block-preformatted">spack uninstall -R [program_name]</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Thanks to this post, you now know how to install Spack on Ubuntu 20.04 which is a tool used at a scientific level. It is quite easy to use and to install for all it does.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-spack-ubuntu-20-04/">Install Spack on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-spack-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
