How To Install PowerShell on Linux

One of the great tools that we have as people of the IT world is Windows PowerShell.

In this tutorial we will see how we can use this valuable tool in these two powerful operating systems.

What is Windows PowerShell?

Windows PowerShell is basically a management and control tool that allows us to manage various parameters and system configurations.

Windows PowerShell is designed to run on Microsoft's own operating systems, but now thanks to a new project we can run PowerShell in Linux environments (Ubuntu, CentOS, RHEL) and Mac OS.

Download PowerShell Linux or Mac

The first step we must take is to go to the following link and download the corresponding package to the desired operating system.

https://github.com/PowerShell/PowerShell/releases/

We must take into account the package to be downloaded according to the version:

Ubuntu 14.04: ” 14.04.1_amd64.deb “.

Ubuntu 16.04: ” 16.04.1_amd64.deb “.

Ubuntu 17.04: ” 17.04.1_amd64.deb “.

CentOS 7 & RHEL 7: ” el7.centos.x86_64.rpm ”

Install and run PowerShell on Linux

For this tutorial, we will install PowerShell on a computer with Ubuntu 16.04.

The first step, for this version, is to download the powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb package.

https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

Once the package is downloaded, we open the terminal in Ubuntu 16 and introduce the following syntax:

sudo apt-get install libunwind8 libicu55

sudo dpkg -i /path_to_file.deb

In this case, it will be as follows:

sudo apt-get install libunwind8 libicu55

sudo dpkg -i ~/Downloads/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

Once we complete this action, just write PowerShell in the terminal to start the console.

In case we use Ubuntu 14 we must enter the following syntax:

sudo apt-get install libunwind8 libicu52

sudo dpkg -i /path_to_file.deb

If we use CentOS 7 or RHEL we will use the following syntax:

sudo yum install /Ruta al paquete.rpm

As we see in this simple way we can run Windows PowerShell in a Linux environment .

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *