How To Install castxml on Rocky Linux 8

In this tutorial we learn how to install castxml on Rocky Linux 8. castxml is C-family abstract syntax tree XML output tool

Introduction

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

What is castxml

Parse C-family source files and optionally write a subset of the Abstract Syntax Tree (AST) to a representation in XML. Source files are parsed as complete translation units using the clang compiler. XML output is enabled by the –castxml-gccxml option and produces a format close to that of gccxml. Future versions of castxml may support alternative output formats.

We can use yum or dnf to install castxml on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install castxml.

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

sudo dnf -y install castxml

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

sudo yum -y install castxml

How To Uninstall castxml on Rocky Linux 8

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

sudo dnf remove castxml

castxml Package Contents on Rocky Linux 8

/usr/bin/castxml
/usr/lib/.build-id
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/d603c68f1444b20f7ee72f5aa215887f839b3b
/usr/share/castxml
/usr/share/castxml/clang
/usr/share/castxml/clang/include
/usr/share/castxml/clang/include/__clang_cuda_builtin_vars.h
/usr/share/castxml/clang/include/__clang_cuda_cmath.h
/usr/share/castxml/clang/include/__clang_cuda_complex_builtins.h
/usr/share/castxml/clang/include/__clang_cuda_device_functions.h
/usr/share/castxml/clang/include/__clang_cuda_intrinsics.h
/usr/share/castxml/clang/include/__clang_cuda_libdevice_declares.h
/usr/share/castxml/clang/include/__clang_cuda_math.h
/usr/share/castxml/clang/include/__clang_cuda_math_forward_declares.h
/usr/share/castxml/clang/include/__clang_cuda_runtime_wrapper.h
/usr/share/castxml/clang/include/__clang_hip_libdevice_declares.h
/usr/share/castxml/clang/include/__clang_hip_math.h
/usr/share/castxml/clang/include/__clang_hip_runtime_wrapper.h
/usr/share/castxml/clang/include/__stddef_max_align_t.h
/usr/share/castxml/clang/include/__wmmintrin_aes.h
/usr/share/castxml/clang/include/__wmmintrin_pclmul.h
/usr/share/castxml/clang/include/adxintrin.h
/usr/share/castxml/clang/include/altivec.h
/usr/share/castxml/clang/include/ammintrin.h
/usr/share/castxml/clang/include/amxintrin.h
/usr/share/castxml/clang/include/arm64intr.h
/usr/share/castxml/clang/include/arm_acle.h
/usr/share/castxml/clang/include/arm_bf16.h
/usr/share/castxml/clang/include/arm_cde.h
/usr/share/castxml/clang/include/arm_cmse.h
/usr/share/castxml/clang/include/arm_fp16.h
/usr/share/castxml/clang/include/arm_mve.h
/usr/share/castxml/clang/include/arm_neon.h
/usr/share/castxml/clang/include/arm_sve.h
/usr/share/castxml/clang/include/armintr.h
/usr/share/castxml/clang/include/avx2intrin.h
/usr/share/castxml/clang/include/avx512bf16intrin.h
/usr/share/castxml/clang/include/avx512bitalgintrin.h
/usr/share/castxml/clang/include/avx512bwintrin.h
/usr/share/castxml/clang/include/avx512cdintrin.h
/usr/share/castxml/clang/include/avx512dqintrin.h
/usr/share/castxml/clang/include/avx512erintrin.h
/usr/share/castxml/clang/include/avx512fintrin.h
/usr/share/castxml/clang/include/avx512ifmaintrin.h
/usr/share/castxml/clang/include/avx512ifmavlintrin.h
/usr/share/castxml/clang/include/avx512pfintrin.h
/usr/share/castxml/clang/include/avx512vbmi2intrin.h
/usr/share/castxml/clang/include/avx512vbmiintrin.h
/usr/share/castxml/clang/include/avx512vbmivlintrin.h
/usr/share/castxml/clang/include/avx512vlbf16intrin.h
/usr/share/castxml/clang/include/avx512vlbitalgintrin.h
/usr/share/castxml/clang/include/avx512vlbwintrin.h
/usr/share/castxml/clang/include/avx512vlcdintrin.h
/usr/share/castxml/clang/include/avx512vldqintrin.h
/usr/share/castxml/clang/include/avx512vlintrin.h
/usr/share/castxml/clang/include/avx512vlvbmi2intrin.h
/usr/share/castxml/clang/include/avx512vlvnniintrin.h
/usr/share/castxml/clang/include/avx512vlvp2intersectintrin.h
/usr/share/castxml/clang/include/avx512vnniintrin.h
/usr/share/castxml/clang/include/avx512vp2intersectintrin.h
/usr/share/castxml/clang/include/avx512vpopcntdqintrin.h
/usr/share/castxml/clang/include/avx512vpopcntdqvlintrin.h
/usr/share/castxml/clang/include/avxintrin.h
/usr/share/castxml/clang/include/bmi2intrin.h
/usr/share/castxml/clang/include/bmiintrin.h
/usr/share/castxml/clang/include/cet.h
/usr/share/castxml/clang/include/cetintrin.h
/usr/share/castxml/clang/include/cldemoteintrin.h
/usr/share/castxml/clang/include/clflushoptintrin.h
/usr/share/castxml/clang/include/clwbintrin.h
/usr/share/castxml/clang/include/clzerointrin.h
/usr/share/castxml/clang/include/cpuid.h
/usr/share/castxml/clang/include/cuda_wrappers
/usr/share/castxml/clang/include/cuda_wrappers/algorithm
/usr/share/castxml/clang/include/cuda_wrappers/complex
/usr/share/castxml/clang/include/cuda_wrappers/new
/usr/share/castxml/clang/include/emmintrin.h
/usr/share/castxml/clang/include/enqcmdintrin.h
/usr/share/castxml/clang/include/f16cintrin.h
/usr/share/castxml/clang/include/float.h
/usr/share/castxml/clang/include/fma4intrin.h
/usr/share/castxml/clang/include/fmaintrin.h
/usr/share/castxml/clang/include/fxsrintrin.h
/usr/share/castxml/clang/include/gfniintrin.h
/usr/share/castxml/clang/include/htmintrin.h
/usr/share/castxml/clang/include/htmxlintrin.h
/usr/share/castxml/clang/include/ia32intrin.h
/usr/share/castxml/clang/include/immintrin.h
/usr/share/castxml/clang/include/intrin.h
/usr/share/castxml/clang/include/inttypes.h
/usr/share/castxml/clang/include/invpcidintrin.h
/usr/share/castxml/clang/include/iso646.h
/usr/share/castxml/clang/include/limits.h
/usr/share/castxml/clang/include/lwpintrin.h
/usr/share/castxml/clang/include/lzcntintrin.h
/usr/share/castxml/clang/include/mm3dnow.h
/usr/share/castxml/clang/include/mm_malloc.h
/usr/share/castxml/clang/include/mmintrin.h
/usr/share/castxml/clang/include/module.modulemap
/usr/share/castxml/clang/include/movdirintrin.h
/usr/share/castxml/clang/include/msa.h
/usr/share/castxml/clang/include/mwaitxintrin.h
/usr/share/castxml/clang/include/nmmintrin.h
/usr/share/castxml/clang/include/opencl-c-base.h
/usr/share/castxml/clang/include/opencl-c.h
/usr/share/castxml/clang/include/openmp_wrappers
/usr/share/castxml/clang/include/openmp_wrappers/__clang_openmp_device_functions.h
/usr/share/castxml/clang/include/openmp_wrappers/cmath
/usr/share/castxml/clang/include/openmp_wrappers/complex
/usr/share/castxml/clang/include/openmp_wrappers/complex.h
/usr/share/castxml/clang/include/openmp_wrappers/math.h
/usr/share/castxml/clang/include/openmp_wrappers/new
/usr/share/castxml/clang/include/pconfigintrin.h
/usr/share/castxml/clang/include/pkuintrin.h
/usr/share/castxml/clang/include/pmmintrin.h
/usr/share/castxml/clang/include/popcntintrin.h
/usr/share/castxml/clang/include/ppc_wrappers
/usr/share/castxml/clang/include/ppc_wrappers/emmintrin.h
/usr/share/castxml/clang/include/ppc_wrappers/mm_malloc.h
/usr/share/castxml/clang/include/ppc_wrappers/mmintrin.h
/usr/share/castxml/clang/include/ppc_wrappers/pmmintrin.h
/usr/share/castxml/clang/include/ppc_wrappers/smmintrin.h
/usr/share/castxml/clang/include/ppc_wrappers/tmmintrin.h
/usr/share/castxml/clang/include/ppc_wrappers/xmmintrin.h
/usr/share/castxml/clang/include/prfchwintrin.h
/usr/share/castxml/clang/include/ptwriteintrin.h
/usr/share/castxml/clang/include/rdseedintrin.h
/usr/share/castxml/clang/include/rtmintrin.h
/usr/share/castxml/clang/include/s390intrin.h
/usr/share/castxml/clang/include/serializeintrin.h
/usr/share/castxml/clang/include/sgxintrin.h
/usr/share/castxml/clang/include/shaintrin.h
/usr/share/castxml/clang/include/smmintrin.h
/usr/share/castxml/clang/include/stdalign.h
/usr/share/castxml/clang/include/stdarg.h
/usr/share/castxml/clang/include/stdatomic.h
/usr/share/castxml/clang/include/stdbool.h
/usr/share/castxml/clang/include/stddef.h
/usr/share/castxml/clang/include/stdint.h
/usr/share/castxml/clang/include/stdnoreturn.h
/usr/share/castxml/clang/include/tbmintrin.h
/usr/share/castxml/clang/include/tgmath.h
/usr/share/castxml/clang/include/tmmintrin.h
/usr/share/castxml/clang/include/tsxldtrkintrin.h
/usr/share/castxml/clang/include/unwind.h
/usr/share/castxml/clang/include/vadefs.h
/usr/share/castxml/clang/include/vaesintrin.h
/usr/share/castxml/clang/include/varargs.h
/usr/share/castxml/clang/include/vecintrin.h
/usr/share/castxml/clang/include/vpclmulqdqintrin.h
/usr/share/castxml/clang/include/waitpkgintrin.h
/usr/share/castxml/clang/include/wasm_simd128.h
/usr/share/castxml/clang/include/wbnoinvdintrin.h
/usr/share/castxml/clang/include/wmmintrin.h
/usr/share/castxml/clang/include/x86intrin.h
/usr/share/castxml/clang/include/xmmintrin.h
/usr/share/castxml/clang/include/xopintrin.h
/usr/share/castxml/clang/include/xsavecintrin.h
/usr/share/castxml/clang/include/xsaveintrin.h
/usr/share/castxml/clang/include/xsaveoptintrin.h
/usr/share/castxml/clang/include/xsavesintrin.h
/usr/share/castxml/clang/include/xtestintrin.h
/usr/share/castxml/detect_vs.c
/usr/share/castxml/detect_vs.cpp
/usr/share/castxml/empty.c
/usr/share/castxml/empty.cpp
/usr/share/licenses/castxml
/usr/share/licenses/castxml/LICENSE
/usr/share/licenses/castxml/NOTICE
/usr/share/man/man1/castxml.1.gz

References

Summary

In this tutorial we learn how to install castxml on Rocky Linux 8 using yum and dnf.