How To Install rest2web on Ubuntu 18.04

In this tutorial we learn how to install rest2web on Ubuntu 18.04. rest2web is web site builder using ReStructured Text as basic content format

Introduction

In this tutorial we learn how to install rest2web on Ubuntu 18.04.

What is rest2web

rest2web is:

rest2web is a simple tool that lets you build your website from a single template (or as many as you want), and keep the contents in ReStructured Text (docutils; you can still keep pages in HTML if needed). The prefix “rest” does not in any way allude to the concept of “representational state transfer.”

The tool provides a host of features, for example:

  • Automatically builds index pages and navigation links (sidebars and breadcrumbs).
  • Aids with the translation of the site to other languages.
  • Embedded code in templates for unlimited expressiveness.
  • Flexible macro system.
  • Uses relative links, so sites can be viewed from the filesystem.
  • Uses unicode internally.
  • Built-in gallery creator plugin.

Adding new pages is as easy as dropping a text file into the right folder; rest2web builds the new page and adds a link to it in the index (optionally with a description as well). Removing a page is just as easy: delete the file, and when you run rest2web again it removes the entry.

There are three methods to install rest2web on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rest2web Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rest2web using apt-get by running the following command:

sudo apt-get -y install rest2web

Install rest2web Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rest2web using apt by running the following command:

sudo apt -y install rest2web

Install rest2web Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rest2web using aptitude by running the following command:

sudo aptitude -y install rest2web

How To Uninstall rest2web on Ubuntu 18.04

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

sudo apt-get remove rest2web

Uninstall rest2web And Its Dependencies

To uninstall rest2web and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove rest2web

Remove rest2web Configurations and Data

To remove rest2web configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rest2web

Remove rest2web configuration, data, and all of its dependencies

We can use the following command to remove rest2web configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rest2web

References

Summary

In this tutorial we learn how to install rest2web package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.