Quantcast
Channel: Matthew Dowst – Catapult Systems
Viewing all articles
Browse latest Browse all 39

Install PowerShell in CentOS 7 Core

$
0
0

Installing PowerShell for Linux is a pretty straight forward process, but can be kind of a pain if you are using a core install. Below are tips and directions for installing PowerShell in CentOS 7 core.

In order to download the PowerShell install files you will need wget. If you don’t have it installed you can install it using the following command.

sudo yum install wget

Once wget is installed you are ready to download PowerShell. In order to download from wget you just need to supply the URL of the file to download. However, the URL to download PowerShell is https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm. After attempting to type in this URL multiple times, I decided to find a better way. That better way is to use a Tiny URL. I created the URL http://tinyurl.com/hua9mtm that redirects to the full download link. So all you need to do is use wget to download the install file, rename it to an RPM file, then install it. You may want to make your own Tiny URL if you want to install a different version. The commands to do this are below.

wget http://tinyurl.com/hua9mtm
mv hua9mtm powershell.rpm
sudo yum install powershell.rpm

 

linuxps3

Once the installer completes you can type in powershell to launch it. From there you are in the PowerShell environment. I typed in Get-Command to confirm everything installed correctly, and to get a list of the commands available.

linuxps5


Viewing all articles
Browse latest Browse all 39

Trending Articles