<?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>PowerShell on Linux &#8211; TECH POINT MAGAZINE</title>
	<atom:link href="https://techpointmag.com/tag/powershell-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://techpointmag.com</link>
	<description>-Beyond Technology-</description>
	<lastBuildDate>Wed, 01 Mar 2023 16:07:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.12</generator>

<image>
	<url>https://techpointmag.com/wp-content/uploads/2019/06/cropped-tech-point-logo@2x-3-32x32.png</url>
	<title>PowerShell on Linux &#8211; TECH POINT MAGAZINE</title>
	<link>https://techpointmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">141627558</site>	<item>
		<title>How to Install PowerShell on Linux</title>
		<link>https://techpointmag.com/how-to-install-powershell-on-linux/</link>
		
		<dc:creator><![CDATA[Humphrey Mpairwe]]></dc:creator>
		<pubDate>Wed, 01 Mar 2023 16:06:33 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell on Linux]]></category>
		<guid isPermaLink="false">https://techpointmag.com/?p=16328</guid>

					<description><![CDATA[Over the years, Microsoft has grown to appreciate Opensource with Linux as its key focus, now, and you can easily install PowerShell on Linux without any license. At first, as it is with most Microsoft products, PowerShell was closed source, but later made opensource making available on Linux and macOS operating systems. The major difference [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Over the years, Microsoft has grown to appreciate Opensource with Linux as its key focus, now, and you can easily install PowerShell on Linux without any license. At first, as it is with most Microsoft products, PowerShell was closed source, but later made opensource making available on <a href="https://techpointmag.com/how-to-delete-files-on-linux-using-the-rm-command/" data-type="post" data-id="16238">Linux</a> and <a href="https://techpointmag.com/rename-bluetooth-devices-on-your-macbook-pro/" data-type="post" data-id="13795">macOS </a>operating systems.</p>



<p>The major difference you experience when you install PowerShell on Linux is the ability to run <a href="https://techpointmag.com/create-a-wifi-hotspot-on-windows-10-using-cmd/" data-type="post" data-id="14864">Windows</a>-cmd-like commands on your system. This is due to the fact that Linux runs Bash as its default shell, when you install PowerShell, you can make it the default, or simply use it to run your commands as you would on Windows.</p>



<p>The shell offers full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI) which makes it easy to carry out administrative tasks on Windows system in the same LAN environment. Likewise, the Common Information Model (CIM) enables remote management of the Linux systems where you have PowerShell installed.</p>



<p>To install PowerShell on Linux and use the .NET framework as your scripting language, you need to add the official Microsoft repositories to your system and install PowerShell as described below.</p>



<h2 class="wp-block-heading">Install PowerShell on Ubuntu</h2>



<p>In a new terminal session, run the following commands:</p>



<p>Update your system.</p>



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



<p>Install dependencies.</p>



<pre class="wp-block-preformatted">$ sudo install wget apt-transport-https software-properties-common -y</pre>



<p>Download the Microsoft production package for Ubuntu.</p>



<pre class="wp-block-preformatted">$ wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"</pre>



<p>> The above command will use your current distribution listed by the command <code>lsb_release -rs</code> to get the appropriate package.</p>



<p>Install the downloaded package.</p>



<pre class="wp-block-preformatted">$ sudo apt install ./packages-microsoft-prod.deb</pre>



<p>Update the system.</p>



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



<p>Install PowerShell.</p>



<pre class="wp-block-preformatted">$ sudo apt install powershell -y</pre>



<p>Verify that PowerShell is installed by checking the version.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Install PowerShell on Debian</h2>



<p>Update the system</p>



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



<p>Install dependencies.</p>



<pre class="wp-block-preformatted">$ sudo apt install -y wget apt-transport-https -y</pre>



<p>Download the Microsoft package for your Debian system.</p>



<pre class="wp-block-preformatted">$ wget https://packages.microsoft.com/config/debian/$(lsb_release -rs)/packages-microsoft-prod.deb</pre>



<p>Update the system.</p>



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



<p>Install PowerShell.</p>



<pre class="wp-block-preformatted">$ sudo apt install powershell -y</pre>



<p>Verify that PowerShell is installed on your Debian system.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Install PowerShell on Linux Mint</h2>



<p>Linux Mint is based on the Debian distribution just like Ubuntu, to install PowerShell on Linux Mint, download and install the latest package for Debian systems as below.</p>



<p>Update Linux Mint.</p>



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



<p>Download the latest Debian package.</p>



<pre class="wp-block-preformatted">$ wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb</pre>



<p>&gt; The above package downloads a Debian 11 package, if your Linux Mint system is up to date, consider using the latest Debian distribution package by replacing the distro number.</p>



<p>Install PowerShell on Linux Mint.</p>



<pre class="wp-block-preformatted">$ sudo apt install powershell</pre>



<p>Verify the install PowerShell version.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Install PowerShell on CentOS, AlmaLinux, RockyLinux, and RHEL distributions</h2>



<p>Depending on your CentOS, AlmaLinux, RockyLinux or Redhat Enterprise Linux (RHEL) version, follow the steps below to install PowerShell.</p>



<h3 class="wp-block-heading">CentOS stream 9, Rocky Linux 9, Alma Linux 9, RHEL 8</h3>



<p>Install Curl.</p>



<pre class="wp-block-preformatted">$ sudo dnf install curl -y</pre>



<p>Import the Microsoft Repository.</p>



<pre class="wp-block-preformatted">$ $ curl https://packages.microsoft.com/config/rhel/9.0/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo</pre>



<p>Update the system.</p>



<pre class="wp-block-preformatted">$ sudo dnf update</pre>



<p>Install PowerShell.</p>



<pre class="wp-block-preformatted">$ sudo dnf instal powershell -y</pre>



<h3 class="wp-block-heading">CentOS 8, RHEL 8, Rocky Linux 8, Alma Linux 8</h3>



<p>Import the Microsoft Repository.</p>



<pre class="wp-block-preformatted">$ curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo</pre>



<p>Update the system.</p>



<pre class="wp-block-preformatted">$ sudo yum update</pre>



<p>Install PowerShell.</p>



<pre class="wp-block-preformatted">$ sudo yum install powershell</pre>



<p>Verify that PowerShell is installed by checking the version.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Install PowerShell on Fedora Linux</h2>



<p>Update the system.</p>



<pre class="wp-block-preformatted">$ sudo dnf update</pre>



<p>Download the latest `rpm` package for your Fedora system.</p>



<pre class="wp-block-preformatted">$ wget https://packages.microsoft.com/config/fedora/$(lsb_release -rs)/packages-microsoft-prod.rpm</pre>



<p>Install the package.</p>



<pre class="wp-block-preformatted">$ sudo dnf install powershell</pre>



<p>Verify that PowerShell is installed.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Install PowerShell on OpenSuse</h2>



<p>Download the latest `rpm` packager for OpenSuse.</p>



<pre class="wp-block-preformatted">$ wget https://packages.microsoft.com/config/opensuse/$(lsb_release -rs)/packages-microsoft-prod.rpm</pre>



<p>Install the Package.</p>



<pre class="wp-block-preformatted">$ sudo zypper install packages-microsoft-prod.rpm</pre>



<p>Verify that PowerShell is installed.</p>



<pre class="wp-block-preformatted">$ pwsh --version</pre>



<h2 class="wp-block-heading">Conclusion</h2>



<p>In this article, you have managed to install PowerShell on Linux. If you’re a Windows administrator, PowerShell makes it easy to run commands and automate your tasks as you would on a Windows server. However, the bash shell will remain as the default Shell unless you change it when adding new users.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">16328</post-id>	</item>
	</channel>
</rss>
