Automic VaultAutomic Vault

brew

Install gnucobol with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

COBOL85-202x compiler supporting lots of dialect specific extensions. Version 3.2 via Homebrew; verified 2026-06-28.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gnucobol

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gnucobol

MacPorts ports tree · lang/gnucobol/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add gnucobol

Alpine Linux edge package indexes · gnucobol · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install gnucobol

Debian stable package indexes · gnucobol · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install gnucobol

Fedora Rawhide package metadata · gnucobol · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#gnucobol

nixpkgs package indexes · pkgs/by-name/gn/gnucobol/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install gnucobol

openSUSE Tumbleweed package metadata · gnucobol · source: download.opensuse.org

overview

Package summary

COBOL85-202x compiler supporting lots of dialect specific extensions

Commands and aliases

  • cob-config
  • cobc
  • cobcrun

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2002: OpenCOBOL 0.9.0 was publicly released.
  • 2004: Roger While took the lead developer role.
  • 2013: OpenCOBOL was accepted as an official GNU project and rebranded as GNU Cobol.
  • 2014: GnuCOBOL became the preferred spelling and Simon Sobisch became project lead.
  • 2015: FSF copyright assignment for the source tree became legally binding.
  • 2023: GnuCOBOL 3.2 was released.

Related projects

  • Related projects include TinyCOBOL, the COBOL 85/2002/2014 standards, GCC or another configured C compiler, libcob, GDB, OpenCOBOLIDE, and vendor dialects such as IBM, Micro Focus, ACUCOBOL-GT, RM/COBOL, and GCOS.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cob-configcliglobal executable
cobccliglobal executable
cobcruncliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version3.2
manager updated2026-06-28
local dataok
upstreamnot checked
latest detectednot detected

https://gnucobol.sourceforge.io/

install metadata

Package metadata

Package keybrew:gnucobol
Version3.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gnucobol
Homepagehttps://gnucobol.sourceforge.io/
Upstream docshttps://gnucobol.sourceforge.io/doc/gnucobol.html
LicenseGPL-3.0-or-later
Source archivehttps://ftpmirror.gnu.org/gnu/gnucobol/gnucobol-3.2.tar.xz
Last updated2026-06-28T03:24:27Z
Pulseupdated
Dependenciesberkeley-db, gmp, json-c
Build dependenciespkgconf
Uses from macOSlibxml2, ncurses
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegnucobol
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

gnucobol 5

compiler package for default GnuCOBOL

sudo apt install gnucobol
  • Section: devel
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Gnucobol
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gnucobol from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gnucobol

nix profile install nixpkgs#gnucobol
  • normalized package name match
  • Matched by: Gnucobol
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gn/gnucobol/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gnucobol 5

compiler package for default GnuCOBOL

sudo apt install gnucobol
  • Section: universe/devel
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Gnucobol
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gnucobol from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gnucobol 3.2-r0

GnuCOBOL compiler

https://www.gnu.org/software/gnucobol/

sudo apk add gnucobol
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3
  • Architecture: x86_64
  • Source Package: gnucobol
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gnucobol
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gnucobol from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gnucobol-doc 3.2-r0

GnuCOBOL compiler (documentation)

https://www.gnu.org/software/gnucobol/

sudo apk add gnucobol-doc
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3
  • Architecture: x86_64
  • Source Package: gnucobol
  • normalized package name match
  • Matched by: Gnucobol
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gnucobol-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gnucobol-lang 3.2-r0

Languages for package gnucobol

https://www.gnu.org/software/gnucobol/

sudo apk add gnucobol-lang
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3
  • Architecture: x86_64
  • Source Package: gnucobol
  • normalized package name match
  • Matched by: Gnucobol
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gnucobol-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libcob4 3.2-r0

GnuCOBOL runtime library

https://www.gnu.org/software/gnucobol/

sudo apk add libcob4
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3
  • Architecture: x86_64
  • Source Package: gnucobol
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gnucobol
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libcob4 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

gnucobol 3.2-9.fc44

COBOL compiler

https://www.gnu.org/software/gnucobol/

sudo dnf install gnucobol
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-only AND FSFAP AND GPL-2.0-or-later AND LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gnucobol
  • 9 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gnucobol
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gnucobol from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gnucobol-esql 3.2-9.fc44

ESQL for GnuCOBOL

https://www.gnu.org/software/gnucobol/

sudo dnf install gnucobol-esql
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gnucobol
  • 6 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gnucobol
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gnucobol-esql from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libcob 3.2-9.fc44

GnuCOBOL runtime library

https://www.gnu.org/software/gnucobol/

sudo dnf install libcob
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gnucobol
  • 8 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gnucobol
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libcob from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

gnucobol 3.2-3.3

A COBOL compiler

https://www.gnu.org/software/gnucobol/

sudo zypper install gnucobol
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gnucobol
  • 4 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Gnucobol
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gnucobol from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gnucobol-esql 3.2-3.3

ESQL for GnuCOBOL

https://www.gnu.org/software/gnucobol/

sudo zypper install gnucobol-esql
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gnucobol
  • 5 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Gnucobol
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gnucobol-esql from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gnucobol-esql-devel 3.2-3.3

Devel package for ESQL

https://www.gnu.org/software/gnucobol/

sudo zypper install gnucobol-esql-devel
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gnucobol
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gnucobol
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gnucobol-esql-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libcob4 3.2-3.3

GnuCOBOL shared library

https://www.gnu.org/software/gnucobol/

sudo zypper install libcob4
  • License: LGPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gnucobol
  • 8 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gnucobol
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcob4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gnucobol

sudo port install gnucobol
  • normalized package name match
  • Matched by: Gnucobol
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/gnucobol/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment