How To Install python2-scons on CentOS 7

In this tutorial we learn how to install python2-scons on CentOS 7. python2-scons is An Open Source software construction tool

Introduction

In this tutorial we learn how to install python2-scons on CentOS 7.

What is python2-scons

SCons is an Open Source software construction tool–that is, a build tool; an improved substitute for the classic Make utility; a better way to build software. SCons is based on the design which won the Software Carpentry build tool design competition in August 2000. SCons “configuration files” are Python scripts, eliminating the need to learn a new build tool syntax. SCons maintains a global view of all dependencies in a tree, and can scan source (or other) files for implicit dependencies, such as files specified on #include lines. SCons uses MD5 signatures to rebuild only when the contents of a file have really changed, not just when the timestamp has been touched. SCons supports side-by-side variant builds, and is easily extended with user- defined Builder and/or Scanner objects.

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

Install python2-scons on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python2-scons using yum by running the following command:

sudo yum -y install python2-scons

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

sudo dnf -y install python2-scons

How To Uninstall python2-scons on CentOS 7

To uninstall only the python2-scons package we can use the following command:

sudo dnf remove python2-scons

References

Summary

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