How To Install cross-gcc-common on CentOS 7

In this tutorial we learn how to install cross-gcc-common on CentOS 7. cross-gcc-common is Cross-build GNU C compiler documentation and translation files

Introduction

In this tutorial we learn how to install cross-gcc-common on CentOS 7.

What is cross-gcc-common

Documentation, manual pages and translation files for cross-build GNU C compiler. This is the common part of a set of cross-build GNU C compiler packages for building kernels for other architectures. No support for cross-building user space programs is currently supplied as that would massively multiply the number of packages.

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

Install cross-gcc-common on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install cross-gcc-common using yum by running the following command:

sudo yum -y install cross-gcc-common

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

sudo dnf -y install cross-gcc-common

How To Uninstall cross-gcc-common on CentOS 7

To uninstall only the cross-gcc-common package we can use the following command:

sudo dnf remove cross-gcc-common

References

Summary

In this tutorial we learn how to install cross-gcc-common on CentOS 7 using yum and dnf.