<?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>how to install powershell on centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-powershell-on-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 01 Jan 2020 22:07:50 +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>How To Install PowerShell on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 21:51:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install powershell on centos 8]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[powershell installation on centos]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17068</guid>

					<description><![CDATA[<p>PowerShell is a scripting language basically written for Windows Operating Systems but also it supports Linux/Unix systems. For users who were using Windows and new to Linux, can also install PowerShell. PowerShell is well known Object Oriented Scripting language.In this tutorial, you will cover the installation of PowerShell on your Linux system like CentOS 8 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/">How To Install PowerShell on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>PowerShell is a scripting language basically written for Windows Operating Systems but also it supports Linux/Unix systems. For users who were using Windows and new to Linux, can also install PowerShell. PowerShell is well known Object Oriented Scripting language.In this tutorial, you will cover the installation of PowerShell on your Linux system like CentOS 8 / RHEL 8. Just follow the below steps to easily Install PowerShell on CentOS / RHEL 8.</p>



<h2><strong>Step 1: Adding PowerShell Repository</strong></h2>



<p>As PowerShell is not available on CentOS 7 / 8 operating system, we have to add it from Microsoft repositories by running</p>



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



<p>Now, move towards the installation of PowerShell</p>



<h3><strong>Step 2: Installing PowerShell on CentOS 7 / 8</strong></h3>



<p>Fire the given command to get install PowerShell on RHEL / CentOS 7 / 8.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo yum -y install powershell<br> packages-microsoft-com-prod                            297 kB/s | 3.9 MB     00:13    <br> Last metadata expiration check: 0:00:09 ago on Fri 27 Dec 2019 01:48:08 PM PKT.<br> Dependencies resolved.<br>  Package        Arch       Version               Repository                       Size<br> Installing:<br>  powershell     x86_64     6.2.3-1.rhel.7        packages-microsoft-com-prod      54 M<br> Transaction Summary<br> Install  1 Package<br> Total download size: 54 M<br> Installed size: 54 M<br> Downloading Packages:<br> powershell-6.2.3-1.rhel.7.x86_64.rpm                   1.1 MB/s |  54 MB     00:47    <br> Total                                                  1.1 MB/s |  54 MB     00:47     <br> warning: /var/cache/dnf/packages-microsoft-com-prod-687ce8c973efa9d3/packages/powershell-6.2.3-1.rhel.7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID be1229cf: NOKEY<br> packages-microsoft-com-prod                            358  B/s | 983  B     00:02    <br> Importing GPG key 0xBE1229CF:<br>  Userid     : "Microsoft (Release signing) <a href="mailto:gpgsecurity@microsoft.com">gpgsecurity@microsoft.com</a>"<br>  Fingerprint: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF<br>  From       : https://packages.microsoft.com/keys/microsoft.asc<br> Key imported successfully<br> Running transaction check<br> Transaction check succeeded.<br> Running transaction test<br> Transaction test succeeded.<br> Running transaction<br>   Preparing        :                                                               1/1 <br>   Installing       : powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br>   Running scriptlet: powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br>   Verifying        : powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br> Installed:<br>   powershell-6.2.3-1.rhel.7.x86_64                                                     <br> Complete!<br> [sabi@localhost ~]$ </pre>



<p>Use the following command to get more information about powershell package.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ rpm -qi powershell<br> Name        : powershell<br> Version     : 6.2.3<br> Release     : 1.rhel.7<br> Architecture: x86_64<br> Install Date: Fri 27 Dec 2019 01:49:13 PM PKT<br> Group       : shells<br> Size        : 156967268<br> License     : MIT License<br> Signature   : RSA/SHA256, Wed 11 Sep 2019 03:16:07 AM PKT, Key ID eb3e94adbe1229cf<br> Source RPM  : powershell-6.2.3-1.rhel.7.src.rpm<br> Build Date  : Wed 11 Sep 2019 03:11:50 AM PKT<br> Build Host  : e7b300f89b4a<br> Relocations : / <br> Packager    : PowerShell Team <a href="mailto:PowerShellTeam@hotmail.com">PowerShellTeam@hotmail.com</a><br> Vendor      : Microsoft Corporation<br> URL         : https://microsoft.com/powershell<br> Summary     : PowerShell is an automation and configuration management platform.<br> Description :<br> PowerShell is an automation and configuration management platform.<br> It consists of a cross-platform command-line shell and associated scripting language.</pre>



<h3><strong>Step 3: Start and Use PowerShell on CentOS / RHEL 7 / 8</strong></h3>



<pre class="wp-block-verse">[sabi@localhost ~]$ pwsh<br> PowerShell 6.2.3<br> Copyright (c) Microsoft Corporation. All rights reserved.<br> https://aka.ms/pscore6-docs<br> Type 'help' to get help.<br> PS /home/sabi&gt; </pre>



<p>Now, try to run few commands to verify our Installation.</p>



<pre class="wp-block-verse">PS /home/sabi&gt; pwd<br> Path<br> /home/sabi<br> PS /home/sabi&gt; mkdir /tmp/test<br> PS /home/sabi&gt; cd /tmp/test<br> PS /tmp/test&gt; pwd<br> Path<br> /tmp/test<br> PS /tmp/test&gt; get-process | more<br> NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName<br>  ------    -----      -----     ------      --  -- -----------<br>       0     0.00       0.04       0.00    1213 …85 (sd-pam)<br>       0     0.00       0.04       0.00    2540 …32 (sd-pam)<br>       0     0.00       0.96       0.15     974 974 accounts-daemon<br>       0     0.00       0.00       0.00     122   0 acpi_thermal_pm<br>       0     0.00       0.41       0.00     854 854 alsactl<br>       0     0.00       0.97       0.02    1993 …93 at-spi-bus-laun<br>       0     0.00       0.96       0.01    2672 …72 at-spi-bus-laun<br>       0     0.00       0.00       0.01    2001 …93 at-spi2-registr<br>       0     0.00       0.44       0.03    2680 …72 at-spi2-registr<br>       0     0.00       0.00       0.00     407   0 ata_sff<br>       0     0.00       0.41       0.01    1077 …77 atd<br>       0     0.00       0.30       0.06     815 815 auditd<br>       0     0.00       0.75       0.11     850 850 avahi-daemon<br>       0     0.00       0.03       0.00     950 850 avahi-daemon<br>       0     0.00       3.57       0.06    4196 …96 bash<br>       0     0.00       1.38       0.03    2045 …45 boltd<br>       0     0.00       0.29       0.06     874 873 chronyd<br>       0     0.00       0.97       0.13    2145 …45 colord<br>       0     0.00       0.00       0.00      13   0 cpuhp/0<br>       0     0.00       0.48       0.20    1091 …91 crond<br>       0     0.00       0.00       0.00      24   0 crypto<br>       0     0.00       0.79       0.05    1063 …63 cupsd<br>       0     0.00       3.22       1.81     855 855 dbus-daemon<br>       0     0.00       0.88       0.20    1602 …02 dbus-daemon<br> --More--</pre>



<p>That is enough to substantiate our PowerShell functioning on CentOS / RHEL 8. Now you can make use of PowerShell to perform various functions &amp; scripts.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/">How To Install PowerShell on CentOS 8 / RHEL 8</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/how-to-install-powershell-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
