Difference between revisions of "Pwsh"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | # Prefered | ||
+ | ``` | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install -y wget apt-transport-https software-properties-common | ||
+ | source /etc/os-release | ||
+ | |||
+ | wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb | ||
+ | sudo dpkg -i packages-microsoft-prod.deb | ||
+ | rm packages-microsoft-prod.deb | ||
+ | sudo apt-get update | ||
+ | |||
+ | sudo apt-get install -y powershell | ||
+ | pwsh | ||
+ | ``` | ||
+ | |||
# Must be sudo | # Must be sudo | ||
``` | ``` |
Latest revision as of 16:26, 20 February 2024
Prefered
sudo apt-get update sudo apt-get install -y wget apt-transport-https software-properties-common source /etc/os-release wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update sudo apt-get install -y powershell pwsh
Must be sudo
sudo pwsh Install-Module -Name PSWSMan Install-WSMan
Trash
pwsh -Command 'Install-Module -Name PSWSMan' sudo pwsh -Command 'Install-WSMan'