How To Install bc on Rocky Linux 8
Introduction
In this tutorial we learn how to install bc
on Rocky Linux 8.
What is bc
The bc package includes bc and dc. Bc is an arbitrary precision numeric processing arithmetic language. Dc is an interactive arbitrary precision stack based calculator, which can be used as a text mode calculator. Install the bc package if you need its number handling capabilities or if you would like to use its text mode calculator.
We can use yum
or dnf
to install bc
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bc.
Install bc 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 bc
using dnf
by running the following command:
sudo dnf -y install bc
Install bc 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 bc
using yum
by running the following command:
sudo yum -y install bc
How To Uninstall bc on Rocky Linux 8
To uninstall only the bc
package we can use the following command:
sudo dnf remove bc
bc Package Contents on Rocky Linux 8
/usr/bin/bc
/usr/bin/dc
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/2c2983d653552ae6fee9da5c461cfd3d87f7cd
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/9377184ae645570304cf778162f76481b9fa9b
/usr/share/doc/bc
/usr/share/doc/bc/AUTHORS
/usr/share/doc/bc/Examples
/usr/share/doc/bc/Examples/ckbook.b
/usr/share/doc/bc/Examples/pi.b
/usr/share/doc/bc/Examples/primes.b
/usr/share/doc/bc/Examples/twins.b
/usr/share/doc/bc/FAQ
/usr/share/doc/bc/NEWS
/usr/share/doc/bc/README
/usr/share/info/bc.info.gz
/usr/share/info/dc.info.gz
/usr/share/licenses/bc
/usr/share/licenses/bc/COPYING
/usr/share/licenses/bc/COPYING.LIB
/usr/share/man/man1/bc.1.gz
/usr/share/man/man1/dc.1.gz
References
Summary
In this tutorial we learn how to install bc
on Rocky Linux 8 using yum and dnf.