

的版本 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)

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

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

有关上预安装 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`。
+ [**AWSPower壳牌。 NetCore**](install-netcore-on-linux-macos.md)— 的单一大模块版本。 AWS Tools for PowerShell这个单一的大型模块支持所有 AWS 服务。
**注意**  
请注意，单个模块可能太大，无法与 [AWS Lambda](https://aws.amazon.com/lambda/) 函数一起使用。请改用上面显示的模块化版本。

在运行 Linux 或 macOS 的计算机上设置其中任何一个都涉及以下任务，后续主题将详细介绍这些任务：

1. 在支持的系统上安装 PowerShell 酷睿 6.0 或更高版本。

1. 安装 PowerShell Core 后， PowerShell 首先`pwsh`在您的系统 shell 中运行。

1. 安装其中一个`AWS.Tools`或 AWSPower命令行管理程序。 NetCore。

1. 运行相应的 `Import-Module` cmdlet 将模块导入到您的 PowerShell会话中。

1. 运行 “[初始化-AWSDefault 配置”](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 网站[ PowerShell 上的在 Linux 上安装](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux)。尚未正式支持某些基于 Linux 的操作系统（如 Arch、Kali 和 Raspbian），但提供各种级别的社区支持。
+ 有关支持的 macOS 版本以及如何在 macOS 上安装最新版本的信息，请参阅 PowerShell 微软网站[上的在 m PowerShell acOS 上](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)
+ [安装 AWSPower外壳。 NetCore](install-netcore-on-linux-macos.md)