Menu
AWS Systems Manager
User Guide

How to Specify an Alternative Patch Source Repository (Linux)

When you use the default repositories configured on an instance for patching operations, Patch Manager scans for or installs security-related patches. This is the default behavior for Patch Manager. For complete information on how Patch Manager selects and installs security patches, see How Security Patches Are Selected.

On Linux systems, however, you can also use Patch Manager to install patches that are not related to security, or that are in a different source repository than the default one configured on the instance. You can specify alternative patch source repositories when you create a custom patch baseline. In each custom patch baseline, you can specify patch source configurations for up to 20 versions of a supported Linux operating system.

For example, if your Ubuntu Server fleet includes both Ubuntu Server 14.04 and Ubuntu Server 16.04 instances, you can specify an alternate repository for each version in the same custom patch baseline. For each version, you provide a name, specify the operating system version type (product), and provide a repository configuration. You can also specify a single alternative source repository that applies to all versions of a supported operating system.

For a list of example scenarios for using this option, see later in this topic.

For information about default and custom patch baselines, see Verify Default Patch Baselines or Create a Custom Patch Baseline.

Note

Running a custom patch baseline that specifies alternative patch repositories on an instance doesn't change the default repository configured for the instance.

Using the Console

To specify alternative patch source repositories when you are working in the AWS Systems Manager console, use the Patch sources section on the Create patch baseline page. For information about using the Patch sources options, see Create a Default Patch Baseline, part of the Walkthrough: Patch a Server Environment (Console) topic.

Using Other Tools to Create Patch Baselines

Use the sources option with other tools when you create a patch baseline.

For an example of using the --sources option with the CLI, see Create a patch baseline with custom repositories for different OS versions.

Sample Uses for Alternative Patch Source Repositories

Example 1 – Non-Security Updates for Ubuntu Server

You are already using Patch Manager to install security patches on a fleet of Ubuntu Server instances using the AWS-provided default patch baseline AWS-UbuntuDefaultPatchBaseline. You can create a new patch baseline that is based on this default, but specify in the approval rules that you want non-security related updates that are part of the default distribution to be installed as well. When this patch baseline is run against your instances, patches for both security and non-security issues are applied. You can also choose to approve non-security patches in the patch exceptions you specify for a baseline.

Example 2 - Personal Package Archives (PPA) for Ubuntu Server

Your Ubuntu Server instances are running software that is distributed through a Personal Package Archives (PPA) for Ubuntu. In this case, you create a patch baseline that specifies a PPA repository that you have configured on the instance as the source repository for the patching operation. Then use Run Command to run the patch baseline document on the instances.

Example 3 – Internal Corporate Applications on Amazon Linux

You need to run some applications needed for industry regulatory compliance on your Amazon Linux instances. You can configure a repository for these applications on the instances, use YUM to initially install the applications, and then update or create a new patch baseline to include this new corporate repository. After this you can use Run Command to run the AWS-RunPatchBaseline document with the Scan option to see if the corporate package is listed among the installed packages and is up to date on the instance. If it isn't up to date, you can run the document again using the Install option to update the applications.