How To Install httpd-filesystem.noarch on Amazon Linux 2

In this tutorial we learn how to install httpd-filesystem.noarch in Amazon Linux 2. httpd-filesystem.noarch is The basic directory layout for the Apache HTTP Server

Introduction

In this tutorial we learn how to install httpd-filesystem.noarch on Amazon Linux 2.

What is httpd-filesystem.noarch

The httpd-filesystem package contains the basic directory layout for the Apache HTTP Server including the correct permissions for the directories.

We can use yum to install httpd-filesystem.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install httpd-filesystem.noarch.

Install httpd-filesystem.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install httpd-filesystem.noarch using yum by running the following command:

sudo yum -y install httpd-filesystem.noarch

How To Uninstall httpd-filesystem.noarch on Amazon Linux 2

To uninstall only the httpd-filesystem.noarch package we can use the following command:

sudo yum remove httpd-filesystem.noarch

httpd-filesystem.noarch Package Contents on Amazon Linux 2

/etc/httpd
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/usr/lib/systemd/system/httpd.service.d
/usr/lib/systemd/system/httpd.socket.d
/usr/share/httpd
/usr/share/httpd/icons
/var/www
/var/www/cgi-bin
/var/www/html

References

Summary

In this tutorial we learn how to install httpd-filesystem.noarch on Amazon Linux 2 using yum.