How To Install libghc-atomic-write-doc on Kali Linux
Introduction
In this tutorial we learn how to install libghc-atomic-write-doc on Kali Linux.
What is libghc-atomic-write-doc
libghc-atomic-write-doc is:
Atomically write to a file on POSIX-compliant systems while preserving permissions.
On most Unix systems, mv is an atomic operation. This makes it simple to
write to a file atomically just by using the mv operation. However, this will
destroy the permissions on the original file. This library does the following
to preserve permissions while atomically writing to a file:
If an original file exists, take those permissions and apply them to the temp file before
mving the file into place.If the original file does not exist, create a following with default permissions (based on the currently-active umask).
This way, when the file is mv‘ed into place, the permissions will be the
ones held by the original file.
This library is based on similar implementations found in common libraries in Ruby and Python.
This package provides the documentation for a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
There are three methods to install libghc-atomic-write-doc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libghc-atomic-write-doc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libghc-atomic-write-doc using apt-get by running the following command:
sudo apt-get -y install libghc-atomic-write-docInstall libghc-atomic-write-doc Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libghc-atomic-write-doc using apt by running the following command:
sudo apt -y install libghc-atomic-write-docInstall libghc-atomic-write-doc Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libghc-atomic-write-doc using aptitude by running the following command:
sudo aptitude -y install libghc-atomic-write-docHow To Uninstall libghc-atomic-write-doc on Kali Linux
To uninstall only the libghc-atomic-write-doc package we can use the following command:
sudo apt-get remove libghc-atomic-write-docUninstall libghc-atomic-write-doc And Its Dependencies
To uninstall libghc-atomic-write-doc and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libghc-atomic-write-docRemove libghc-atomic-write-doc Configurations and Data
To remove libghc-atomic-write-doc configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libghc-atomic-write-docRemove libghc-atomic-write-doc configuration, data, and all of its dependencies
We can use the following command to remove libghc-atomic-write-doc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-atomic-write-docDependencies
libghc-atomic-write-doc have the following dependencies:
References
Summary
In this tutorial we learn how to install libghc-atomic-write-doc package on Kali Linux using different package management tools: apt, apt-get and aptitude.