Check Micro Focus Cobol Version In Linux Upd — How To
The Micro Focus Run-Time System (RTS) shared library also contains version information. This is useful if you have only the runtime, not the full compiler.
Sample output:
| Method | Command | |--------|---------| | Official version tool | cobver | | Compiler version | cob -version or cob -V | | Embedded string in binary | what $COBDIR/bin/cob | | Package manager (RPM) | rpm -qi microfocus-cobol | | Package manager (DEB) | dpkg -s microfocus-cobol | | Runtime library version | strings $COBDIR/lib/libcobrts.so | grep -i "micro focus" | | Config tool version | cobconfig -version | how to check micro focus cobol version in linux
Micro Focus sets specific environment variables during installation. While they don’t directly show the version, they can guide you to the correct installation directory.
If the software was installed via a standard package manager like rpm (on RHEL/CentOS/SLES) or dpkg (on Ubuntu/Debian), you can query the database: rpm -qa | grep -i cobol Ubuntu/Debian: dpkg -l | grep -i cobol Troubleshooting: "Command Not Found" The Micro Focus Run-Time System (RTS) shared library
If you have access to the Micro Focus License Manager:
mf-cobol-enterprise-server , mf-cobol-runtime , visual-cobol-dev While they don’t directly show the version, they
Note: If cobc --version returns "GNU COBOL", you are NOT using Micro Focus. Be careful.
Or:
Common installation paths often look like /opt/microfocus/VisualCOBOL or /opt/microfocus/cobol80 , where the trailing digits indicate the major version. 5. Using Linux Package Managers
