How To Install cc65 on Fedora 34

cc65 is A free C compiler for 6502 based systems

Introduction

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

What is cc65

cc65 is a complete cross development package for 65(C)02 systems, including a powerful macro assembler, a C compiler, linker, librarian and several other tools. cc65 has C and runtime library support for many of the old 6502 machines, including - the following Commodore machines - VIC20 - C16/C116 and Plus/4 - C64 - C128 - CBM 510 (aka P500) - the 600/700 family - newer PET machines (not 2001). - the Apple ][+ and successors. - the Atari 8 bit machines. - the Atari 2600 console. - the Atari 5200 console. - GEOS for the C64, C128 and Apple //e. - the Bit Corporation Gamate console. - the NEC PC-Engine (aka TurboGrafx-16) console. - the Nintendo Entertainment System (NES) console. - the Watara Supervision console. - the VTech Creativision console. - the Oric Atmos. - the Oric Telestrat. - the Lynx console. - the Ohio Scientific Challenger 1P.

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

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

sudo dnf -y install cc65

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

sudo yum -y install cc65

How To Uninstall cc65 on Fedora 34

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

sudo dnf remove cc65

cc65 Package Contents on Fedora 34

/usr/bin/ar65
/usr/bin/ca65
/usr/bin/cc65
/usr/bin/chrcvt65
/usr/bin/cl65
/usr/bin/co65
/usr/bin/da65
/usr/bin/grc65
/usr/bin/ld65
/usr/bin/od65
/usr/bin/sim65
/usr/bin/sp65
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/64c2f562d0c6b404e4783ac3905aebcb0ca274
/usr/lib/.build-id/15
/usr/lib/.build-id/15/387b852f1d8cdf7e83eed7485b0c0453f112a1
/usr/lib/.build-id/76
/usr/lib/.build-id/76/b1cac3341a10b18a755f1c84efaa035d535a08
/usr/lib/.build-id/78
/usr/lib/.build-id/78/20453d440d1d1969713114dea419442a7d99dc
/usr/lib/.build-id/82
/usr/lib/.build-id/82/8d2a6e09d0d75e4035db7179e7b13619e62007
/usr/lib/.build-id/82/f0b1171c14db6972c5c7d8569c5a82094a7595
/usr/lib/.build-id/83
/usr/lib/.build-id/83/051199fd3c42d0c7d23180c655259e6f9b4859
/usr/lib/.build-id/84
/usr/lib/.build-id/84/ebce22cb4c7ec9c5cab6f950ee532343fcf895
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/5adaf6e969c7c5fcb16b6b9be4c59e80c003c5
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/1e35a10d329cf2f1fc6f237d0e3b9691967c76
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/9367f267bfe86081645f5ee660cecb8726d169
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/9a86b57f439608ef29ca70de86702b6a0c5ea8
/usr/share/doc/cc65
/usr/share/doc/cc65/README.md
/usr/share/licenses/cc65
/usr/share/licenses/cc65/LICENSE

References

Summary

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