How To Install llvm-static on CentOS 8
Introduction
In this tutorial we learn how to install llvm-static
on CentOS 8.
What is llvm-static
Static libraries for the LLVM compiler infrastructure. llvm-static 11.0.0 2.module_el8.4.0+587+5187cac0 x86_64 38 M llvm-11.0.0-2.module_el8.4.0+587+5187cac0.src.rpm appstream LLVM static libraries http NCSA Static libraries for the LLVM compiler infrastructure.
We can use yum
or dnf
to install llvm-static
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install llvm-static.
Install llvm-static on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install llvm-static
using dnf
by running the following command:
sudo dnf -y install llvm-static
Install llvm-static on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install llvm-static
using yum
by running the following command:
sudo yum -y install llvm-static
How To Uninstall llvm-static on CentOS 8
To uninstall only the llvm-static
package we can use the following command:
sudo dnf remove llvm-static
llvm-static Package Contents on CentOS 8
/usr/lib/cmake/llvm/LLVMStaticExports.cmake
/usr/lib/libLLVMAArch64AsmParser.a
/usr/lib/libLLVMAArch64CodeGen.a
/usr/lib/libLLVMAArch64Desc.a
/usr/lib/libLLVMAArch64Disassembler.a
/usr/lib/libLLVMAArch64Info.a
/usr/lib/libLLVMAArch64Utils.a
/usr/lib/libLLVMAMDGPUAsmParser.a
/usr/lib/libLLVMAMDGPUCodeGen.a
/usr/lib/libLLVMAMDGPUDesc.a
/usr/lib/libLLVMAMDGPUDisassembler.a
/usr/lib/libLLVMAMDGPUInfo.a
/usr/lib/libLLVMAMDGPUUtils.a
/usr/lib/libLLVMARMAsmParser.a
/usr/lib/libLLVMARMCodeGen.a
/usr/lib/libLLVMARMDesc.a
/usr/lib/libLLVMARMDisassembler.a
/usr/lib/libLLVMARMInfo.a
/usr/lib/libLLVMARMUtils.a
/usr/lib/libLLVMAggressiveInstCombine.a
/usr/lib/libLLVMAnalysis.a
/usr/lib/libLLVMAsmParser.a
/usr/lib/libLLVMAsmPrinter.a
/usr/lib/libLLVMBPFAsmParser.a
/usr/lib/libLLVMBPFCodeGen.a
/usr/lib/libLLVMBPFDesc.a
/usr/lib/libLLVMBPFDisassembler.a
/usr/lib/libLLVMBPFInfo.a
/usr/lib/libLLVMBinaryFormat.a
/usr/lib/libLLVMBitReader.a
/usr/lib/libLLVMBitWriter.a
/usr/lib/libLLVMBitstreamReader.a
/usr/lib/libLLVMCFGuard.a
/usr/lib/libLLVMCodeGen.a
/usr/lib/libLLVMCore.a
/usr/lib/libLLVMCoroutines.a
/usr/lib/libLLVMCoverage.a
/usr/lib/libLLVMDWARFLinker.a
/usr/lib/libLLVMDebugInfoCodeView.a
/usr/lib/libLLVMDebugInfoDWARF.a
/usr/lib/libLLVMDebugInfoGSYM.a
/usr/lib/libLLVMDebugInfoMSF.a
/usr/lib/libLLVMDebugInfoPDB.a
/usr/lib/libLLVMDemangle.a
/usr/lib/libLLVMDlltoolDriver.a
/usr/lib/libLLVMExecutionEngine.a
/usr/lib/libLLVMExtensions.a
/usr/lib/libLLVMFrontendOpenACC.a
/usr/lib/libLLVMFrontendOpenMP.a
/usr/lib/libLLVMFuzzMutate.a
/usr/lib/libLLVMGlobalISel.a
/usr/lib/libLLVMIRReader.a
/usr/lib/libLLVMInstCombine.a
/usr/lib/libLLVMInstrumentation.a
/usr/lib/libLLVMInterpreter.a
/usr/lib/libLLVMJITLink.a
/usr/lib/libLLVMLTO.a
/usr/lib/libLLVMLibDriver.a
/usr/lib/libLLVMLineEditor.a
/usr/lib/libLLVMLinker.a
/usr/lib/libLLVMMC.a
/usr/lib/libLLVMMCA.a
/usr/lib/libLLVMMCDisassembler.a
/usr/lib/libLLVMMCJIT.a
/usr/lib/libLLVMMCParser.a
/usr/lib/libLLVMMIRParser.a
/usr/lib/libLLVMMipsAsmParser.a
/usr/lib/libLLVMMipsCodeGen.a
/usr/lib/libLLVMMipsDesc.a
/usr/lib/libLLVMMipsDisassembler.a
/usr/lib/libLLVMMipsInfo.a
/usr/lib/libLLVMNVPTXCodeGen.a
/usr/lib/libLLVMNVPTXDesc.a
/usr/lib/libLLVMNVPTXInfo.a
/usr/lib/libLLVMObjCARCOpts.a
/usr/lib/libLLVMObject.a
/usr/lib/libLLVMObjectYAML.a
/usr/lib/libLLVMOption.a
/usr/lib/libLLVMOrcError.a
/usr/lib/libLLVMOrcJIT.a
/usr/lib/libLLVMPasses.a
/usr/lib/libLLVMPowerPCAsmParser.a
/usr/lib/libLLVMPowerPCCodeGen.a
/usr/lib/libLLVMPowerPCDesc.a
/usr/lib/libLLVMPowerPCDisassembler.a
/usr/lib/libLLVMPowerPCInfo.a
/usr/lib/libLLVMProfileData.a
/usr/lib/libLLVMRemarks.a
/usr/lib/libLLVMRuntimeDyld.a
/usr/lib/libLLVMScalarOpts.a
/usr/lib/libLLVMSelectionDAG.a
/usr/lib/libLLVMSupport.a
/usr/lib/libLLVMSymbolize.a
/usr/lib/libLLVMSystemZAsmParser.a
/usr/lib/libLLVMSystemZCodeGen.a
/usr/lib/libLLVMSystemZDesc.a
/usr/lib/libLLVMSystemZDisassembler.a
/usr/lib/libLLVMSystemZInfo.a
/usr/lib/libLLVMTableGen.a
/usr/lib/libLLVMTarget.a
/usr/lib/libLLVMTextAPI.a
/usr/lib/libLLVMTransformUtils.a
/usr/lib/libLLVMVectorize.a
/usr/lib/libLLVMWindowsManifest.a
/usr/lib/libLLVMX86AsmParser.a
/usr/lib/libLLVMX86CodeGen.a
/usr/lib/libLLVMX86Desc.a
/usr/lib/libLLVMX86Disassembler.a
/usr/lib/libLLVMX86Info.a
/usr/lib/libLLVMXRay.a
/usr/lib/libLLVMipo.a
/usr/share/licenses/llvm-static
/usr/share/licenses/llvm-static/LICENSE.TXT
/usr/lib64/cmake/llvm/LLVMStaticExports.cmake
/usr/lib64/libLLVMAArch64AsmParser.a
/usr/lib64/libLLVMAArch64CodeGen.a
/usr/lib64/libLLVMAArch64Desc.a
/usr/lib64/libLLVMAArch64Disassembler.a
/usr/lib64/libLLVMAArch64Info.a
/usr/lib64/libLLVMAArch64Utils.a
/usr/lib64/libLLVMAMDGPUAsmParser.a
/usr/lib64/libLLVMAMDGPUCodeGen.a
/usr/lib64/libLLVMAMDGPUDesc.a
/usr/lib64/libLLVMAMDGPUDisassembler.a
/usr/lib64/libLLVMAMDGPUInfo.a
/usr/lib64/libLLVMAMDGPUUtils.a
/usr/lib64/libLLVMARMAsmParser.a
/usr/lib64/libLLVMARMCodeGen.a
/usr/lib64/libLLVMARMDesc.a
/usr/lib64/libLLVMARMDisassembler.a
/usr/lib64/libLLVMARMInfo.a
/usr/lib64/libLLVMARMUtils.a
/usr/lib64/libLLVMAggressiveInstCombine.a
/usr/lib64/libLLVMAnalysis.a
/usr/lib64/libLLVMAsmParser.a
/usr/lib64/libLLVMAsmPrinter.a
/usr/lib64/libLLVMBPFAsmParser.a
/usr/lib64/libLLVMBPFCodeGen.a
/usr/lib64/libLLVMBPFDesc.a
/usr/lib64/libLLVMBPFDisassembler.a
/usr/lib64/libLLVMBPFInfo.a
/usr/lib64/libLLVMBinaryFormat.a
/usr/lib64/libLLVMBitReader.a
/usr/lib64/libLLVMBitWriter.a
/usr/lib64/libLLVMBitstreamReader.a
/usr/lib64/libLLVMCFGuard.a
/usr/lib64/libLLVMCodeGen.a
/usr/lib64/libLLVMCore.a
/usr/lib64/libLLVMCoroutines.a
/usr/lib64/libLLVMCoverage.a
/usr/lib64/libLLVMDWARFLinker.a
/usr/lib64/libLLVMDebugInfoCodeView.a
/usr/lib64/libLLVMDebugInfoDWARF.a
/usr/lib64/libLLVMDebugInfoGSYM.a
/usr/lib64/libLLVMDebugInfoMSF.a
/usr/lib64/libLLVMDebugInfoPDB.a
/usr/lib64/libLLVMDemangle.a
/usr/lib64/libLLVMDlltoolDriver.a
/usr/lib64/libLLVMExecutionEngine.a
/usr/lib64/libLLVMExtensions.a
/usr/lib64/libLLVMFrontendOpenACC.a
/usr/lib64/libLLVMFrontendOpenMP.a
/usr/lib64/libLLVMFuzzMutate.a
/usr/lib64/libLLVMGlobalISel.a
/usr/lib64/libLLVMIRReader.a
/usr/lib64/libLLVMInstCombine.a
/usr/lib64/libLLVMInstrumentation.a
/usr/lib64/libLLVMInterpreter.a
/usr/lib64/libLLVMJITLink.a
/usr/lib64/libLLVMLTO.a
/usr/lib64/libLLVMLibDriver.a
/usr/lib64/libLLVMLineEditor.a
/usr/lib64/libLLVMLinker.a
/usr/lib64/libLLVMMC.a
/usr/lib64/libLLVMMCA.a
/usr/lib64/libLLVMMCDisassembler.a
/usr/lib64/libLLVMMCJIT.a
/usr/lib64/libLLVMMCParser.a
/usr/lib64/libLLVMMIRParser.a
/usr/lib64/libLLVMMipsAsmParser.a
/usr/lib64/libLLVMMipsCodeGen.a
/usr/lib64/libLLVMMipsDesc.a
/usr/lib64/libLLVMMipsDisassembler.a
/usr/lib64/libLLVMMipsInfo.a
/usr/lib64/libLLVMNVPTXCodeGen.a
/usr/lib64/libLLVMNVPTXDesc.a
/usr/lib64/libLLVMNVPTXInfo.a
/usr/lib64/libLLVMObjCARCOpts.a
/usr/lib64/libLLVMObject.a
/usr/lib64/libLLVMObjectYAML.a
/usr/lib64/libLLVMOption.a
/usr/lib64/libLLVMOrcError.a
/usr/lib64/libLLVMOrcJIT.a
/usr/lib64/libLLVMPasses.a
/usr/lib64/libLLVMPowerPCAsmParser.a
/usr/lib64/libLLVMPowerPCCodeGen.a
/usr/lib64/libLLVMPowerPCDesc.a
/usr/lib64/libLLVMPowerPCDisassembler.a
/usr/lib64/libLLVMPowerPCInfo.a
/usr/lib64/libLLVMProfileData.a
/usr/lib64/libLLVMRemarks.a
/usr/lib64/libLLVMRuntimeDyld.a
/usr/lib64/libLLVMScalarOpts.a
/usr/lib64/libLLVMSelectionDAG.a
/usr/lib64/libLLVMSupport.a
/usr/lib64/libLLVMSymbolize.a
/usr/lib64/libLLVMSystemZAsmParser.a
/usr/lib64/libLLVMSystemZCodeGen.a
/usr/lib64/libLLVMSystemZDesc.a
/usr/lib64/libLLVMSystemZDisassembler.a
/usr/lib64/libLLVMSystemZInfo.a
/usr/lib64/libLLVMTableGen.a
/usr/lib64/libLLVMTarget.a
/usr/lib64/libLLVMTextAPI.a
/usr/lib64/libLLVMTransformUtils.a
/usr/lib64/libLLVMVectorize.a
/usr/lib64/libLLVMWindowsManifest.a
/usr/lib64/libLLVMX86AsmParser.a
/usr/lib64/libLLVMX86CodeGen.a
/usr/lib64/libLLVMX86Desc.a
/usr/lib64/libLLVMX86Disassembler.a
/usr/lib64/libLLVMX86Info.a
/usr/lib64/libLLVMXRay.a
/usr/lib64/libLLVMipo.a
/usr/share/licenses/llvm-static
/usr/share/licenses/llvm-static/LICENSE.TXT
References
- [llvm-static website](http://llvm.org http://llvm.org)
Summary
In this tutorial we learn how to install llvm-static
on CentOS 8 using yum and dnf.