macOS
brew install gnucobollocal Homebrew formula metadata
sudo port install gnucobolMacPorts ports tree · lang/gnucobol/Portfile · source: api.github.com
brew
COBOL85-202x compiler supporting lots of dialect specific extensions. Version 3.2 via Homebrew; verified 2026-06-28.
install
brew install gnucobollocal Homebrew formula metadata
sudo port install gnucobolMacPorts ports tree · lang/gnucobol/Portfile · source: api.github.com
sudo apk add gnucobolAlpine Linux edge package indexes · gnucobol · source: dl-cdn.alpinelinux.org
sudo apt install gnucobolDebian stable package indexes · gnucobol · source: deb.debian.org
sudo dnf install gnucobolFedora Rawhide package metadata · gnucobol · source: dl.fedoraproject.org
nix profile install nixpkgs#gnucobolnixpkgs package indexes · pkgs/by-name/gn/gnucobol/package.nix · source: api.github.com
sudo zypper install gnucobolopenSUSE Tumbleweed package metadata · gnucobol · source: download.opensuse.org
overview
COBOL85-202x compiler supporting lots of dialect specific extensions
history
GnuCOBOL is a free COBOL compiler that translates COBOL source to C and then uses the configured C compiler to produce native code. Its importance comes from keeping COBOL available in the GNU toolchain and package-manager world while supporting many historical dialects and newer COBOL standards features.
The project began as OpenCOBOL around 2002. The FAQ credits Keisuke Nishida as the initial developer, influenced by TinyCOBOL, records the first public 0.9.0 release on January 25, 2002, and notes Roger While taking the lead developer role in 2004. OpenCOBOL 1.0 followed in 2007, and the 1.1 line became the basis for the GNU-era package.
OpenCOBOL was accepted as an official GNU project on September 27, 2013 and first rebranded as GNU Cobol. The spelling GnuCOBOL became preferred in September 2014, Simon Sobisch became project lead in 2014, and the FAQ records Free Software Foundation copyright assignment becoming legally binding in June 2015 for the source tree dating back to the original public release.
Later releases expanded dialect handling, diagnostics, runtime behavior, source-level debugging, report writer support, JSON and XML generation, and compatibility with older and vendor-specific COBOL styles. The project page describes GnuCOBOL 3.2 as producing native executables and supporting Linux, BSD, proprietary Unix systems, macOS, Windows, and other platforms.
GnuCOBOL serves a particular adoption niche: organizations and individual programmers with COBOL code can compile and test it with a free compiler, often on commodity Unix-like systems. The FAQ says OpenCOBOL and GnuCOBOL have been used in production environments, while also warning that each production use needs risk analysis.
Its package-manager significance is amplified by COBOL's long commercial history. GnuCOBOL lets package repositories ship a working COBOL compiler without tying users to proprietary mainframe or vendor compiler ecosystems, and its LGPL runtime allows commercial use of generated programs under the stated license terms.
Practitioners use cobc to compile COBOL files into modules, object files, C output, or executable programs. Typical workflows include building legacy COBOL with dialect options such as -std, compiling free-format or fixed-format source, integrating C libraries, running modules with cobcrun, and using compiler listings or warning modes during modernization.
The package is also used for teaching, migration experiments, CI checks for COBOL code, and prototyping around vendor dialects. Because GnuCOBOL emits C, users can lean on the host compiler, linker, debugger, and platform libraries rather than requiring a dedicated COBOL runtime environment for every step.
GnuCOBOL is the rare package that makes a historically enterprise language feel like a normal open-source compiler dependency. For package maintainers it is a bridge between COBOL archives and modern Unix build systems; for language-runtime collectors it is a compact way to keep COBOL executable on laptops, CI runners, and free-software distributions.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cob-config | cli | global executable | |
cobc | cli | global executable | |
cobcrun | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gnucobol.sourceforge.io/
install metadata
| Package key | brew:gnucobol |
|---|---|
| Version | 3.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gnucobol |
| Homepage | https://gnucobol.sourceforge.io/ |
| Upstream docs | https://gnucobol.sourceforge.io/doc/gnucobol.html |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/gnucobol/gnucobol-3.2.tar.xz |
| Last updated | 2026-06-28T03:24:27Z |
| Pulse | updated |
| Dependencies | berkeley-db, gmp, json-c |
| Build dependencies | pkgconf |
| Uses from macOS | libxml2, ncurses |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gnucobol |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gnucobol 5
compiler package for default GnuCOBOL
sudo apt install gnucobolgnucobol
nix profile install nixpkgs#gnucobolgnucobol 5
compiler package for default GnuCOBOL
sudo apt install gnucobolgnucobol 3.2-r0
GnuCOBOL compiler
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobolgnucobol-doc 3.2-r0
GnuCOBOL compiler (documentation)
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobol-docgnucobol-lang 3.2-r0
Languages for package gnucobol
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobol-langlibcob4 3.2-r0
GnuCOBOL runtime library
https://www.gnu.org/software/gnucobol/
sudo apk add libcob4gnucobol 3.2-9.fc44
COBOL compiler
https://www.gnu.org/software/gnucobol/
sudo dnf install gnucobolgnucobol-esql 3.2-9.fc44
ESQL for GnuCOBOL
https://www.gnu.org/software/gnucobol/
sudo dnf install gnucobol-esqllibcob 3.2-9.fc44
GnuCOBOL runtime library
https://www.gnu.org/software/gnucobol/
sudo dnf install libcobgnucobol 3.2-3.3
A COBOL compiler
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobolgnucobol-esql 3.2-3.3
ESQL for GnuCOBOL
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobol-esqlgnucobol-esql-devel 3.2-3.3
Devel package for ESQL
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobol-esql-devellibcob4 3.2-3.3
GnuCOBOL shared library
https://www.gnu.org/software/gnucobol/
sudo zypper install libcob4gnucobol
sudo port install gnucobolsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.