How To Install hercules on Fedora 34

hercules is Hercules S/370, ESA/390, and z/Architecture emulator

Introduction

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

What is hercules

Hercules is an emulator for the IBM System/370, ESA/390, and z/Architecture series of mainframe computers. It is capable of running any IBM operating system and applications that a real system will run, as long as the hardware needed is emulated. Hercules can emulate FBA and CKD DASD, tape, printer, card reader, card punch, channel-to-channel adapter, LCS Ethernet, and printer-keyboard, 3270 terminal, and 3287 printer devices.

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

Install hercules 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 hercules using dnf by running the following command:

sudo dnf -y install hercules

Install hercules 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 hercules using yum by running the following command:

sudo yum -y install hercules

How To Uninstall hercules on Fedora 34

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

sudo dnf remove hercules

hercules Package Contents on Fedora 34

/etc/hercules
/etc/hercules/generic.prm
/etc/hercules/hercules.cnf
/usr/bin/cckd2ckd
/usr/bin/cckdcdsk
/usr/bin/cckdcomp
/usr/bin/cckddiag
/usr/bin/cckdswap
/usr/bin/cfba2fba
/usr/bin/ckd2cckd
/usr/bin/dasdcat
/usr/bin/dasdconv
/usr/bin/dasdcopy
/usr/bin/dasdinit
/usr/bin/dasdisup
/usr/bin/dasdload
/usr/bin/dasdls
/usr/bin/dasdpdsu
/usr/bin/dasdseq
/usr/bin/dmap2hrc
/usr/bin/fba2cfba
/usr/bin/hercifc
/usr/bin/herclin
/usr/bin/hercules
/usr/bin/hetget
/usr/bin/hetinit
/usr/bin/hetmap
/usr/bin/hetupd
/usr/bin/tapecopy
/usr/bin/tapemap
/usr/bin/tapesplt
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/558d648879c69db5b29a3f965e4d7594ccb98b
/usr/lib/.build-id/05
/usr/lib/.build-id/05/ef13c6cbcfaa82888bf593cec220e0fb3e83c6
/usr/lib/.build-id/06
/usr/lib/.build-id/06/c1560147fca2aed39c324db0cbd81880f8c819
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/5894a248cbe9f0582037ccf2acc19d6939af01
/usr/lib/.build-id/13
/usr/lib/.build-id/13/4ffdef489d1230587d9eb9230a30321b4e46de
/usr/lib/.build-id/15
/usr/lib/.build-id/15/2e5f64d997858442c75c3756da86aff4e05aaa
/usr/lib/.build-id/16
/usr/lib/.build-id/16/451d3b7ad757211bfefc2c699813ce71329181
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/1795d4151bfdd46ce4fc012c1a39efa8053951
/usr/lib/.build-id/1b/6d40884d0bbd0f82404dbed28bc3bfb72ac5e6
/usr/lib/.build-id/26
/usr/lib/.build-id/26/95758cf785a74106e79488f3e71abc61c7d902
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/a39501a5f4e3e5845f8101e2c209268609c2d4
/usr/lib/.build-id/34
/usr/lib/.build-id/34/4cbb4ba134c6470e5967141ebc012d77b9e555
/usr/lib/.build-id/34/abbe7b556b78786a719cb5ec1318d4a0614dbd
/usr/lib/.build-id/35
/usr/lib/.build-id/35/65dd5e8948e1ced03c6d5fb5b9661387df9013
/usr/lib/.build-id/41
/usr/lib/.build-id/41/c765557ab12e1a18c89f6a86dcc9b7061687a5
/usr/lib/.build-id/42
/usr/lib/.build-id/42/45052d7d3386786a46c627641891e839e26c80
/usr/lib/.build-id/49
/usr/lib/.build-id/49/541a9b3d89b3a00ccc3bf717e0a132fe6a4c02
/usr/lib/.build-id/50
/usr/lib/.build-id/50/e8cc27f9c05f353c1d67bd4c33135ce2ace61b
/usr/lib/.build-id/52
/usr/lib/.build-id/52/127bfd22e4a2f2659f49d399e2a81fef9c2c27
/usr/lib/.build-id/62
/usr/lib/.build-id/62/0a96baa32fed46e0acd331b08870817d11216f
/usr/lib/.build-id/64
/usr/lib/.build-id/64/ba921b4ef74d79cce78786317f70de4fd23d83
/usr/lib/.build-id/65
/usr/lib/.build-id/65/bf23347bfce55e457924b5cf1e839dfccec4e5
/usr/lib/.build-id/66
/usr/lib/.build-id/66/7b8186f7cb02f52b6ab2a7f4cb1f8d99d14211
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/547e9841c09c1d0c9f4bb32400bcb58d8021c2
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/e4694edf6bc5c204918c730d1c6944bd8eb480
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/7be7bd818334cfbb83f1dc8b74ae0cf2544ad8
/usr/lib/.build-id/75
/usr/lib/.build-id/75/79dcc49df329d3981e03ad11e0ccf9dd5bde3c
/usr/lib/.build-id/85
/usr/lib/.build-id/85/f349d83e9a3ff8b63affba8ec8d7b833ef1a04
/usr/lib/.build-id/95
/usr/lib/.build-id/95/8df2c0711cd1a476b21bf0a460b51ce297be66
/usr/lib/.build-id/98
/usr/lib/.build-id/98/cba054dffd99c63d053d5f5dfe21af3438311f
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/ae9b7e38056d2fae3786cdc2e7e8ab419f4687
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/7f30b063182ad9de1670687d37211eaeadf07e
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/a560bd19ffa4acb93024050c20b44aed8eb105
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/ed9de7328e21d537234266efa8ed2ce1f5a274
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/4b003a6a0338bf5712f6a783f115338d494463
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/f4b4b45480c27d249676594557fc8bdabd39f6
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/de701964846dad032c20fa7f153f4faad516fd
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/68b91c9a47a316d3dc157423b4eff40093f272
/usr/lib/.build-id/cf/c1693fb2480bfc3a493ce3a787ced3334036fb
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/534b306fde5c17be28ed34226933f0732dfc1d
/usr/lib/.build-id/db
/usr/lib/.build-id/db/f4d543e7a8412a9bceeb2d6a2ef90ac156b76a
/usr/lib/.build-id/df
/usr/lib/.build-id/df/e30fe4188a4cdde38859460bbabdf09bb3cf8c
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/e4167664df4e4b18ebdd5a2869861bae7830bb
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/5ec3de7812f807da7cb729c500589178d2af5b
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/fd501e32177025ffcbed53cd6bf76df800de1a
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/01fdd24391688aaf6fe51dd03afd1e89a5a050
/usr/lib64/hercules
/usr/lib64/hercules/dyncrypt.so
/usr/lib64/hercules/dyngui.so
/usr/lib64/hercules/dyninst.so
/usr/lib64/hercules/hdt1052c.so
/usr/lib64/hercules/hdt1403.so
/usr/lib64/hercules/hdt2703.so
/usr/lib64/hercules/hdt2880.so
/usr/lib64/hercules/hdt3088.so
/usr/lib64/hercules/hdt3270.so
/usr/lib64/hercules/hdt3420.so
/usr/lib64/hercules/hdt3505.so
/usr/lib64/hercules/hdt3525.so
/usr/lib64/hercules/hdt3705.so
/usr/lib64/hercules/hdteq.so
/usr/lib64/hercules/hdtqeth.so
/usr/lib64/libdecNumber.so
/usr/lib64/libherc.so
/usr/lib64/libhercd.so
/usr/lib64/libhercs.so
/usr/lib64/libherct.so
/usr/lib64/libhercu.so
/usr/lib64/libsoftfloat.so
/usr/sbin/hercules-run
/usr/share/doc/hercules
/usr/share/doc/hercules/COPYRIGHT
/usr/share/doc/hercules/README-rpm
/usr/share/doc/hercules/README.COMMADPT
/usr/share/doc/hercules/README.ECPSVM
/usr/share/doc/hercules/README.HDL
/usr/share/doc/hercules/README.HERCLOGO
/usr/share/doc/hercules/README.NETWORKING
/usr/share/doc/hercules/README.TAPE
/usr/share/doc/hercules/RELEASE.NOTES
/usr/share/doc/hercules/hercules.cnf
/usr/share/doc/hercules/html
/usr/share/doc/hercules/html/cckddasd.html
/usr/share/doc/hercules/html/fishgui.html
/usr/share/doc/hercules/html/hercconf.html
/usr/share/doc/hercules/html/hercfaq.html
/usr/share/doc/hercules/html/hercinst.html
/usr/share/doc/hercules/html/herclic.html
/usr/share/doc/hercules/html/hercload.html
/usr/share/doc/hercules/html/hercmsca.html
/usr/share/doc/hercules/html/hercmscf.html
/usr/share/doc/hercules/html/hercmscp.html
/usr/share/doc/hercules/html/hercmsct.html
/usr/share/doc/hercules/html/hercmscu.html
/usr/share/doc/hercules/html/hercmsda.html
/usr/share/doc/hercules/html/hercmsdc.html
/usr/share/doc/hercules/html/hercmsdg.html
/usr/share/doc/hercules/html/hercmsdi.html
/usr/share/doc/hercules/html/hercmsdl.html
/usr/share/doc/hercules/html/hercmsds.html
/usr/share/doc/hercules/html/hercmsdt.html
/usr/share/doc/hercules/html/hercmsdu.html
/usr/share/doc/hercules/html/hercmsg.html
/usr/share/doc/hercules/html/hercmshd.html
/usr/share/doc/hercules/html/hercmshe.html
/usr/share/doc/hercules/html/hercmshg.html
/usr/share/doc/hercules/html/hercmshm.html
/usr/share/doc/hercules/html/hercmsht.html
/usr/share/doc/hercules/html/hercmshu.html
/usr/share/doc/hercules/html/hercmsif.html
/usr/share/doc/hercules/html/hercmsin.html
/usr/share/doc/hercules/html/hercmslc.html
/usr/share/doc/hercules/html/hercmslg.html
/usr/share/doc/hercules/html/hercmspn.html
/usr/share/doc/hercules/html/hercmspr.html
/usr/share/doc/hercules/html/hercmspu.html
/usr/share/doc/hercules/html/hercmsrd.html
/usr/share/doc/hercules/html/hercmssd.html
/usr/share/doc/hercules/html/hercmsta.html
/usr/share/doc/hercules/html/hercmstc.html
/usr/share/doc/hercules/html/hercmste.html
/usr/share/doc/hercules/html/hercmstm.html
/usr/share/doc/hercules/html/hercmsts.html
/usr/share/doc/hercules/html/hercmstt.html
/usr/share/doc/hercules/html/hercmstu.html
/usr/share/doc/hercules/html/hercmsvm.html
/usr/share/doc/hercules/html/hercnew.html
/usr/share/doc/hercules/html/hercrdr.html
/usr/share/doc/hercules/html/hercrnot.html
/usr/share/doc/hercules/html/hercsupp.html
/usr/share/doc/hercules/html/herctcp.html
/usr/share/doc/hercules/html/hercules.css
/usr/share/doc/hercules/html/hercules.html
/usr/share/doc/hercules/html/images
/usr/share/doc/hercules/html/images/back.gif
/usr/share/doc/hercules/html/images/bkued.gif
/usr/share/doc/hercules/html/images/blueu.gif
/usr/share/doc/hercules/html/images/dial1.gif
/usr/share/doc/hercules/html/images/dial2.gif
/usr/share/doc/hercules/html/images/dial3.gif
/usr/share/doc/hercules/html/images/dial4.gif
/usr/share/doc/hercules/html/images/favicon.ico
/usr/share/doc/hercules/html/images/greend.gif
/usr/share/doc/hercules/html/images/greenu.gif
/usr/share/doc/hercules/html/images/hercpic-rblk-256.gif
/usr/share/doc/hercules/html/images/hercpic-rblk-80.gif
/usr/share/doc/hercules/html/images/interruptd.gif
/usr/share/doc/hercules/html/images/interruptu.gif
/usr/share/doc/hercules/html/images/loadd.gif
/usr/share/doc/hercules/html/images/loadoffu.gif
/usr/share/doc/hercules/html/images/loadonu.gif
/usr/share/doc/hercules/html/images/loadu.gif
/usr/share/doc/hercules/html/images/manoffu.gif
/usr/share/doc/hercules/html/images/manonu.gif
/usr/share/doc/hercules/html/images/note.gif
/usr/share/doc/hercules/html/images/osi-certified-60x50.jpg
/usr/share/doc/hercules/html/images/poweroffd.gif
/usr/share/doc/hercules/html/images/poweroffu.gif
/usr/share/doc/hercules/html/images/poweronoffd.gif
/usr/share/doc/hercules/html/images/poweronoffu.gif
/usr/share/doc/hercules/html/images/poweronond.gif
/usr/share/doc/hercules/html/images/powerononu.gif
/usr/share/doc/hercules/html/images/redd.gif
/usr/share/doc/hercules/html/images/redu.gif
/usr/share/doc/hercules/html/images/restartd.gif
/usr/share/doc/hercules/html/images/restartu.gif
/usr/share/doc/hercules/html/images/startd.gif
/usr/share/doc/hercules/html/images/startu.gif
/usr/share/doc/hercules/html/images/stopd.gif
/usr/share/doc/hercules/html/images/stopu.gif
/usr/share/doc/hercules/html/images/stored.gif
/usr/share/doc/hercules/html/images/storeu.gif
/usr/share/doc/hercules/html/images/sysoffu.gif
/usr/share/doc/hercules/html/images/sysonu.gif
/usr/share/doc/hercules/html/images/translucentoffd.gif
/usr/share/doc/hercules/html/images/translucentoffu.gif
/usr/share/doc/hercules/html/images/translucentond.gif
/usr/share/doc/hercules/html/images/translucentonu.gif
/usr/share/doc/hercules/html/images/waitoffu.gif
/usr/share/doc/hercules/html/images/waitonu.gif
/usr/share/doc/hercules/html/include
/usr/share/doc/hercules/html/include/footer.htmlpart
/usr/share/doc/hercules/html/include/header.htmlpart
/usr/share/doc/hercules/html/index.html
/usr/share/doc/hercules/html/shared.html
/usr/share/doc/hercules/html/tasks.html
/usr/share/doc/hercules/util
/usr/share/doc/hercules/util/TMOUNT.txt
/usr/share/doc/hercules/util/awssl-v19g
/usr/share/doc/hercules/util/awswrite.jcl
/usr/share/doc/hercules/util/bldlvlck
/usr/share/doc/hercules/util/cckddump.hla
/usr/share/doc/hercules/util/cckdload.hla
/usr/share/doc/hercules/util/dasdlist
/usr/share/doc/hercules/util/dasdlist.bat
/usr/share/doc/hercules/util/rawstape.jcl
/usr/share/doc/hercules/util/tapeconv.jcl
/usr/share/doc/hercules/util/zzsacard.bin
/usr/share/hercules
/usr/share/hercules/cckddasd.html
/usr/share/hercules/fishgui.html
/usr/share/hercules/hercconf.html
/usr/share/hercules/hercfaq.html
/usr/share/hercules/hercinst.html
/usr/share/hercules/herclic.html
/usr/share/hercules/hercload.html
/usr/share/hercules/hercmsca.html
/usr/share/hercules/hercmscf.html
/usr/share/hercules/hercmscp.html
/usr/share/hercules/hercmsct.html
/usr/share/hercules/hercmscu.html
/usr/share/hercules/hercmsda.html
/usr/share/hercules/hercmsdc.html
/usr/share/hercules/hercmsdg.html
/usr/share/hercules/hercmsdi.html
/usr/share/hercules/hercmsdl.html
/usr/share/hercules/hercmsds.html
/usr/share/hercules/hercmsdt.html
/usr/share/hercules/hercmsdu.html
/usr/share/hercules/hercmsg.html
/usr/share/hercules/hercmshd.html
/usr/share/hercules/hercmshe.html
/usr/share/hercules/hercmshg.html
/usr/share/hercules/hercmshm.html
/usr/share/hercules/hercmsht.html
/usr/share/hercules/hercmshu.html
/usr/share/hercules/hercmsif.html
/usr/share/hercules/hercmsin.html
/usr/share/hercules/hercmslc.html
/usr/share/hercules/hercmslg.html
/usr/share/hercules/hercmspn.html
/usr/share/hercules/hercmspr.html
/usr/share/hercules/hercmspu.html
/usr/share/hercules/hercmsrd.html
/usr/share/hercules/hercmssd.html
/usr/share/hercules/hercmsta.html
/usr/share/hercules/hercmstc.html
/usr/share/hercules/hercmste.html
/usr/share/hercules/hercmstm.html
/usr/share/hercules/hercmsts.html
/usr/share/hercules/hercmstt.html
/usr/share/hercules/hercmstu.html
/usr/share/hercules/hercmsvm.html
/usr/share/hercules/hercnew.html
/usr/share/hercules/hercrdr.html
/usr/share/hercules/hercrnot.html
/usr/share/hercules/hercsupp.html
/usr/share/hercules/herctcp.html
/usr/share/hercules/hercules.css
/usr/share/hercules/hercules.html
/usr/share/hercules/images
/usr/share/hercules/images/back.gif
/usr/share/hercules/images/bkued.gif
/usr/share/hercules/images/blueu.gif
/usr/share/hercules/images/dial1.gif
/usr/share/hercules/images/dial2.gif
/usr/share/hercules/images/dial3.gif
/usr/share/hercules/images/dial4.gif
/usr/share/hercules/images/favicon.ico
/usr/share/hercules/images/greend.gif
/usr/share/hercules/images/greenu.gif
/usr/share/hercules/images/hercpic-rblk-256.gif
/usr/share/hercules/images/hercpic-rblk-80.gif
/usr/share/hercules/images/interruptd.gif
/usr/share/hercules/images/interruptu.gif
/usr/share/hercules/images/loadd.gif
/usr/share/hercules/images/loadoffu.gif
/usr/share/hercules/images/loadonu.gif
/usr/share/hercules/images/loadu.gif
/usr/share/hercules/images/manoffu.gif
/usr/share/hercules/images/manonu.gif
/usr/share/hercules/images/note.gif
/usr/share/hercules/images/osi-certified-60x50.jpg
/usr/share/hercules/images/poweroffd.gif
/usr/share/hercules/images/poweroffu.gif
/usr/share/hercules/images/poweronoffd.gif
/usr/share/hercules/images/poweronoffu.gif
/usr/share/hercules/images/poweronond.gif
/usr/share/hercules/images/powerononu.gif
/usr/share/hercules/images/redd.gif
/usr/share/hercules/images/redu.gif
/usr/share/hercules/images/restartd.gif
/usr/share/hercules/images/restartu.gif
/usr/share/hercules/images/startd.gif
/usr/share/hercules/images/startu.gif
/usr/share/hercules/images/stopd.gif
/usr/share/hercules/images/stopu.gif
/usr/share/hercules/images/stored.gif
/usr/share/hercules/images/storeu.gif
/usr/share/hercules/images/sysoffu.gif
/usr/share/hercules/images/sysonu.gif
/usr/share/hercules/images/translucentoffd.gif
/usr/share/hercules/images/translucentoffu.gif
/usr/share/hercules/images/translucentond.gif
/usr/share/hercules/images/translucentonu.gif
/usr/share/hercules/images/waitoffu.gif
/usr/share/hercules/images/waitonu.gif
/usr/share/hercules/include
/usr/share/hercules/include/footer.htmlpart
/usr/share/hercules/include/header.htmlpart
/usr/share/hercules/index.html
/usr/share/hercules/shared.html
/usr/share/hercules/tasks.html
/usr/share/man/man1/cckddiag.1.gz
/usr/share/man/man1/dasdseq.1.gz
/usr/share/man/man1/hercules.1.gz
/usr/share/man/man4/cckd.4.gz
/var/lib/hercules

References

Summary

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