Install software packages on an Amazon Linux instance - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Install software packages on an Amazon Linux instance

The yum package manager is a great tool for installing software, because it can search all of your enabled repositories for different software packages and also handle any dependencies in the software installation process.

Important

This information applies to Amazon Linux. For information about other distributions, see their specific documentation.

To install a package from a repository

Use the yum install package command, replacing package with the name of the software to install. For example, to install the links text-based web browser, enter the following command.

[ec2-user ~]$ sudo yum install links
To install RPM package files that you have downloaded

You can also use yum install to install RPM package files that you have downloaded from the internet. To do this, append the path name of an RPM file to the installation command instead of a repository package name.

[ec2-user ~]$ sudo yum install my-package.rpm