How To Install xa on CentOS 7

In this tutorial we learn how to install xa on CentOS 7. xa is 6502/65816 cross-assembler

Introduction

In this tutorial we learn how to install xa on CentOS 7.

What is xa

xa is a high-speed, two-pass portable cross-assembler. It understands mnemonics and generates code for NMOS 6502s (such as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 …), CMOS 6502s (65C02 and Rockwell R65C02) and the 65816. Key amongst its features * C-like preprocessor (and understands cpp for additional feature support) * rich expression syntax and pseudo-op vocabulary * multiple character sets * binary linking * supports o65 relocatable objects with a full linker and relocation suite, as well as “bare” plain binary object files * block structure for label scoping

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

Install xa on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install xa

Install xa on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install xa

How To Uninstall xa on CentOS 7

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

sudo dnf remove xa

References

Summary

In this tutorial we learn how to install xa on CentOS 7 using yum and dnf.