Netwrix 1Secure는 데이터와 아이덴티티 전반에 걸쳐 통합된 가시성을 제공합니다 - 14일간 무료로 전체 액세스가 가능합니다.무료 평가판 시작

리소스 센터블로그

PowerShell 7 다운로드 및 설치

PowerShell 7 다운로드 및 설치

Aug 25, 2025

PowerShell 7은 .NET Core 기반의 크로스플랫폼 자동화 프레임워크로, 향상된 성능, 병렬 처리, 그리고 Windows PowerShell 모듈과의 폭넓은 호환성을 제공합니다. Windows, macOS, Linux 및 컨테이너에서 실행되며, 패키지 관리자, MSI, ZIP, Docker 등 유연한 설치 옵션을 지원합니다. 장기 지원(Long-Term Support) 버전은 엔터프라이즈 환경에 안정성을 제공하고, 프리뷰 빌드는 새로운 기능을 조기에 이용할 수 있게 해줍니다.

PowerShell 7 소개

PowerShell 7은 Windows PowerShell의 기능을 기반으로 확장한 최신 크로스 플랫폼(Windows, macOS, Linux) 자동화 및 구성 관리 도구입니다. Windows 전용 .NET Framework에 의존했던 이전 버전의 PowerShell과 달리 .NET Core 런타임을 기반으로 합니다. 이러한 전환을 통해 호환성, 성능, 유연성 측면에서 큰 개선이 가능해졌습니다.

PowerShell 7의 추가 기능 및 개선 사항은 다음을 포함합니다:

  • PowerShell 7에는 ForEach-Object -Parallel,이 도입되어 사용자가 병렬 파이프라인에서 여러 항목을 동시에 처리할 수 있습니다. 이는 병렬화 가능한 워크로드의 실행 시간을 크게 줄여줍니다.
  • Get-Help와 같은 명령의 업데이트를 포함해 새로운 cmdlet과 API가 추가되면서 스크립팅 환경이 더 풍부하고 유연해집니다.
  • 새로운 -ErrorAction-ErrorVariable 옵션은 스크립트에서 오류 처리를 더 잘 제어할 수 있게 해줍니다.
  • PowerShell 7에는 Windows 호환성 계층이 포함되어 있어, Windows PowerShell용으로 제작된 대부분의 모듈(예: Active Directory 또는 Exchange 모듈)이 암묵적 원격(implicit remoting)을 사용해 Windows 기반 환경에서 실행될 수 있습니다.
  • PowerShell 7은 Windows PowerShell과 나란히 설치할 수 있어, 기존 워크플로를 중단하지 않고 단계적으로 마이그레이션할 수 있습니다. 또한 많은 레거시 스크립트를 최소한의 수정으로 실행할 수 있습니다. 모든 오래된 모듈이 네이티브로 동작하는 것은 아니지만, 호환성 계층이 상당한 범위를 커버해 줍니다.
  • PowerShell 7은 PowerShell 확장을 통해 Visual Studio Code와 매끄럽게 통합되며, IntelliSense, 디버깅, 통합 테스트 같은 기능을 제공합니다.
  • 마지막으로 PowerShell 7은 GitHub에서 오픈 소스 프로젝트로 개발 및 유지 관리되고 있습니다.

Windows PowerShell과 PowerShell 7의 차이점을 알아보려면 Check, Update, and Choose a PowerShell Version 문서를 참조하세요.

Active Directory 보안 모범 사례

자세히 알아보기

PowerShell 7 다운로드

PowerShell 7을 다운로드하기 전에 사용 가능한 버전과 그 차이점을 알아야 합니다.

사용 가능한 PowerShell 7 버전

Microsoft는 PowerShell 7에 대해 세 가지 유형의 릴리스를 제공합니다.

안정적인 릴리스는 운영 환경에서 사용할 준비가 된 것으로 간주되는 PowerShell의 일반 공급(General Availability) 버전입니다. LTS로 지정되지 않은 한 이러한 버전은 18개월 동안 지원됩니다.

안정적인 릴리스

최신 안정 릴리스: PowerShell 7.4.6(2024년 10월 22일 릴리스). 이 버전은 .NET 8.0을 기반으로 하며, Long-Term Support (LTS) 릴리스로 지정되어 지원이 2026년 11월까지 연장됩니다.

LTS (장기 지원) 릴리스

LTS 버전은 비-LTS 릴리스에 비해 더 긴 기간(3년) 동안 지원됩니다. 이러한 버전은 장기적인 안정성과 호환성이 매우 중요한 기업 및 환경을 위해 предназнач되어 있습니다.

현재 LTS 릴리스: PowerShell 7.4, 2026년 11월까지 지원

프리뷰 릴리스

프리뷰 릴리스는 새로운 기능과 업데이트에 대한 조기 액세스를 제공합니다. 이러한 버전은 테스트와 피드백을 목적으로 하지만 운영 환경에서 사용하는 것은 권장되지 않습니다. 프리뷰 버전이 최종 확정되면 Stable 릴리스가 됩니다.

최신 프리뷰 릴리스: PowerShell 7.5 Release Candidate 1 (RC-1)은 2024년 11월 18일에 발표되었습니다. 이 버전은 .NET 9를 기반으로 구축되었으며, “go-live” 릴리스로 간주되어 운영 환경에서 사용을 지원합니다. PowerShell 7.5는 18개월의 표준 지원 수명 주기를 따릅니다.

버전 타임라인 및 지원 요약

Version

Release Type

Support Ends

.NET Version

Notes

7.4

LTS

November 2026

.NET 8

Current LTS version

7.5 RC-1

Preview

N/A (Preview)

.NET 9

Next stable candidate

7.2

LTS (Ended)

November 8, 2024

.NET 6

Previous LTS version

7.0

LTS (Ended)

February 2022

.NET Core 3.1

First LTS version

어떤 버전을 사용해야 하나요?

  • 운영 환경에서 장기적인 안정성을 원한다면 LTS를 선택하세요.
  • 운영 준비 상태를 유지하면서 새로운 기능에 액세스하려면 Stable을 사용하세요.
  • Explore Preview로 곧 출시될 기능을 테스트하고 피드백을 제공하세요.

PowerShell 7 다운로드 링크는 어디에서 찾을 수 있나요?

PowerShell 7 다운로드 링크는 Microsoft 웹사이트, 공식 PowerShell GitHub 저장소, 그리고 기타 검증된 소스에서 찾을 수 있습니다.

Microsoft 웹사이트

URL: Windows, Linux, macOS에 PowerShell 설치

다음 플랫폼에 PowerShell을 설치하는 방법에 대한 지침이 포함되어 있습니다:

  • Windows: MSI 설치 프로그램, Microsoft Store
  • macOS: .pkg 파일, Homebrew
  • Linux: .tar.gz 파일, apt, yum, 또는 dnf 같은 기본 패키지 관리자

공식 PowerShell GitHub 릴리스 페이지

URL: PowerShell 릴리스

GitHub 릴리스 페이지에서는 다음 항목의 다운로드 링크를 제공합니다:

  • 안정적인 버전
  • LTS 버전
  • 미리보기 릴리스

원하는 버전을 선택한 후 운영 체제(Windows, macOS, Linux)에 맞는 설치 프로그램 패키지를 다운로드하세요.

직접 패키지 관리자

  • Windows – Microsoft Store를 통해 설치하면 자동 업데이트가 적용됩니다
  • macOS – Homebrew를 통해 설치
  • Linux – 배포판의 패키지 관리자 사용(예: apt, yum, dnf, zypper)

Winget 패키지 관리자

Windows Package Manager(winget)를 사용하여 Windows 시스템에 PowerShell의 최신 버전을 설치하려면 다음 명령을 사용하세요:

      winget install --id Microsoft.PowerShell --source winget
      

Docker 이미지

URL: Docker Hub

PowerShell 7은 사전 빌드된 Docker 이미지로 제공됩니다. 최신 LTS 또는 안정적인 릴리스를 가져올 수 있습니다.

PowerShell 7 설치 옵션

PowerShell 7은 플랫폼에 맞춘 다양한 방법을 사용하여 Windows, macOS, Linux에 설치할 수 있습니다.

Windows에서 설치

  • 간단한 설치 절차를 원하는 사용자에게는 Microsoft Store가 가장 좋습니다. 또한 자동 업데이트도 제공합니다.
  • PowerShell GitHub Releases 페이지에서 다운로드한 MSI 설치 프로그램은 대화형 설치를 지원하며, PowerShell을 시스템의 PATH에 추가하는 옵션을 제공합니다.
  • Winget 패키지 관리자는 스크립트 기반 배포와 자동화에 가장 적합합니다.
  • GitHub에서 다운로드한 ZIP 패키지는 PowerShell의 휴대용 버전을 제공합니다. 관리자 권한이 없는 환경에서 사용하거나 테스트할 때 유용합니다.
  • PowerShell을 .NET Global 도구로 설치하는 것은, 다른 global 도구를 설치하고 사용하는 .NET 개발자에게 여전히 좋은 선택입니다.

macOS에서 설치하는 경우

  • Homebrew는 자동 업데이트와 macOS 도구와의 통합 기능 때문에 macOS 사용자에게 권장됩니다.
  • PowerShell GitHub Releases 페이지에서 다운로드한 설치 패키지(.pkg)는 대화형 설치 환경을 제공합니다.

Linux에 설치하기

  • Ubuntu/Debian 및 openSUSE와 같은 배포판의 패키지 관리자(H를) 사용하여 PowerShell을 설치하세요.
  • Tarball 아카이브는 휴대용 설치를 제공합니다. GitHub에서 .tar.gz 파일을 다운로드할 수 있습니다.

어떤 방법이 여러분에게 적합할까요?

PowerShell 7을 설치하는 데 적합한 방법을 선택하는 것은 사용 중인 플랫폼과 특정 요구 사항에 따라 달라집니다.

Environment

Recommended Method

Windows Desktop

Microsoft Store or MSI Installer

Windows Server

MSI Installer or ZIP Package

macOS

Homebrew or .pkg Installer

Linux (Desktop)

Native Package Manager

Linux (Server)

Native Package Manager or Docker

Containerized Apps

Docker Images

Portable Needs

ZIP Package (Windows) or Tarball (Linux/macOS)

Developers

Build from Source

추가 팁은 다음과 같습니다:

  • Microsoft Store 또는 Homebrew를 사용하면 간편하고 자동 업데이트도 가능합니다.
  • 관리자 권한이 없다면 휴대용 버전(ZIP 또는 Tarball)을 사용하세요.
  • 구성 관리 도구와의 통합을 더 잘하려면 Windows에서는 MSI 설치 프로그램을 선택하고 Linux에서는 기본 패키지 관리자를 사용하세요.
  • Docker는 개발 및 테스트 환경을 포함해 격리된 환경과 재현 가능한 설정에 이상적입니다.
  • PowerShell에 기여하는 숙련된 사용자 또는 개발자는 PowerShell GitHub 저장소를 복제한 후 소스에서 직접 컴파일할 수 있습니다.

Windows에 PowerShell 7 설치

Windows 패키지 관리자 (Winget) 사용

Windows 패키지 관리자 (Winget)는 Windows에서 PowerShell 7을 설치하는 간단하고 효율적인 방법입니다. Windows 클라이언트에 PowerShell을 설치할 때 권장되는 방법입니다.

사전 준비 사항

  • Winget은 Windows 11 및 Windows 10의 최신 버전에 기본 설치되어 있습니다. 사용 가능하지 않은 경우 Microsoft Store의 App Installer 패키지에서 설치하세요.
  • Winget은 명령 프롬프트 또는 PowerShell에서 실행할 수 있습니다.
  • 관리자 권한으로 Winget을 실행하면 권한 문제 없이 설치가 진행됩니다.

Winget을 사용하여 PowerShell 7을 설치하는 단계

  1. 명령 프롬프트 또는 PowerShell 중 하나를 실행합니다.
  2. 패키지 ID를 사용하여 PowerShell의 최신 버전을 설치합니다:

winget install –id Microsoft.PowerShell –source winget

특정 버전을 설치하려면 –version 플래그를 지정합니다:

winget install –id Microsoft.PowerShell –version 7.4.6

Microsoft Store에서 설치

Microsoft Store를 통해 PowerShell을 설치하면 여러 가지 이점이 있습니다.

  • 자동 업데이트를 보장합니다.
  • 설치 과정이 원활하며 Windows와 잘 통합됩니다.
  • 신뢰할 수 있고 안전한 출처를 제공하여 손상되었거나 비공식 버전을 다운로드할 위험을 줄여줍니다.

Microsoft Store를 통해 PowerShell 7 설치하는 단계

  1. Microsoft Store를 열려면 Windows + S를 누르고 Microsoft Store 를 입력한 다음 Enter를 누르세요.
  2. Microsoft Store의 검색창에서 PowerShell 7 를 입력한 다음 Enter를 누르세요.
  3. 검색 결과에서 PowerShell을 확인하세요( PowerShell 7 또는 최신 버전을 언급하는지 확인). 이를 위해 아래로 스크롤하여 추가 정보 또는 앱 정보(세부 정보) 섹션으로 이동한 다음, 그곳의 버전 번호를 확인합니다.
  4. PowerShell을 설치하려면 가져오기 또는 설치 버튼을 클릭하세요. Microsoft Store에 로그인되어 있지 않다면 Microsoft 계정으로 로그인해야 할 수 있습니다.

MSI 패키지를 통해 PowerShell 설치

MSI 패키지를 통해 PowerShell을 설치하는 것은 엔터프라이즈 환경 및 통제되고 반복 가능한 설치가 필수인 기타 환경에서 특히 유리합니다. 따라서 Windows 서버와 엔터프라이즈 배포 시나리오에서는 권장되는 방법입니다.

  • MSI 패키지는 중앙 집중식 배포를 제공하므로 IT 관리자는 Group Policy, System Center Configuration Manager (SCCM) 또는 기타 엔터프라이즈 소프트웨어 배포 도구를 사용해 여러 대의 컴퓨터에 배포할 수 있습니다.
  • 또한 모든 시스템에 동일한 PowerShell 버전이 일관되게 설치되도록 보장합니다.
  • MSI 패키지는 오프라인 설치를 지원합니다.
  • 설치 중에 MSI 패키지는 설치 경로 같은 설정을 구성하거나 PowerShell을 시스템 경로에 추가하는 옵션을 제공하므로, 특정 요구 사항에 맞게 설치를 손쉽게 조정할 수 있습니다.

MSI 패키지를 통해 PowerShell 7 설치하는 단계

  1. 다음으로 이동하세요: PowerShell GitHub releases page.
  2. 최신 PowerShell 7 릴리스를 찾고 Assets 섹션으로 스크롤하세요.
  3. 사용 중인 시스템에 맞는 MSI 파일을 다운로드하세요:
  4. 64비트 시스템용 PowerShell-x64.msi
  5. 32비트 시스템용 PowerShell-x86.msi
  6. 다운로드한 .msi 파일을 시스템에서 찾습니다(대개 다운로드 폴더에 있음). 설치 프로그램을 실행하려면 해당 파일을 두 번 클릭하세요. 화면에 표시되는 안내에 따라 PowerShell을 설치합니다.

ZIP 패키지 설치

PowerShell의 사용자 지정 설치에는 ZIP 아카이브를 사용합니다. 이 방법은 설치 프로그램이나 패키지 관리자를 사용할 수 없는 환경에서 유연하고 간단합니다. 또한 여러 버전을 설치하는 데 가장 쉬운 방법이며 Windows Nano Server, Windows IoT, Arm 기반 시스템에서도 권장되는 방법으로 유지됩니다.

  1. 다음으로 이동: PowerShell GitHub releases page.
  2. 최신 PowerShell 7 릴리스를 찾고 Assets 섹션으로 스크롤하세요.
  3. 시스템에 맞는 적절한 ZIP 패키지를 다운로드하세요:
  4. 64비트 시스템용 win-x64.zip
  5. 32비트 시스템용 win-x86.zip
  6. ZIP 파일을 다운로드한 폴더로 이동한 다음, 내용을 디렉터리에 압축 해제하세요.
  7. System PATH에 PowerShell을 추가하세요.
  8. 제어판을 열고 System > 고급 시스템 설정 > 환경 변수로 이동하세요.
  9. 시스템 변수에서 Path 변수를 찾고 편집을 클릭하세요.
  10. 새로 만들기를 클릭하고 PowerShell을 압축 해제한 디렉터리의 경로를 추가하세요(예: C:\PowerShell\pwsh).
  11. 확인을 클릭하여 설정을 저장하고 대화 상자를 닫으세요.

PowerShell 7을 실행하려면 새 명령 프롬프트 또는 PowerShell 창을 여세요. 그런 다음 pwsh를 입력하고 Enter를 눌러 PowerShell을 시작합니다.

.NET 전역 도구(.NET Global tool)로 설치

이미 .NET Core SDK 이(가) 설치되어 있다면 PowerShell을 .NET 전역 도구로 설치할 수 있습니다.

dotnet tool install –global PowerShell

dotnet 도구 설치 프로그램은 $HOME\.dotnet\tools를 $env:PATH 환경 변수에 추가합니다.

명령줄을 통한 무인(시일트) 설치

PowerShell의 무인(사일트) 설치는 기업 환경에서 자동화된 배포에 이상적입니다.

명령줄을 통해 PowerShell 7을 무인(사일트) 설치하는 단계

  1. MSI 패키지를 통해 PowerShell 설치 섹션에서 설명한 대로 MSI 설치 프로그램을 다운로드하세요.
  2. 관리자 권한으로 명령 프롬프트를 여세요. 이렇게 하려면 명령 프롬프트를 마우스 오른쪽 버튼으로 클릭한 다음 관리자 권한으로 실행을 선택합니다.
  3. 다음 명령을 사용하여 PowerShell을 무인(조용히) 설치합니다.
      msiexec /i PowerShell-x64.msi /quiet /norestart
      

예시: MSI가 다운로드 폴더에 있는 경우

      msiexec /i "%UserProfile%\Downloads\PowerShell-x64.msi" /quiet /norestart
      

이 명령에서는:

  • /i는 설치를 지정합니다
  • /quiet은 UI를 표시하지 않고 설치 프로그램을 실행합니다
  • /norestart는 설치 후 시스템이 자동으로 다시 시작하는 것을 방지합니다

자동 배포를 위한 고급 명령줄 설치

PowerShell의 고급 명령줄 무인 설치를 위해 관리자는 추가 구성 옵션을 활용하여 엔터프라이즈 환경에서 자동 배포를 더 쉽게 수행할 수 있습니다. 다음은 몇 가지 예시입니다.

  • 아래와 같이 INSTALLFOLDER 속성을 사용해 사용자 지정 설치 경로를 지정합니다.
    msiexec /i PowerShell-x64.msi /quiet /norestart INSTALLFOLDER=”C:\CustomPath\PowerShell7″
  • 아래와 같이 파일 탐색기에 컨텍스트 메뉴를 추가합니다.
    msiexec /i PowerShell-x64.msi /quiet /norestart ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=true
  • 아래와 같이 PowerShell을 시스템 PATH에서 제외합니다.
    msiexec /i PowerShell-x64.msi /quiet /norestart DO_NOT_ADD_TO_PATH=true
  • 아래와 같이 Windows Server Update Services (WSUS)를 통해 자동 업데이트를 활성화합니다.
    msiexec /i PowerShell-x64.msi /quiet /norestart ENABLE_MU=true
  • 대규모 배포를 위해 배치 파일 또는 PowerShell 스크립트를 만드세요.

초보자를 위한 Windows PowerShell 스크립팅 튜토리얼(PDF)

자세히 알아보기

Install PowerShell 7 on macOS

You can install PowerShell on macOS using the following methods:

  • Using Homebrew
  • Downloading Installer Package (.pkg)
  • Installing as a .NET Global tool
  • ZIP 아카이브 사용

macOS에 PowerShell을 설치하기 전에 설치 요구 사항과 지원되는 macOS 버전을 살펴보겠습니다.

지원되는 macOS 버전

Microsoft는 PowerShell이 지원 종료에 도달하거나 macOS 버전이 지원 종료에 도달할 때까지 PowerShell을 지원합니다. 현재 지원되는 버전은 다음과 같습니다:

  • macOS 15(Sequoia) x64 및 Arm64
  • macOS 14 (Sonoma) x64 및 Arm64
  • macOS 13 (Ventura) x64 및 Arm64

다음 명령을 사용하여 macOS 버전을 확인하세요:

sw_vers -productVersion

시스템 요구 사항

시스템 요구 사항은 다음과 같습니다:

Processor

Intel-based MacApple Silicon (M1/M2) is supported via Rosetta 2 or native ARM64 binaries (introduced in later releases of PowerShell 7)

Disk Space

At least 100 MB of free disk space for installation

Prerequisites

HomebrewAlternatively, use the .pkg installer from the GitHub release page

.NET Runtime

PowerShell 7 relies on the cross-platform .NET Core runtime. The required runtime is bundled with the PowerShell package, so no separate installation is required.

Apple Silicon (M1/M2) Considerations

PowerShell supports native execution on Apple Silicon starting with PowerShell 7.2. If using an earlier version, Rosetta 2 must be installed.

Homebrew를 사용하여 PowerShell 설치

Homebrew는 macOS를 위한 인기 있는 패키지 관리자이며, 이를 통해 PowerShell을 손쉽게 설치하고 업데이트할 수 있습니다.

Homebrew를 사용해 PowerShell을 설치하려면 다음 명령을 실행하세요:

      brew install --cask powershell
      

또는 다음 cmdlet을 사용하여 PowerShell의 LTS 버전을 설치할 수 있습니다:

      brew install powershell/tap/powershell-lts
      

GitHub에서 패키지 다운로드

Microsoft는 PowerShell용 서명된 .pkg 설치 프로그램을 제공합니다. 이를 사용해 PowerShell을 설치하는 것은 수동 설치 프로세스를 선호하는 사용자에게 적합합니다.

  1. 다음으로 이동: PowerShell GitHub releases page.
  2. 최신 PowerShell 7 릴리스를 찾은 다음 Assets 섹션으로 스크롤하세요.
  3. macOS용 .pkg 설치 프로그램을 다운로드하세요.
  4. 다운로드한 .pkg 파일을 두 번 클릭한 다음 PowerShell 설치를 시작합니다.

.NET Global 도구로 설치

이 방법은 .NET Core SDK를 사용하여 PowerShell을 설치합니다.

  1. Homebrew를 사용해 .NET SDK를 다운로드하고 설치합니다:
      brew install --cask dotnet-sdk
      
  • .NET Core CLI를 사용하여 PowerShell을 전역 도구로 설치합니다:
      dotnet tool install --global PowerShell
      

dotnet 도구 설치 프로그램은 ~/.dotnet/tools를 PATH 환경 변수에 추가합니다. --global을 사용하면 PowerShell을 전역으로 설치하므로 시스템 전체에서 사용할 수 있습니다.

ZIP 아카이브를 사용해 설치하기

이 방법은 덜 일반적이지만 맞춤 설정에 사용할 수 있습니다.

  1. 다음으로 이동: PowerShell GitHub releases page.
  2. 최신 PowerShell 7 릴리스를 찾고 Assets(자산) 섹션으로 스크롤하세요.
  3. macOS용 ZIP 파일을 다운로드하세요. 일반적으로 다음과 같은 이름입니다: powershell-7.x.x-osx-x64.tar.gz.
  4. ZIP 파일을 디렉터리로 압축 해제하세요.
  5. 다음 명령을 사용하여 pwsh 바이너리를 실행 가능하게 만드세요:
      chmod +x ~/powershell/pwsh
      
  • $PATH에 디렉터리를 추가하거나, 이미 $PATH에 포함되어 있는 디렉터리에 pwsh에 대한 심볼릭 링크를 만드세요:
      ln -s ~/powershell/pwsh /usr/local/bin/pwsh
      
  • 마지막으로, pwsh cmdlet을 사용해 PowerShell을 실행할 수 있습니다.

Linux에 PowerShell 7 설치

PowerShell은 다양한 Linux 배포판에서 지원되므로, 여러 환경에서 사용할 수 있습니다. 다음 표에는 PowerShell을 설치하기 위해 공식적으로 지원되는 배포판이 나열되어 있습니다.

Distribution

Versions

Package Type

Notes

Ubuntu

20.04, 22.04

.deb

Widely supported and tested. Uses the official Microsoft APT repository.

Debian

10, 11

.deb

Installable via the Microsoft APT repository.

CentOS

7, 8 Stream

.rpm

Red Hat-derived. Available via the Microsoft YUM repository.

RHEL

7, 8, 9

.rpm

Supported using YUM or DNF from the Microsoft repository. Requires enabling “Optional” and “Extras” repos on RHEL 7.

Fedora

37, 38

.rpm

Supported via YUM/DNF repositories.

Alpine

3.15+

Binary tar.gz

PowerShell for Alpine is available but may require additional steps due to differences in libraries (for example, glibc compatibility).

Arch Linux

Rolling Release

AUR

Supported unofficially via the Arch User Repository (AUR).

Kali Linux

Rolling Release

.deb

Installed via the Microsoft APT repository, similar to Debian/Ubuntu.

Linux의 표준 설치 방법

Linux에 PowerShell 7을 설치하는 표준 방법은 다음과 같습니다:

  • 패키지 관리자(APT, YUM, DNF) – Debian/Ubuntu의 경우 Microsoft APT 저장소의 .deb 패키지를 사용하세요. RHEL/CentOS/Fedora의 경우 Microsoft YUM 저장소의 .rpm 패키지를 사용하세요.
  • 바이너리 아카이브 설치 – Alpine Linux 같은 배포판이나 사용자 지정 환경의 경우, 다음에서 .tar.gz 아카이브를 사용하세요. PowerShell GitHub 릴리스.

패키지 관리자를 통해 설치

APT (Ubuntu/Debian)

  1. 시작하기 전에 다음 명령을 사용해 시스템의 패키지 목록을 업데이트하세요:
      sudo apt update

sudo apt upgrade -y
      
  • 다음 명령을 사용해 필수 구성 요소를 설치합니다:
      sudo apt install -y wget apt-transport-https software-properties-common
      
  • 다음 명령을 사용하여 Microsoft GPG 키를 가져오고 리포지토리를 등록하세요:
      wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb
      
  • 다음 명령을 사용하여 PowerShell을 설치하세요:
      sudo apt-get update

sudo apt-get install -y powershell
      

YUM/DNF (CentOS/RHEL/Fedora)

  1. 다음 명령을 사용하여 Microsoft GPG 키를 가져오고 리포지토리를 추가하세요:
      sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
      
  • 이 명령을 사용하여 PowerShel을 설치하세요:
      sudo yum install -y powershell
      

Alpine Linux

  1. 다음 명령을 사용하여 필요한 종속 항목을 설치합니다:
      apk add --no-cache bash icu-libs less curl
      
  • 다음을 사용하여 PowerShell을 다운로드하고 압축을 해제합니다:
      wget https://github.com/PowerShell/PowerShell/releases/download/v<version>/powershell-<version>-linux-alpine-x64.tar.gz

mkdir ~/powershell

tar -xzf powershell-<version>-linux-alpine-x64.tar.gz -C ~/powershell
      
  • 그런 다음 아래와 같이 디렉터리로 이동한 후 PowerShell 바이너리를 실행하여 PowerShell을 실행할 수 있습니다:
      ~/powershell/pwsh
      

바이너리 아카이브(tar.gz)를 사용하여 설치

.tar.gz 아카이브는 이식성이 뛰어나며 거의 모든 Linux 시스템에서 작동합니다.

  1. 로 이동한 다음 PowerShell GitHub releases page에서 사용 중인 아키텍처(x64 또는 ARM64)에 맞는 tar.gz 파일을 다운로드하세요. 예시 명령은 다음과 같습니다:
      wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/powershell-7.4.0-linux-x64.tar.gz
      
  • 다음 명령으로 아카이브를 해제합니다:
      mkdir ~/powershell

tar -xzf powershell-7.4.0-linux-x64.tar.gz -C ~/powershell
      
  • 다음 명령으로 PowerShell을 실행합니다:
      ~/powershell/pwsh
      

커뮤니티 및 대체 설치 옵션

Linux에 PowerShell을 설치하는 다른 옵션은 다음과 같습니다:

  • Docker 컨테이너 – Linux 배포판용 공식 PowerShell Docker 이미지를 사용하세요.
  • 수동 빌드 — 지원되지 않거나 사용자 지정 배포판의 경우 PowerShell을 소스에서 빌드할 수 있지만, 전문 지식과 시간이 필요합니다.

Docker로 설치

PowerShell은 Linux 배포판을 지원하는 Microsoft Container Registry (MCR)에 게시된 공식 Docker 이미지를 제공합니다.

  1. 다음 명령을 사용하여 PowerShell 이미지를 가져옵니다:
      docker pull mcr.microsoft.com/powershell
      
  • 컨테이너에서 대화형 PowerShell 세션을 실행하려면 다음 명령을 사용합니다:
      docker run -it mcr.microsoft.com/powershell
      

Linux의 PowerShell에 대한 ARM 지원

PowerShell은 ARM 기반 Linux 시스템(특히 ARM64 아키텍처)을 지원합니다. ARM 지원이 포함된 배포판은 다음과 같습니다:

  • Ubuntu 20.04, 22.04 (ARM64)
  • Debian 11 (ARM64)
  • RHEL 8/9 (ARM64)
  • Alpine 3.15+ (ARM64)

ARM에서 PowerShell을 설치하려면(예: Ubuntu) 다음을 수행하세요:

  1. 다음 명령을 사용하여 PowerShell GitHub releases page에서 ARM64 .deb 패키지를 다운로드하세요:
      wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/powershell_7.4.0-1.deb_arm64.deb
      
  • 다음 명령을 사용하여 패키지를 설치하세요:
      sudo dpkg -i powershell_7.4.0-1.deb_arm64.deb
      

소스에서 설치

지원되지 않거나 고도로 사용자 지정된 Linux 환경에서는 소스 코드에서 PowerShell을 빌드할 수 있습니다.

  1. 다음 명령을 사용하여 PowerShell 저장소를 복제하세요:
      git clone https://github.com/PowerShell/PowerShell.git

cd PowerShell
      
  • 필수 구성 요소를 설치하세요(배포판에 따라 다름).
  • 다음으로 PowerShell을 빌드합니다:
      ./build.sh -c Release
      

여기서 -c Release는 빌드 구성이 “Release”(운영 환경에 최적화됨)임을 지정합니다.

  • 생성된 pwsh 바이너리는 out/ 디렉터리 (./out/linux-x64/)에 저장됩니다.
  • PowerShell을 설치하려면:
  • PowerShell용 디렉터리를 생성합니다(예: /usr/local/bin/powershell).
      sudo mkdir -p /usr/local/bin/powershell

sudo cp -r ./out/linux-x64/* /usr/local/bin/powershell/
      
  • pwsh를 전역에서 사용할 수 있도록 심볼릭 링크를 생성하세요:
      sudo ln -s /usr/local/bin/powershell/pwsh /usr/bin/pwsh
      

PowerShell 7 실행 및 사용

PowerShell 7 시작

Windows, macOS 및 Linux에서 PowerShell 7을 시작하는 방법은 여러 가지가 있습니다.

Windows에서

Method

Steps


Start Menu

Press the Windows key or click the Start Menu.Type pwsh and press Enter.

Run Dialog

Press Win + R to open the Run dialog.Type pwsh and click OK.

Command Prompt or Windows PowerShell

Open Command Prompt (cmd) or Windows PowerShell.Type pwsh and press Enter.

Desktop Shortcut

Create a shortcut pointing to the pwsh.exe executable (typically found in C:\Program Files\PowerShell\7\pwsh.exe).Double-click the shortcut to open PowerShell 7.

Context Menu

Right-click on an empty space in a folder while holding Shift.Select Open PowerShell window here (if configured).

Taskbar or Start Pin

Locate PowerShell 7 in the Start Menu.Right-click and choose Pin to Start or Pin to Taskbar for easy access.

macOS에서

Method

Steps

Terminal

Open the built-in Terminal app.Type pwsh and press Return.

Spotlight Search

Press Cmd + Space to open Spotlight.Type pwsh and press Return.

Finder

Navigate to the folder where PowerShell 7 is installed (for example, /usr/local/bin if installed via Homebrew).Double-click or run it from the Terminal.

Homebrew (if installed via Homebrew)

Use the command: brew list | grep powershell

Linux에서

Method

Steps

Terminal

Open a terminal.Type pwsh and press Enter.

Application Menu

Depending on your desktop environment (for example, GNOME, KDE), search for “PowerShell” in the application menu.

Desktop Shortcut

Create a desktop shortcut to the pwsh executable (typically located in /usr/bin/pwsh or /opt/microsoft/powershell/7/pwsh).

Run Command

Use the Alt + F2 (GNOME) or Super + R (KDE) run command dialog.Type pwsh and press Enter.

Script or Cron Job

Add pwsh to your scripts or scheduled tasks for automation.

기본 명령 사용법 및 팁

시작하는 데 도움이 되는 기본 명령 사용법과 팁을 소개합니다.

기본 명령 구문

Item

Syntax

Cmdlets

PowerShell uses cmdlets (pronounced “command-lets”) with the structure: Verb-Noun -ParameterName Value An example is: Set-Item -Path “C:\test.txt” -Value “Hello”

Pipelines

Use the pipe | to send the output of one cmdlet as input to another. Here is an example: Get-Process | Where-Object { $_.CPU -gt 100 }

기본 명령

Task

Command

Find Help

To get help for a cmdlet: Get-Help Get-Process
To view examples: Get-Help Get-Process-Examples

Navigate the File System

List directory contents: Get-ChildItem
Change directory: Set-Location C:\Path
Create a new directory: New-Item -ItemType Directory -Path C:\NewFolder

Manage Files

Create a new file: New-Item -ItemType File -Path C:\test.txt
Read file content: Get-Content C:\test.txt
Write to a file: Set-Content -Path C:\test.txt -Value “Hello, World!”

View System Information

Check system processes: Get-Process View running services: Get-Service
Get system information: Get-ComputerInfo

Scripting Basics

Run a script: .\script.ps1
Variables: $name = “PowerShell”
Write-Output “Hello, $name!”

Package Management

Install a module: Install-Module -Name Az -Scope CurrentUser
Import a module: Import-Module Az
List installed modules: Get-InstalledModule

효율적인 사용을 위한 팁

자동 완성

Tab 키를 사용하여 cmdlet, 매개변수 또는 파일 경로를 자동 완성하세요.

별칭

PowerShell은 아래와 같이 cmdlet에 대한 바로가기를 지원합니다:

      dir      # Alias for Get-ChildItem

cd       # Alias for Set-Location

cls      # Alias for Clear-Host
      

모든 별칭을 보려면 다음 cmdlet을 사용하세요:

      Get-Alias
      

스크립트의 주석

  • 한 줄 주석은 다음과 같습니다:
      # This is a comment
      
  • 여러 줄 주석은 다음과 같습니다:
      <#

This is a multi-line comment

#>
      

오류 처리

try-catch 블록은 오류 처리를 위해 훌륭합니다. 다음과 같습니다:

      Try {

    Get-Item "C:\nonexistent.txt"

} Catch {

    Write-Host "An error occurred: $_"

}
      

출력 서식

  • 다음 cmdlet을 사용하여 출력을 표 형식으로 지정합니다:
      Get-Process | Format-Table
      
  • 다음 cmdlet을 사용하여 출력을 목록 형식으로 지정합니다:
      Get-Process | Format-List
      

멀티플랫폼 팁

  • Windows가 아닌 시스템에서도 ls 또는 cat 같은 기본 셸 명령을 그대로 사용할 수 있습니다.
  • pwsh -WindowsCompatibility 모드를 사용하여 일부 Windows 전용 모듈을 호출할 수 있습니다.

PowerShell 7 최신 상태 유지

설치 방법에 따라 업데이트 옵션 선택

Windows에서 PowerShell 업데이트

원래 설치 방법에 따라 Winget, Microsoft Store 또는 MSI 설치 프로그램을 사용하여 PowerShell을 업데이트할 수 있습니다.

Method


Description


Winget

Winget doesn’t automatically update installed applications, but you can manually update PowerShell. Open PowerShell as an administrator and run the following command: winget upgrade –id Microsoft.PowerShell –source winget Here, –source winget forces the command to only use the winget source repository when finding the PowerShell package. This ensures that the package is not sourced from other repositories you might have added to winget, such as third-party repositories or custom sources.

Microsoft Store

Open the Microsoft Store and type “PowerShell” in the search bar to search for PowerShell. Select the “PowerShell” application. If an update is available, the Update button will appear. Click it to update PowerShell.

MSI installer

Download the appropriate MSI file for your system architecture from the PowerShell GitHub releases page. Double-click the downloaded MSI file and follow the on-screen instructions to update PowerShell. Restart PowerShell when the update completes.

macOS에서 PowerShell 업데이트

원래 설치 방법에 따라 macOS에서 PowerShell을 업데이트하는 데 여러 방법을 사용할 수 있습니다.

Method

Description

Homebrew

Update Homebrew to ensure it has the latest package information using the following cmdlet: brew update Run the following command to upgrade PowerShell: brew upgrade powershell

Manual Download (GitHub)

Download the .pkg file for the latest version of PowerShell from the PowerShell GitHub releases page. Double-click the downloaded .pkg file and follow the on-screen instructions to update PowerShell.

.NET Tool

Make sure the .NET CLI is installed. Then use the following command to update PowerShell: dotnet tool update –global PowerShell

Linux에서 PowerShell 업데이트

Linux에서 PowerShell을 업데이트하는 방법은 PowerShell이 설치된 방식에 따라 달라집니다.

Method

Description

Package Manager

For APT-based Systems (Ubuntu, Debian) Update the Package List: sudo apt update Update PowerShell: sudo apt upgrade powershell For DNF-based Systems (Fedora, CentOS, RHEL) Update the Package Repository: sudo dnf check-update Update PowerShell: sudo dnf upgrade powershell

Manual Download (GitHub)

Download the latest package for PowerShell as appropriate to your Linux distribution (for example, .deb, .rpm, or binary .tar.gz) from the PowerShell GitHub releases page. Uninstall the previous PowerShell version and then use the following cmdlets to install the new version. For APT-based systems sudo dpkg -i powershell-<version>.deb For DNF-based systems sudo rpm -Uvh powershell-<version>.rpm For binary .tar.gz tar -xvf powershell-<version>.tar.gz sudo mv pwsh /usr/local/bin

이전 버전에서 업그레이드

PowerShell 5.1(Windows PowerShell) 또는 PowerShell Core에서 최신 PowerShell 7+ 버전으로 업그레이드하려면 특정 단계와 고려 사항이 필요합니다. 예를 들어, 기존 스크립트를 테스트하여 PowerShell 7+에서 정상적으로 작동하는지 확인하고, $PROFILE에 저장된 사용자 지정 프로필이나 스크립트는 백업하세요.

Windows PowerShell 5.1에서 업그레이드

Windows PowerShell 5.1은 직접 업그레이드할 수는 없지만 PowerShell 7+와 함께 공존할 수 있습니다.

PowerShell Core (6.x)에서 업그레이드

PowerShell Core는 PowerShell 7+로 바로 업그레이드할 수 있습니다.

  1. PowerShell GitHub 릴리스 페이지 를 방문한 후 운영 체제와 호환되는 패키지를 다운로드하세요(예: Windows는 .msi, Linux는 .deb).
  2. 새 버전을 설치하세요. 자세한 내용은 관련 섹션을 참고하세요:
  3. Windows에 PowerShell 7 설치
  4. macOS에 PowerShell 7 설치
  5. Linux에 PowerShell 7 설치

기본적으로 PowerShell 7+는 동일한 위치에 설치된 경우 PowerShell Core 설치를 대체합니다.

PowerShell 7 지원 및 호환성

지원되는 운영 체제

PowerShell 7은 크로스플랫폼이며 Windows, macOS, 다양한 Linux 배포판에서 실행됩니다.

Windows

Supported Versions

Windows 10 (x64 and ARM64) – Version 1607 or laterWindows 11 – All versionsWindows Server – 2012 R2 or later

Requirements

.NET Runtime – PowerShell 7 is built on .NET 6 or later. These runtimes are bundled with the PowerShell 7 installer for Windows.Disk Space – Approximately 150 MB for the base installationRAM – Minimum 1 GB; 2 GB or more is recommended

macOS

Supported Versions

macOS 10.13 High Sierra or later (64-bit)

Requirements

.NET Runtime – .NET 6 or later runtime is bundled with the PowerShell 7 package for macOSDisk Space – Approximately 150 MB for the installationRAM – Minimum 1 GB; 2 GB or more is recommended

Linux

Requirements

.NET Runtime – .NET 6 or later runtime is required. It is bundled in most PowerShell 7 packages or can be installed manually.Disk Space – Approximately 150 MB for the installationRAM – Minimum 1 GB; 2 GB or more is recommended

Supported Distributions

PowerShell 7 supports a wide range of Linux distributions. The most common ones are: Debian-based (APT package manager) Ubuntu 16.04 or later (64-bit) Debian 9 or later (64-bit) Red Hat-based (DNF/YUM package manager) CentOS 7 or later (64-bit) Red Hat Enterprise Linux (RHEL) 7 or later (64-bit) Fedora 30 or later (64-bit) SUSE-based (Zypper package manager) openSUSE 42.3 or later (64-bit) SUSE Linux Enterprise Server (SLES) 12 SP2 or later (64-bit) Other Alpine Linux 3.10 or later (64-bit) Arch Linux (community-maintained)

크로스플랫폼 구성

Supported Hardware Architecture

x64ARM64 (for supported Windows and Linux distributions)

Compatibility Features

Windows-specific modules (for example, Active Directory, Exchange) are supported via the compatibility module (Enable-WindowsCompatibility) on Windows.Cross-platform remoting is supported using SSH or WinRM, depending on the platform.

컨테이너 지원

Docker Images

Official PowerShell Docker images are available for Linux, Windows, and ARM-based systems. Images are available for: Debian Ubuntu Alpine Windows Server Core

Requirements

Docker must be installed and configured.

지원되지 않는 구성

  • PowerShell 7은 64비트 운영 체제에서만 지원되며 32비트 운영 체제에서는 지원되지 않습니다.
  • PowerShell 7은 Windows 10보다 이전 버전의 Windows를 지원하지 않습니다.
  • macOS 버전 10.13 High Sierra보다 이전 버전은 지원되지 않습니다.
  • 종료 지원(End-of-life) 상태에 도달한 Linux 배포판은 공식적으로 지원되지 않습니다.

Microsoft Update 통합

Windows에서 Microsoft Update를 통해 PowerShell 7 업데이트를 관리할 수 있으며, 사용자는 다른 Windows 업데이트와 함께 업데이트를 자동으로 받을 수 있습니다.

Microsoft Update를 통해 PowerShell 7 업데이트가 작동하는 방식

  • Microsoft Update – PowerShell 7은 Microsoft Update와 통합됩니다. Microsoft Update는 PowerShell을 포함하여 Microsoft 소프트웨어에 대한 업데이트를 제공하는 선택적 서비스입니다.
  • 업데이트 유형 – 업데이트에는 새 버전, 버그 수정, 보안 패치 및 개선 사항이 포함될 수 있습니다.
  • 빈도 – 업데이트는 PowerShell의 개발 주기와 중요 보안 업데이트를 기준으로 주기적으로 배포됩니다.

Microsoft Update 사용

시스템이 Microsoft Update를 사용하도록 구성되어 있는지 확인하세요.

  1. Windows 업데이트로 이동한 다음 고급 옵션을 클릭하세요.
  2. 다른 Microsoft 제품에 대한 업데이트 받기를 선택한 다음 스위치를 켜짐(On)으로 전환하세요. 이 설정을 통해 Microsoft Update가 PowerShell 및 기타 Microsoft 소프트웨어의 업데이트를 확인할 수 있습니다.

자동 업데이트 설정

PowerShell 업데이트가 자동으로 설치되도록 하려면 Windows 업데이트 설정을 구성하세요.

  1. Windows 업데이트로 이동한 다음 고급 옵션을 클릭하세요.
  2. 다음을 구성하세요:
  3. 자동 업데이트 – 업데이트를 사용하여 자동으로 설치하도록 설정
  4. 활동 시간 – 근무 시간 동안 업데이트가 진행되지 않도록 활동 시간을 설정

Active Directory 그룹 관리 모범 사례

자세히 알아보기

PowerShell 7 설치 문제 해결

서로 다른 플랫폼에 PowerShell 7을 설치할 때, 다양한 환경 또는 의존성 문제로 인해 가끔 오류가 발생할 수 있습니다. 아래는 Windows, macOS, Linux 플랫폼 전반에서 흔히 발생하는 오류와 해결 방법 목록입니다.

Windows

  1. 오류: 실행 정책이 설치를 차단합니다

이 오류는 실행 정책이 너무 제한적이기 때문에 발생합니다. 설치를 시도하기 전에 권한이 상승된 PowerShell 세션에서 다음 명령을 실행하세요:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

  • 오류: 필수 구성 요소가 없어 설치할 수 없습니다

이 오류는 .NET Core Runtime이 누락되어 발생합니다. Microsoft의 .NET 사이트에서 최신 .NET Core Runtime을 다운로드하여 설치한 다음 PowerShell 설치를 진행해야 합니다.Microsoft’s .NET site 그리고 PowerShell 설치를 계속하십시오.

  • 오류: 설치 프로그램에 관리자 권한이 필요합니다

이 오류는 관리자 권한이 부족하기 때문에 발생합니다. 이를 해결하려면 설치 프로그램을 마우스 오른쪽 버튼으로 클릭하고 ‘관리자 권한으로 실행’을 선택하십시오.

MacOS

  1. 오류: zsh: 명령을 찾을 수 없음: pwsh

이 오류는 PowerShell 바이너리가 시스템의 PATH에 없기 때문에 발생합니다. 문제를 해결하려면 다음 명령을 실행하세요:

echo ‘export PATH=”/usr/local/microsoft/powershell/7:$PATH”‘ >> ~/.zshrc

source ~/.zshrc

  • 오류: 다운로드한 .pkg 파일을 마운트할 수 없습니다

이 오류는 .pkg 파일이 손상되었기 때문에 발생합니다. 이 파일을 삭제한 다음 공식 사이트에서 다시 다운로드하세요.

  • 오류: 설치에는 더 최신 버전의 macOS가 필요합니다

이 오류는 macOS 버전이 너무 오래되어 발생합니다. PowerShell 7에서 지원하는 버전으로 macOS를 업그레이드해야 합니다.

  • 오류: 설치 중 권한이 거부됨

이 오류는 관리 권한이 부족하기 때문에 발생합니다. 다음 명령을 사용하여 문제를 해결하세요:

sudo installer -pkg powershell-7.x.x.pkg -target /

리눅스

  1. 오류: powershell 패키지를 찾을 수 없습니다

이 오류는 Microsoft 저장소가 패키지 관리자에 추가되지 않았기 때문에 발생합니다. 다음 명령을 사용해 추가하세요:

# Ubuntu/Debian용 예시:

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get update

  • 오류: 누락된 종속성

이 오류는 libssl 또는 curl 같은 종속성이 설치되어 있지 않아서 발생합니다. 누락된 종속성을 설치하려면 다음 명령을 사용하세요:

# Ubuntu 예시:

sudo apt-get install -y libssl1.1 libcurl4

  • 오류: pwsh 실행 중 권한이 거부되었습니다

이 오류는 바이너리에 대한 권한이 충분하지 않아서 발생합니다. 문제를 해결하려면 다음 명령을 실행하세요:

sudo chmod +x /usr/bin/pwsh

  • 오류: 패키지의 버전이 시스템 아키텍처와 호환되지 않습니다

이 오류는 다운로드한 패키지의 아키텍처가 잘못되었기 때문에 발생합니다. 예를 들어 x86 대 ARM의 경우입니다. 시스템의 아키텍처에 맞는 올바른 패키지를 official release page 에서 다운로드해야 합니다.

설치 및 런타임 문제를 해결하는 팁

다양한 플랫폼에서 PowerShell 7의 설치 및 런타임 문제를 해결하기 위한 일반적인 팁을 안내합니다.

일반 설치 팁

시스템 요구 사항 확인

  • 운영 체제 버전과 아키텍처(x86, x64, ARM)가 PowerShell 7을 지원하는지 확인하세요.
  • .NET Core Runtime 같은 필수 종속 항목이 설치되어 있는지 확인하세요.

공식 소스에서 다운로드

PowerShell 패키지를 다운로드할 때는 항상 공식 PowerShell GitHub releases page 또는 플랫폼의 신뢰할 수 있는 저장소를 사용하세요.

설치 로그 확인

실패에 대한 자세한 내용은 로그를 확인하세요:

  • Windows – C:\Windows\Temp 또는 이벤트 뷰어
  • Linux/macOS – 터미널 오류 메시지 또는 패키지 관리자 로그

패키지 관리자 업데이트

설치 명령을 실행하기 전에 패키지 관리자(예: apt, yum, brew)가 최신 상태인지 확인하세요.

올바른 PATH 구성 확인

설치 후 PATH를 통해 PowerShell 바이너리에 액세스할 수 있는지 확인합니다. 그렇지 않으면 수동으로 추가하세요:

  • Windows – 환경 변수를 편집하여 C:\Program Files\PowerShell\7 를 포함합니다
  • Linux/macOS – 쉘 구성에 /usr/bin/pwsh 또는 /usr/local/bin/pwsh 를 추가합니다

상승된 권한 사용

관리자/슈퍼유저 권한이 필요한 플랫폼에서는 다음을 수행하세요:

  • Windows – 관리자 권한으로 실행
  • Linux/macOS – 패키지 설치 시 sudo 사용

런타임 문제 해결 팁

  • PowerShell이 멈추거나 이상하게 동작하면 프로필 스크립트를 건너뛰세요.
  • PowerShell과 설치된 모든 모듈이 최신 상태인지 확인하세요.
  • 호환성 문제를 식별하기 위해 타사 모듈이나 스크립트를 일시적으로 제거하세요.
  • 자세한 오류 메시지를 확인하려면 시스템 로그를 조사하세요.
  • 원격 세션 또는 모듈 설치와 관련된 오류가 발생하면 인터넷 연결과 DNS 해석이 제대로 되는지 확인하세요. 또한 방화벽 규칙과 프록시 설정도 점검하세요.
  • $PSModulePath 및 $env:PATH 같은 PowerShell 환경 변수가 올바르게 설정되어 있는지 확인하세요.

결론

이 글에서는 Windows, macOS, Linux를 포함한 다양한 플랫폼에서 PowerShell 7을 설치하고 업데이트하는 방법을 다룹니다. 사용자의 필요에 따라 PowerShell 7을 설치하기 위한 추가 권장 사항은 다음과 같습니다:

초보자/일반 사용자용

  • Windows – MSI 또는 Microsoft Store를 통해 설치
  • macOS – .pkg 설치 프로그램 사용
  • Linux – 기본 패키지 관리자를 통해 설치

개발자/고급 사용자용

  • 패키지 관리자(Homebrew, apt, dnf)를 사용해 효율적으로 업데이트하고 시스템과 통합하세요
  • 크로스 플랫폼 스크립트의 경우, 일관된 디렉터리에 설치하세요(예: /usr/local/bin)

휴대형 설치 또는 관리자 권한이 없는 경우

  • Windows – ZIP 아카이브를 사용하세요
  • Linux/macOS – 수동 설치를 위해 tarball을 사용하세요

엔터프라이즈 환경을 위한 내용

  • 중앙 집중식 배포 도구(예: Group Policy, SCCM)를 사용하여 PowerShell MSI 파일을 배포하세요
  • 여러 시스템에 걸쳐 설치 스크립트를 자동화하세요

인터넷 액세스가 제한된 환경의 경우:

  • 오프라인 설치 파일(MSI/PKG/Tarball)을 다운로드한 뒤 로컬로 배포하세요

다음 가이드라인을 따르면 다양한 환경에서 PowerShell 7의 기능을 최대한 활용할 수 있습니다:

  • $IsWindows, $IsLinux, $IsMacOS 자동 변수 를 사용해 플랫폼에 독립적인 스크립트를 작성하세요. 또한 하드코딩을 피하기 위해 환경별 경로를 변수에 저장하는 것이 좋습니다.
  • 효율을 높이려면 $PROFILE을 사용자에 맞게 사용자 지정하세요.
  • PowerShell Remoting을 사용하여 원격 시스템을 관리하세요. 크로스 플랫폼 SSH 원격을 사용하도록 설정했는지 확인하세요.
  • 문제 해결을 위해 내장 오류 처리 기능을 사용하고 자세한 로깅을 활성화하세요.
  • 프로덕션 환경에서 사용할 스크립트는 항상 서명하세요.
  • PowerShell 7은 API와의 상호작용에 특히 강하므로 REST API와 웹 요청을 사용하세요.
  • PowerShell을 Jenkins, Azure DevOps, GitHub Actions 같은 자동화 도구에 통합하세요.
  • 모듈식 스크립트와 재사용 가능한 함수를 작성하고, 이를 모듈로 패키징하세요.

Netwrix Directory Manager

FAQ

공유하기

더 알아보기

저자 소개

Asset Not Found

Jonathan Blackwell

소프트웨어 개발 책임자

2012년부터 엔지니어이자 혁신가인 Jonathan Blackwell은 엔지니어링 리더십을 제공해 Netwrix GroupID를 Active Directory 및 Azure AD 환경에서 그룹 및 사용자 관리 분야의 최전선에 올려놓았습니다. 개발, 마케팅, 영업에서의 그의 경험을 통해 Jonathan은 Identity 시장과 구매자가 생각하는 방식까지 완전히 이해할 수 있습니다.