How To Install gnucobol on Rocky Linux 8

In this tutorial we learn how to install gnucobol on Rocky Linux 8. gnucobol is COBOL compiler

Introduction

In this tutorial we learn how to install gnucobol on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gnucobol.

Install gnucobol on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install gnucobol

Install gnucobol on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove gnucobol

gnucobol Package Contents on Rocky Linux 8

/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/25
/usr/lib/.build-id/25/3f1d5a6077ed7e648af8534eaab5fd480dda0b
/usr/lib/.build-id/64
/usr/lib/.build-id/64/8c2cbf8123962ae070282cd8f84aa15c653329
/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 Rocky Linux 8 using yum and dnf.