pwsh
from a terminal. Run pwsh-preview
if you installed a Preview release./usr/local/microsoft/powershell/6
folder is replaced by /usr/local/microsoft/powershell/7
.tar.gz
archive, but you would need to set up the necessary dependencies based onthe OS in separate steps.sudo apt-get install powershell
.powershell-lts_7.0.3-1.ubuntu.16.04_amd64.deb
from the releases pageonto the Ubuntu machine.dpkg -i
command fails with unmet dependencies. The next command, apt-get install -f
resolves these issues then finishes configuring the PowerShell package.sudo apt-get install powershell
.powershell-lts_7.0.3-1.ubuntu.18.04_amd64.deb
from the releases pageonto the Ubuntu machine.dpkg -i
command fails with unmet dependencies. The next command, apt-get install -f
resolves these issues then finishes configuring the PowerShell package.snapd
. For instructions, see Snap Package.snapd
. For instructions, see Snap Package.sudo apt-get install powershell
.sudo apt-get install powershell
.powershell-lts_7.0.3-1.debian.9_amd64.deb
from the releases page ontothe Debian machine.powershell-7.0.3-linux-x64.tar.gz
from the releases pageonto the Debian machine.powershell-7.0.3-linux-alpine-x64.tar.gz
from the releases page ontothe Alpine machine.sudo yum update powershell
.powershell-lts-7.0.3-1.rhel.7.x86_64.rpm
from the releasespage onto the CentOS machine.sudo yum update powershell
.powershell-lts-7.0.3-1.rhel.7.x86_64.rpm
from the releases page onto theRed Hat Enterprise Linux machine.powershell-7.0.3-1.rhel.7.x86_64.rpm
from the releases page onto theFedora machine.snapd
is required to run snaps. Use these instructionsto make sure you have snapd
installed.sudo snap refresh powershell
or sudo snap refresh powershell-preview
.pwsh
binary.powershell
to powershell-preview
.Distribution(s) | Stable Command | Preview Command |
---|---|---|
Ubuntu, Debian | sudo apt-get install -y powershell | sudo apt-get install -y powershell-preview |
CentOS, RedHat | sudo yum install -y powershell | sudo yum install -y powershell-preview |
Fedora | sudo dnf install -y powershell | sudo dnf install -y powershell-preview |
~/.dotnet/tools
to your PATH
environment variable. However, thecurrently running shell does not have the updated PATH
. You should be able to start PowerShellfrom a new shell by typing pwsh
.tar.gz
archives are provided for Linux platforms to enable advanced deploymentscenarios.OS | Dependencies |
---|---|
Ubuntu 16.04 | libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.0, libicu55 |
Ubuntu 17.10 | libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.0, libicu57 |
Ubuntu 18.04 | libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.0, libicu60 |
Debian 8 (Jessie) | libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.0, libicu52 |
Debian 9 (Stretch) | libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.2, libicu57 |
CentOS 7 Oracle Linux 7 RHEL 7 | libunwind, libcurl, openssl-libs, libicu |
openSUSE 42.3 | libcurl4, libopenssl1_0_0, libicu52_1 |
openSUSE Leap 15 | libcurl4, libopenssl1_0_0, libicu60_2 |
Fedora 27 Fedora 28 | libunwind, libcurl, openssl-libs, libicu, compat-openssl10 |
tar.gz
archive.$PSHOME
is /opt/microsoft/powershell/7/
~/.config/powershell/profile.ps1
$PSHOME/profile.ps1
~/.local/share/powershell/Modules
/usr/local/share/powershell/Modules
$PSHOME/Modules
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
Microsoft.PowerShell_profile.ps1
in the same locations.