

第 5 版 (V5) AWS Tools for PowerShell 已發行！

如需有關中斷變更和遷移應用程式的資訊，請參閱[遷移主題](https://docs.aws.amazon.com/powershell/v5/userguide/migrating-v5.html)。

 [https://docs.aws.amazon.com/powershell/v5/userguide/migrating-v5.html](https://docs.aws.amazon.com/powershell/v5/userguide/migrating-v5.html)

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 Linux 或 macOS AWS Tools for PowerShell 上安裝
<a name="pstools-getting-set-up-linux-mac"></a>

如需預先安裝在 上的 Tools for PowerShell 的相關資訊 AWS CloudShell，請參閱 [在 CloudShell 上安裝](pstools-getting-set-up-cloudshell.md)。

若要 AWS Tools for PowerShell 在 Linux 或 macOS 電腦上安裝 ，您可以從兩個套件選項中選擇：
+ [**`AWS.Tools`**](install-aws.tools-on-linux-macos.md) – 的模組化版本 AWS Tools for PowerShell。每個 AWS 服務都由其個別的小型模組支援，具有共用支援模組 `AWS.Tools.Common`。
+ [**AWSPowerShell.NetCore**](install-netcore-on-linux-macos.md) – 的單一大型模組版本 AWS Tools for PowerShell。此單一大型模組支援所有 AWS 服務。
**注意**  
請注意，單一模組可能太大，無法與 [AWS Lambda](https://aws.amazon.com/lambda/) 功能一起使用。請改用上面的模組化版本。

在執行 Linux 或 macOS 的電腦上設定其中之一涉及下列任務，如後續主題中所述：

1. 在支援的系統上安裝 PowerShell Core 6.0 或更新版本。

1. 在安裝 PowerShell Core 之後，請在您的系統 shell 中執行 `pwsh` 來啟動 PowerShell。

1. 安裝 `AWS.Tools` 或 AWSPowerShell.NetCore。

1. 執行適當的 `Import-Module` Cmdlet 來將模組匯入您的 PowerShell 工作階段。

1. 執行 [Initialize-AWSDefaultConfiguration](https://docs.aws.amazon.com/powershell/v5/reference/items/Initialize-AWSDefaultConfiguration.html) cmdlet 以提供您的 AWS 登入資料。

## 先決條件
<a name="prerequisites"></a>

若要執行 AWS Tools for PowerShell Core，您的電腦必須執行 PowerShell Core 6.0 或更新版本。
+ 如需支援 Linux 平台的版本清單，以及如何在 Linux 類型電腦上安裝 PowerShell 最新版本的資訊，請參閱 Microsoft 網站上的[在 Linux 上安裝 PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux)。有些 Linux 類型作業系統 (例如 Arch、Kali 和 Raspbian) 不受支援，但擁有不同程度的社群支援。
+ 如需支援 macOS 的版本，以及如何在 macOS 上安裝 PowerShell 的資訊，請參閱 Microsoft 網站上的[在 macOS 上安裝 PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos)。

**Topics**
+ [先決條件](#prerequisites)
+ [安裝 `AWS.Tools`（建議）](install-aws.tools-on-linux-macos.md)
+ [安裝 AWSPowerShell.NetCore](install-netcore-on-linux-macos.md)