11---
22description : How to install PowerShell on Debian Linux
3- ms.date : 03/18 /2026
3+ ms.date : 03/31 /2026
44title : Install PowerShell 7 on Debian
55---
66# Install PowerShell 7 on Debian
77
88There are multiple package versions of PowerShell 7 that can be installed. This article focuses on
99installing the latest stable release package. For more information about the package versions, see
10- the [ PowerShell Support Lifecycle] [ 05 ] article.
10+ the [ PowerShell Support Lifecycle] [ 06 ] article.
1111
1212Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
1313of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
1414versions replace existing previous preview versions. If you need to run PowerShell 7.5 side-by-side
15- with a previous version, reinstall the previous version using the [ binary archive] [ 04 ] method.
15+ with a previous version, reinstall the previous version using the [ binary archive] [ 05 ] method.
1616
1717## Choose an installation method
1818
1919On Debian Linux, you can install PowerShell using the universal ` .deb ` package from the Microsoft
20- package repository or by downloading a file from the GitHub [ releases] [ 01 ] page.
20+ package repository or by downloading a file from the GitHub [ releases] [ 02 ] page.
2121
2222### Install PowerShell 7 from the Package Repository
2323
2424Microsoft builds and supports a variety of software products for Linux systems and makes them
2525available via Linux packaging clients (apt, dnf, yum, etc). These Linux software packages are hosted
26- on the _ Linux package repository for Microsoft products_ , [ https://packages.microsoft.com ] [ 02 ] , also
26+ on the _ Linux package repository for Microsoft products_ , [ https://packages.microsoft.com ] [ 03 ] , also
2727known as _ PMC_ .
2828
2929Installing PowerShell from PMC is the preferred method of installation.
3030
3131> [ !NOTE]
3232> This script only works for supported versions of Debian that have a package published to the
33- > Microsoft package repository.
33+ > Microsoft package repository. For other supported versions of Debian, use the
34+ > [ manual installation method] [ 01 ] .
3435
3536``` sh
3637#! /bin/bash
@@ -131,7 +132,7 @@ run `pwsh-preview`.
131132The profiles respect PowerShell's per-host configuration, so the default host-specific profiles
132133exists at ` Microsoft.PowerShell_profile.ps1 ` in the same locations.
133134
134- PowerShell respects the [ XDG Base Directory Specification] [ 03 ] on Linux.
135+ PowerShell respects the [ XDG Base Directory Specification] [ 04 ] on Linux.
135136
136137## Uninstall PowerShell 7
137138
@@ -150,8 +151,9 @@ installation available from other third-party sources. While those tools and met
150151Microsoft can't support those methods.
151152
152153<!-- link references -->
153- [ 01 ] : https://github.com/PowerShell/PowerShell/releases
154- [ 02 ] : https://packages.microsoft.com
155- [ 03 ] : https://specifications.freedesktop.org/basedir/latest/
156- [ 04 ] : install-other-linux.md#binary-archives
157- [ 05 ] : PowerShell-Support-Lifecycle.md
154+ [ 01 ] : #manually-download-and-install-powershell-7
155+ [ 02 ] : https://github.com/PowerShell/PowerShell/releases
156+ [ 03 ] : https://packages.microsoft.com
157+ [ 04 ] : https://specifications.freedesktop.org/basedir/latest/
158+ [ 05 ] : install-other-linux.md#binary-archives
159+ [ 06 ] : PowerShell-Support-Lifecycle.md
0 commit comments