How To Install ipcalc on Rocky Linux 8
Introduction
In this tutorial we learn how to install ipcalc
on Rocky Linux 8.
What is ipcalc
ipcalc provides a simple way to calculate IP information for a host or network. Depending on the options specified, it may be used to provide IP network information in human readable format, in a format suitable for parsing in scripts, generate random private addresses, resolve an IP address, or check the validity of an address.
We can use yum
or dnf
to install ipcalc
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ipcalc.
Install ipcalc 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 ipcalc
using dnf
by running the following command:
sudo dnf -y install ipcalc
Install ipcalc 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 ipcalc
using yum
by running the following command:
sudo yum -y install ipcalc
How To Uninstall ipcalc on Rocky Linux 8
To uninstall only the ipcalc
package we can use the following command:
sudo dnf remove ipcalc
ipcalc Package Contents on Rocky Linux 8
/usr/bin/ipcalc
/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/021da86e8404c8ea359b3f04b617ad9308c010
/usr/share/doc/ipcalc
/usr/share/doc/ipcalc/README.md
/usr/share/licenses/ipcalc
/usr/share/licenses/ipcalc/COPYING
/usr/share/man/man1/ipcalc.1.gz
References
Summary
In this tutorial we learn how to install ipcalc
on Rocky Linux 8 using yum and dnf.