|
1 | 1 | # Amazon Machine Image \(AMI\) Contents for an AWS Cloud9 EC2 Development Environment<a name="ami-contents"></a> |
2 | 2 |
|
3 | | -The Amazon Machine Image \(AMI\) that AWS Cloud9 uses for an EC2 environment contains the following components: |
4 | | -+ The packages listed in [Amazon Linux AMI 2018\.03 Packages](https://aws.amazon.com/amazon-linux-ami/2018-03-packages/) on the Amazon Linux AMI website\. |
5 | | -+ [Apache HTTP Server](http://httpd.apache.org/) 2\.4 |
6 | | -+ [AWS CLI](sample-aws-cli.md) 1\.14\.9 |
7 | | -+ [AWS SAM Local](https://github.com/awslabs/aws-sam-local) 0\.2\.11 |
8 | | -+ [CoffeeScript](http://coffeescript.org) 2\.3\.1 |
9 | | -+ [Docker](https://www.docker.com/) 18\.03\.1\-ce |
10 | | -+ [GCC, G\+\+](https://gcc.gnu.org/) 4\.8\.5 |
11 | | -+ [GDB](https://www.gnu.org/software/gdb/) 7\.6\.1 |
12 | | -+ [Git](https://git-scm.com/) 2\.14\.4 |
13 | | -+ [GNU libc](https://www.gnu.org/software/libc/) 2\.17 |
14 | | -+ [Go](https://golang.org) 1\.9\.1 |
15 | | -+ [MySQL](https://dev.mysql.com/) 14\.14 |
16 | | -+ [MySQL native driver for PHP](https://dev.mysql.com/downloads/connector/php-mysqlnd/) |
17 | | -+ [Node\.js](https://nodejs.org/en/) v6\.14\.3 |
18 | | -+ [Node Package manager \(npm\)](https://www.npmjs.com/) 3\.10\.10 |
19 | | -+ [Node Version Manager \(nvm\)](http://nvm.sh/) 0\.31\.7 |
20 | | -+ [Perl](https://www.perl.org/) v\.5\.16\.3 |
21 | | -+ [PHP](https://secure.php.net/) 5\.6\.36 |
22 | | -+ [Pylint](https://www.pylint.org/) 1\.8\.1 |
23 | | -+ [Python](https://www.python.org/) 2\.7\.14 |
24 | | -+ [Python](https://www.python.org/) 3\.6\.5 |
25 | | -+ [Ruby on Rails](http://rubyonrails.org/) 5\.2\.0 |
26 | | -+ [Ruby](https://www.ruby-lang.org/en/) 2\.4\.1 |
27 | | -+ [virtualenv](https://virtualenv.pypa.io/en/stable/) 16\.0\.0 |
| 3 | +Use the following information to get details about Amazon Machine Images \(AMIs\) that AWS Cloud9 uses for an EC2 environment\. |
| 4 | + |
| 5 | +**Topics** |
| 6 | ++ [Amazon Linux](#ami-contents-amazon-linux) |
| 7 | ++ [Ubuntu Server](#ami-contents-ubuntu-server) |
| 8 | + |
| 9 | +## Amazon Linux<a name="ami-contents-amazon-linux"></a> |
| 10 | + |
| 11 | +To display the version of an Amazon Linux instance, run the following command from the AWS Cloud9 IDE for the connected environment or from an SSH utility such as the ssh command or PuTTY\. |
| 12 | + |
| 13 | +``` |
| 14 | +cat /etc/system-release |
| 15 | +``` |
| 16 | + |
| 17 | +To display a list of packages that are installed on an Amazon Linux instance, run one or more of the following commands\. |
| 18 | + |
| 19 | +To display all installed packages as a single list: |
| 20 | + |
| 21 | +``` |
| 22 | +sudo yum list installed |
| 23 | +``` |
| 24 | + |
| 25 | +To display a list of installed packages with package names containing the specified text: |
| 26 | + |
| 27 | +``` |
| 28 | +sudo yum list installed | grep YOUR_SEARCH_TERM |
| 29 | +``` |
| 30 | + |
| 31 | +In the preceding command, replace `YOUR_SEARCH_TERM` with some portion of the package name\. For example, to display a list of all installed packages with names containing `sql`: |
| 32 | + |
| 33 | +``` |
| 34 | +sudo yum list installed | grep sql |
| 35 | +``` |
| 36 | + |
| 37 | +To display a list of all installed packages, displayed one page at a time: |
| 38 | + |
| 39 | +``` |
| 40 | +sudo yum list installed | less |
| 41 | +``` |
| 42 | + |
| 43 | +To scroll through the displayed pages: |
| 44 | ++ To move down a line, press **j**\. |
| 45 | ++ To move up a line, press **k**\. |
| 46 | ++ To move down a page, press **Ctrl\-F**\. |
| 47 | ++ To move up a page, press **Ctrl\-B**\. |
| 48 | ++ To quit, press **q**\. |
| 49 | + |
| 50 | +For additional options, run the man yum command\. See also [Amazon Linux AMI 2018\.03 Packages](https://aws.amazon.com/amazon-linux-ami/2018-03-packages/) on the Amazon Linux AMI website\. |
| 51 | + |
| 52 | +## Ubuntu Server<a name="ami-contents-ubuntu-server"></a> |
| 53 | + |
| 54 | +To display the version of an Ubuntu Server instance, run the following command from the AWS Cloud9 IDE for the connected environment or from an SSH utility such as the ssh command or PuTTY\. |
| 55 | + |
| 56 | +``` |
| 57 | +lsb_release -a |
| 58 | +``` |
| 59 | + |
| 60 | +The version will display next to the **Description** field\. |
| 61 | + |
| 62 | +To display a list of packages that are installed on an Ubuntu Server, run one or more of the following commands\. |
| 63 | + |
| 64 | +To display all installed packages as a single list: |
| 65 | + |
| 66 | +``` |
| 67 | +sudo apt list --installed |
| 68 | +``` |
| 69 | + |
| 70 | +To display a list of installed packages with package names containing the specified text: |
| 71 | + |
| 72 | +``` |
| 73 | +sudo apt list --installed | grep YOUR_SEARCH_TERM |
| 74 | +``` |
| 75 | + |
| 76 | +In the preceding command, replace `YOUR_SEARCH_TERM` with some portion of the package name\. For example, to display a list of all installed packages with names containing `sql`: |
| 77 | + |
| 78 | +``` |
| 79 | +sudo apt list --installed grep sql |
| 80 | +``` |
| 81 | + |
| 82 | +To display a list of all installed packages, one page at a time: |
| 83 | + |
| 84 | +``` |
| 85 | +sudo apt list --installed | less |
| 86 | +``` |
| 87 | + |
| 88 | +To scroll through the displayed pages: |
| 89 | ++ To move down a line, press **j**\. |
| 90 | ++ To move up a line, press **k**\. |
| 91 | ++ To move down a page, press **Ctrl\-F**\. |
| 92 | ++ To move up a page, press **Ctrl\-B**\. |
| 93 | ++ To quit, press **q**\. |
| 94 | + |
| 95 | +For additional options, run the man apt command\. See also [Ubuntu Packages Search](https://packages.ubuntu.com/) on the Ubuntu website\. |
0 commit comments