From the course: Complete Guide to PowerShell 7

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Install PowerShell 7 on Linux

Install PowerShell 7 on Linux - PowerShell Tutorial

From the course: Complete Guide to PowerShell 7

Install PowerShell 7 on Linux

- [Instructor] So, let's talk about installing PowerShell on Linux. For Ubuntu users, you can install PowerShell by first setting up the necessary prerequisites. You can use the wget command to add the Microsoft package repository, update your package sources, and then just install the PowerShell using the apt-get commands. This approach ensures a smooth installation with the latest available version. So as you can see, we're using install wget, then we're going to call wget, and then just install the package, and then install PowerShell. Depending on your Linux distribution, the installation method will vary. CentOS and RHEL users will use the yum command to do the install. If you're using Fedora, you will use the dnf. And Arch Linux users will install with pacman. Each command installs PowerShell using the system's package manager, ensuring easy updating and compatibility. Once it's installed, PowerShell 7 can be launched by typing the same as before, the pwsh in the terminal. This…

Contents