How To Install gnucobol on Fedora 34

gnucobol is COBOL compiler

Introduction

In this tutorial we learn how to install gnucobol on Fedora 34.

What is gnucobol

COBOL compiler, which translates COBOL programs to C code and compiles them using GCC.

We can use yum or dnf to install gnucobol on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gnucobol.

Install gnucobol on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gnucobol using dnf by running the following command:

sudo dnf -y install gnucobol

Install gnucobol on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gnucobol using yum by running the following command:

sudo yum -y install gnucobol

How To Uninstall gnucobol on Fedora 34

To uninstall only the gnucobol package we can use the following command:

sudo dnf remove gnucobol

gnucobol Package Contents on Fedora 34

/usr/bin/cob-config
/usr/bin/cobc
/usr/bin/cobcrun
/usr/include/libcob
/usr/include/libcob.h
/usr/include/libcob/cobgetopt.h
/usr/include/libcob/common.h
/usr/include/libcob/exception-io.def
/usr/include/libcob/exception.def
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/13cdb3575e454699a54dc7431f569b3fd8d5e3
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/b86739f0080669bc90123073cfe7d88af14ce2
/usr/lib64/gnucobol
/usr/lib64/gnucobol/CBL_OC_DUMP.so
/usr/lib64/libcob.so
/usr/share/doc/gnucobol
/usr/share/doc/gnucobol/AUTHORS
/usr/share/doc/gnucobol/ChangeLog
/usr/share/doc/gnucobol/NEWS
/usr/share/doc/gnucobol/README
/usr/share/doc/gnucobol/THANKS
/usr/share/gnucobol
/usr/share/gnucobol/config
/usr/share/gnucobol/config/acu-strict.conf
/usr/share/gnucobol/config/acu.conf
/usr/share/gnucobol/config/acu.words
/usr/share/gnucobol/config/bs2000-strict.conf
/usr/share/gnucobol/config/bs2000.conf
/usr/share/gnucobol/config/bs2000.words
/usr/share/gnucobol/config/cobol2002.conf
/usr/share/gnucobol/config/cobol2002.words
/usr/share/gnucobol/config/cobol2014.conf
/usr/share/gnucobol/config/cobol2014.words
/usr/share/gnucobol/config/cobol85.conf
/usr/share/gnucobol/config/cobol85.words
/usr/share/gnucobol/config/default.conf
/usr/share/gnucobol/config/ibm-strict.conf
/usr/share/gnucobol/config/ibm.conf
/usr/share/gnucobol/config/ibm.words
/usr/share/gnucobol/config/lax.conf-inc
/usr/share/gnucobol/config/mf-strict.conf
/usr/share/gnucobol/config/mf.conf
/usr/share/gnucobol/config/mf.words
/usr/share/gnucobol/config/mvs-strict.conf
/usr/share/gnucobol/config/mvs.conf
/usr/share/gnucobol/config/mvs.words
/usr/share/gnucobol/config/realia-strict.conf
/usr/share/gnucobol/config/realia.conf
/usr/share/gnucobol/config/realia.words
/usr/share/gnucobol/config/rm-strict.conf
/usr/share/gnucobol/config/rm.conf
/usr/share/gnucobol/config/rm.words
/usr/share/gnucobol/config/runtime.cfg
/usr/share/gnucobol/config/runtime_empty.cfg
/usr/share/gnucobol/config/xopen.conf
/usr/share/gnucobol/copy
/usr/share/gnucobol/copy/screenio.cpy
/usr/share/gnucobol/copy/sqlca.cpy
/usr/share/gnucobol/copy/sqlda.cpy
/usr/share/gnucobol/copy/xfhfcd.cpy
/usr/share/gnucobol/copy/xfhfcd3.cpy
/usr/share/info/gnucobol.info.gz
/usr/share/licenses/gnucobol
/usr/share/licenses/gnucobol/COPYING
/usr/share/licenses/gnucobol/COPYING.DOC
/usr/share/locale/de/LC_MESSAGES/gnucobol.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/gnucobol.mo
/usr/share/locale/en@quot/LC_MESSAGES/gnucobol.mo
/usr/share/locale/es/LC_MESSAGES/gnucobol.mo
/usr/share/locale/fr/LC_MESSAGES/gnucobol.mo
/usr/share/locale/it/LC_MESSAGES/gnucobol.mo
/usr/share/locale/ja/LC_MESSAGES/gnucobol.mo
/usr/share/locale/nl/LC_MESSAGES/gnucobol.mo
/usr/share/locale/pt/LC_MESSAGES/gnucobol.mo
/usr/share/locale/sr/LC_MESSAGES/gnucobol.mo
/usr/share/locale/sv/LC_MESSAGES/gnucobol.mo
/usr/share/man/man1/cob-config.1.gz
/usr/share/man/man1/cobc.1.gz
/usr/share/man/man1/cobcrun.1.gz

References

Summary

In this tutorial we learn how to install gnucobol on Fedora 34 using yum and dnf.