Brief Bytes: Microsoft has open sourced the code of its command line shell and scripting language PowerShell, bringing this automation framework to Linux and OS X. By downloading the suitable package deal from PowerShell’s GitHub web page and working a few instructions, you may simply set up the appliance on Ubuntu, CentOS, and OS X.
Last week, for the open supply lovers, one other nice information got here from the home of Microsoft. The corporate made the official announcement that it’s open sourcing its command line shell and scripting language PowerShell, sharing the code for OS X and Linux distros on GitHub. For many who don’t know, PowerShell is a broadly used automation framework that’s construct on the .NET framework.
At the moment, other than Home windows working system, PowerShell is out there on Ubuntu, CentOS, RHEL, and OS X. Microsoft has additionally promised that this preliminary launch will probably be adopted by help for additional distros.
Right now, I’m going to inform you how to get PowerShell up and working in your Linux distro and OS X working system.
How you can set up PowerShell in Linux — Ubuntu, and CentOS
To get began with the PowerShell set up course of, it’s worthwhile to go to PowerShell’s Github page and discover the suitable package deal for set up. Relying upon your working system, obtain the packages:
Putting in PowerShell on Ubuntu 16.04:
After downloading the package deal ending with 16.04.1_amd64.deb, run the next instructions in a Terminal window:
Putting in PowerShell on Ubuntu 14.04:
After getting downloaded the package deal ending with 14.04.1_amd64.deb, run the next instructions in a Terminal window:
sudo apt-get set up libunwind8 libicu52
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb
Putting in PowerShell on CentOS 7:
Obtain the package deal ending with el7.centos.x86_64.rpm and run the next command in your Terminal:
sudo yum set up /path/to/powershell.rpm
How you can set up PowerShell in OS X?
For putting in Microsoft PowerShell on a Mac, you don’t have to run any instructions in your terminal. Merely obtain the package deal ending with .pkg and double-click the file.
How you can run/launch Powershell on OS or Linux?
After efficiently putting in PowerShell in your Linux or OS X system, merely open Terminal and run the next command:
Listed here are the screenshots of my techniques:
For leaving the PowerShell window, kind “exit” command and press Enter. You may also shut the terminal window to finish your session.
If you’re fascinated with grabbing the supply code or getting extra official documentation, go to PowerShell GitHub page.
Did you discover this text useful? Don’t neglect to drop your suggestions within the feedback part beneath.
Additionally Learn: Microsoft Open Sources “Checked C” — An Extended Version Of C