How To Install lasi on CentOS 8

lasi is C++ library for creating Postscript documents

Introduction

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

What is lasi

LASi is a library written by Larry Siden that provides a C++ stream output interface ( with operator « ) for creating Postscript documents that can contain characters from any of the scripts and symbol blocks supported in Unicode and by Owen Taylor’s Pango layout engine. The library accommodates right-to-left scripts such as Arabic and Hebrew as easily as left-to-right scripts. Indic and Indic-derived Complex Text Layout (CTL) scripts, such as Devanagari, Thai, Lao, and Tibetan are supported to the extent provided by Pango and by the OpenType fonts installed on your system. All of this is provided without need for any special configuration or layout calculation on the programmer’s part. Although the capability to produce Unicode-based multilingual Postscript documents exists in large Open Source application framework libraries such as GTK+, QT, and KDE, LASi was designed for projects which require the ability to produce Postscript independent of any one application framework.

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

Install lasi 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 lasi using dnf by running the following command:

sudo dnf -y install lasi

Install lasi 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 lasi using yum by running the following command:

sudo yum -y install lasi

How To Uninstall lasi on CentOS 8

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

sudo dnf remove lasi

lasi Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/e3a5322f2f038ac86b69ef4fa76bf71d8bd398
/usr/lib64/libLASi.so.1
/usr/lib64/libLASi.so.1.0.1
/usr/share/doc/lasi
/usr/share/doc/lasi/AUTHORS
/usr/share/doc/lasi/COPYING
/usr/share/doc/lasi/ChangeLog.release
/usr/share/doc/lasi/README

References

Summary

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