How To Install fpc on CentOS 8
Introduction
In this tutorial we learn how to install fpc on CentOS 8.
What is fpc
Free Pascal is a free 32/64bit Pascal Compiler. It comes with a run-time library and is fully compatible with Turbo Pascal 7.0 and nearly Delphi compatible. Some extensions are added to the language, like function overloading and generics. Shared libraries can be linked. This package contains the command-line compiler and utilities. Provided units are the runtime library (RTL), free component library (FCL) and packages.
We can use yum or dnf to install fpc on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install fpc.
Install fpc on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install fpc using yum by running the following command:
sudo yum -y install fpc
Install fpc on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install fpc using dnf by running the following command:
sudo dnf -y install fpc
How To Uninstall fpc on CentOS 8
To uninstall only the fpc package we can use the following command:
sudo dnf remove fpc
References
Summary
In this tutorial we learn how to install fpc on CentOS 8 using yum and dnf.