How To Install ghc-zip-archive on Fedora 36

In this tutorial we learn how to install ghc-zip-archive in Fedora 36. ghc-zip-archive is Library for creating and modifying zip archives

Introduction

In this tutorial we learn how to install ghc-zip-archive on Fedora 36.

What is ghc-zip-archive

The zip-archive library provides functions for creating, modifying, and extracting files from zip archives. The zip archive format is documented in <http Certain simplifying assumptions are made about the zip archives there is no support for strong encryption, zip files that span multiple disks, ZIP64, OS-specific file attributes, or compression methods other than Deflate. However, the library should be able to read the most common zip archives, and the archives it produces should be readable by all standard unzip programs. Archives are built and extracted in memory, so manipulating large zip files will consume a lot of memory. If you work with large zip files or need features not supported by this library, a better choice may be <http streaming approach. However, zip can only read and write archives inside instances of MonadIO, so zip-archive is a better choice if you want to manipulate zip archives in “pure” contexts. As an example of the use of the library, a standalone zip archiver and extracter is provided in the source distribution.

We can use yum or dnf to install ghc-zip-archive on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-zip-archive.

Install ghc-zip-archive on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-zip-archive using dnf by running the following command:

sudo dnf -y install ghc-zip-archive

Install ghc-zip-archive on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-zip-archive using yum by running the following command:

sudo yum -y install ghc-zip-archive

How To Uninstall ghc-zip-archive on Fedora 36

To uninstall only the ghc-zip-archive package we can use the following command:

sudo dnf remove ghc-zip-archive

ghc-zip-archive Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/a9e97c5b2ebfbe2fcfb6d152a1c01c9f1ef55e
/usr/lib64/libHSzip-archive-0.4.1-BuTuWed791v129BXenDG9e-ghc8.10.5.so
/usr/share/licenses/ghc-zip-archive
/usr/share/licenses/ghc-zip-archive/LICENSE

References

Summary

In this tutorial we learn how to install ghc-zip-archive on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).