How To Install root-unuran on CentOS 8

root-unuran is Random number generator library

Introduction

In this tutorial we learn how to install root-unuran on CentOS 8.

What is root-unuran

Contains universal (also called automatic or black-box) algorithms that can generate random numbers from large classes of continuous or discrete distributions, and also from practically all standard distributions. To generate random numbers the user must supply some information about the desired distribution, especially a C-function that computes the density and - depending on the chosen methods - some additional information (like the borders of the domain, the mode, the derivative of the density …). After a user has given this information an init-program computes all tables and constants necessary for the random variate generation. The sample program can then generate variates from the desired distribution.

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

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

sudo dnf -y install root-unuran

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

sudo yum -y install root-unuran

How To Uninstall root-unuran on CentOS 8

To uninstall only the root-unuran package we can use the following command:

sudo dnf remove root-unuran

root-unuran Package Contents on CentOS 8

/usr/include/root/TUnuran.h
/usr/include/root/TUnuranBaseDist.h
/usr/include/root/TUnuranContDist.h
/usr/include/root/TUnuranDiscrDist.h
/usr/include/root/TUnuranEmpDist.h
/usr/include/root/TUnuranMultiContDist.h
/usr/include/root/TUnuranSampler.h
/usr/lib/.build-id
/usr/lib/.build-id/66
/usr/lib/.build-id/66/84812769e83522de780d3510f3c3a72fe54ef9
/usr/lib64/root/libUnuran.rootmap
/usr/lib64/root/libUnuran.so
/usr/lib64/root/libUnuran.so.6.22
/usr/lib64/root/libUnuran.so.6.22.08
/usr/lib64/root/libUnuran_rdict.pcm
/usr/share/root/plugins/ROOT@@Math@@DistSampler/P010_TUnuranSampler.C

References

Summary

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