How To Install sparse on CentOS 7
Introduction
In this tutorial we learn how to install sparse
on CentOS 7.
What is sparse
Sparse is a semantic parser of source files compiler (although it could be used as a front-end for one) nor is it a preprocessor (although it contains as a part of it a preprocessing phase). It is meant to be a small - and simple - library. Scanty and meager, and partly because of that easy to use. It has one mission in life user for further analysis. It’s not a tokenizer, nor is it some generic context-free parser. In fact, context (semantics) is what it’s all about - figuring out not just what the grouping of tokens are, but what the types are that the grouping implies. Sparse is primarily used in the development and debugging of the Linux kernel.
We can use yum
or dnf
to install sparse
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install sparse.
Install sparse on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install sparse
using yum
by running the following command:
Install sparse 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.
After updating yum database, We can install sparse
using dnf
by running the following command:
How To Uninstall sparse on CentOS 7
To uninstall only the sparse
package we can use the following command:
References
Summary
In this tutorial we learn how to install sparse
on CentOS 7 using yum
and dnf
.