Install COBOL on Ubuntu
| Update apt | |
| Install gnucobol | |
| cobc --version |
Update apt
On Ubuntu you install COBOL from the system repositories. Refresh the package list first:
sudo apt update
Install gnucobol
The gnucobol package brings the compiler and the runtime:
sudo apt install gnucobol
cobc --version
Check the compiler after the install:
cobc --version
Next: Install COBOL on Rocky Linux
Article author: Arthur Isaev