How To Install yaws on CentOS 7

In this tutorial we learn how to install yaws on CentOS 7. yaws is Web server for dynamic content written in Erlang

Introduction

In this tutorial we learn how to install yaws on CentOS 7.

What is yaws

HTTP 1.0 and HTTP 1.1 web server capable of both static content page delivery and dynamic content generation using embedded Erlang code in the HTML pages. It provides virtual hosting capabilities and implements HTTP tracing and other debugging functionality such as interactive interpreter environment. Performance can be boosted with built-in support for RAM caching and streaming capabilities of dynamically generated content. Among security features are SSL and support for WWW-Authenticated pages.

We can use yum or dnf to install yaws on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install yaws.

Install yaws on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install yaws using yum by running the following command:

sudo yum -y install yaws

Install yaws on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install yaws using dnf by running the following command:

sudo dnf -y install yaws

How To Uninstall yaws on CentOS 7

To uninstall only the yaws package we can use the following command:

sudo dnf remove yaws

References

Summary

In this tutorial we learn how to install yaws on CentOS 7 using yum and dnf.