Please See Installing Lazarus on Linux - a page that covers most of what you need for most Linux Distributions.
Fedora 22 and newer
editsudo dnf install lazarus
The latest packages that are included by default on Fedora 38 are:
- lazarus 2.2.6
- fpc 3.2.2
Fedora 21 and below
editsudo yum install lazarus
Install latest packages
editDownload the latest RPM packages from SourceForge. You need to download the appropriate packages for:
- fpc
- fpc-src
- lazarus
Navigate to your download folder and install the packages in the following order:
sudo dnf install fpc-3.2.2-1.x86_64.rpm
sudo dnf install fpc-src-3.2.2-1.x86_64.rpm
sudo dnf install lazarus-2.2.6-0.x86_64.rpm
Of course you need to replace the filenames in the example above with the files you downloaded before.