Follow these steps to install PowerShell on Ubuntu:
- Go to https://github.com/powershell/powershell.
- Scroll down to the table that contains the list of Linux distributions officially supported by the PowerShell team.
- Click on the relevant link, that is, .deb under Downloads (stable) or Downloads (preview).
- Read the installation instructions if you need additional information.
- Use dpkg to install the package:
$ sudo dpkg -i powershell-version-os-osversion_architecture.deb$ sudo apt install -f