How To Install zfp on Rocky Linux 8
Introduction
In this tutorial we learn how to install zfp
on Rocky Linux 8.
What is zfp
This is zfp, an open source C/C++ library for compressed numerical arrays that support high throughput read and write random access. zfp was written by Peter Lindstrom at Lawrence Livermore National Laboratory, and is loosely based on the algorithm described in the following paper Peter Lindstrom “Fixed-Rate Compressed Floating-Point Arrays” IEEE Transactions on Visualization and Computer Graphics, 20(12) doi zfp was originally designed for floating-point data only, but has been extended to also support integer data, and could for instance be used to compress images and quantized volumetric data. To achieve high compression ratios, zfp uses lossy but optionally error-bounded compression. Although bit-for-bit lossless compression of floating-point data is not always possible, zfp is usually accurate to within machine epsilon in near-lossless mode. zfp works best for 2D and 3D arrays that exhibit spatial coherence, such as smooth fields from physics simulations, images, regularly sampled terrain surfaces, etc. Although zfp also provides a 1D array class that can be used for 1D signals such as audio, or even unstructured floating-point streams, the compression scheme has not been well optimized for this use case, and rate and quality may not be competitive with floating-point compressors designed specifically for 1D streams.
We can use yum
or dnf
to install zfp
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install zfp.
Install zfp on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install zfp
using dnf
by running the following command:
sudo dnf -y install zfp
Install zfp on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install zfp
using yum
by running the following command:
sudo yum -y install zfp
How To Uninstall zfp on Rocky Linux 8
To uninstall only the zfp
package we can use the following command:
sudo dnf remove zfp
zfp Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/41
/usr/lib/.build-id/41/fcd6faeb4e1364e4e1b9163fb96f1662419e82
/usr/lib64/libzfp.so.0
/usr/lib64/libzfp.so.0.5.5
/usr/share/doc/zfp
/usr/share/doc/zfp/README.md
/usr/share/doc/zfp/VERSIONS.md
/usr/share/licenses/zfp
/usr/share/licenses/zfp/LICENSE
References
Summary
In this tutorial we learn how to install zfp
on Rocky Linux 8 using yum and dnf.