Install COBOL on Rocky Linux
| Update dnf | |
| Install gnucobol | |
| cobc --version |
Update dnf
On Rocky Linux the compiler comes from the base repositories. Refresh the package index first:
sudo dnf check-update
Install gnucobol
Install gnucobol with dnf:
sudo dnf install gnucobol
cobc --version
Check the compiler after the install:
cobc --version
Next: Install COBOL on macOS
Article author: Arthur Isaev