How To Install rest on CentOS 8

rest is A library for access to RESTful web services A library for access to RESTful web services

Introduction

In this tutorial we learn how to install rest on CentOS 8.

What is rest

This library was designed to make it easier to access web services that claim to be “RESTful”. A RESTful service should have urls that represent remote objects, which methods can then be called on. The majority of services don’t actually adhere to this strict definition. Instead, their RESTful end point usually has an API that is just simpler to use compared to other types of APIs they may support (XML-RPC, for instance). It is this kind of API that this library is attempting to support. rest 0.8.1 2.el8 x86_64 70 k rest-0.8.1-2.el8.src.rpm appstream A library for access to RESTful web services http LGPLv2 This library was designed to make it easier to access web services that claim to be “RESTful”. A RESTful service should have urls that represent remote objects, which methods can then be called on. The majority of services don’t actually adhere to this strict definition. Instead, their RESTful end point usually has an API that is just simpler to use compared to other types of APIs they may support (XML-RPC, for instance). It is this kind of API that this library is attempting to support.

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

Install rest on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install rest

Install rest on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install rest

How To Uninstall rest on CentOS 8

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

sudo dnf remove rest

rest Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/991b94045a748bd63ef3e6e51556ef5a281608
/usr/lib/.build-id/23
/usr/lib/.build-id/23/43e1a82719fb16fe4e91f8665ff17cc26ff1c9
/usr/lib64/girepository-1.0/Rest-0.7.typelib
/usr/lib64/girepository-1.0/RestExtras-0.7.typelib
/usr/lib64/librest-0.7.so.0
/usr/lib64/librest-0.7.so.0.0.0
/usr/lib64/librest-extras-0.7.so.0
/usr/lib64/librest-extras-0.7.so.0.0.0
/usr/share/doc/rest
/usr/share/doc/rest/AUTHORS
/usr/share/doc/rest/README
/usr/share/licenses/rest
/usr/share/licenses/rest/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/261608627209a04b36799fcaa5d31ba52fc60c
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/73be49ce705df7d486c97eb583f9a5d15784c8
/usr/lib/girepository-1.0/Rest-0.7.typelib
/usr/lib/girepository-1.0/RestExtras-0.7.typelib
/usr/lib/librest-0.7.so.0
/usr/lib/librest-0.7.so.0.0.0
/usr/lib/librest-extras-0.7.so.0
/usr/lib/librest-extras-0.7.so.0.0.0
/usr/share/doc/rest
/usr/share/doc/rest/AUTHORS
/usr/share/doc/rest/README
/usr/share/licenses/rest
/usr/share/licenses/rest/COPYING

References

Summary

In this tutorial we learn how to install rest on CentOS 8 using yum and dnf.