This is Our Old blog with useful tutorials, We'll start posting tutorial In forum soon, please use this forum as blog is discontinued but will not been taken down Link to Forum
aapanelCentosControl PanelCWPLinuxVesta CP

Install PowerShell In Centos 8 Stream/CWP/AlmaLinux/RockyLinux/OracleLinux/EL8/EL7

In this tutorial we’ll Lear How you can easily install PowerShell in Centos 7/Centos 8 Stream/CWP Linux server PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.

Command-line Shell

PowerShell is a modern command shell that includes the best features of other popular shells. Unlike most shells that only accept and return text, PowerShell accepts and returns .NET objects. The shell includes the following features:

  • Robust command-line history
  • Tab completion and command prediction
  • Supports command and parameter aliases
  • Pipeline for chaining commands
  • In-console help system, similar to Unix man pages

Centos 7/EL7 :

curl | sudo tee /etc/yum.repos.d/microsoft.repo
yum clean all
yum install -y powershell

Centos 8 Stream/CWP/AlmaLinux/RockyLinux/OracleLinux/EL8 :

curl | sudo tee /etc/yum.repos.d/microsoft.repo
yum clean all
yum install -y powershell

To run the PowerShell just run this command :


example :

[root@centos]# pwsh
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
Type 'help' to get help.

PS /root>

Sandeep B.

I'm a system admin and php developer and currently working as System Admin In CWP Control panel, expertise in Linux and Windows administration RHEL certified admin.

Related Articles

Back to top button