How To Install sparse on Fedora 36
Introduction
In this tutorial we learn how to install sparse
on Fedora 36.
What is sparse
Sparse is a semantic parser of source files (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 create a semantic parse tree for some arbitrary 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sparse.
Install sparse on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install sparse
using dnf
by running the following command:
sudo dnf -y install sparse
Install sparse on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install sparse
using yum
by running the following command:
sudo yum -y install sparse
How To Uninstall sparse on Fedora 36
To uninstall only the sparse
package we can use the following command:
sudo dnf remove sparse
sparse Package Contents on Fedora 36
/usr/bin/c2xml
/usr/bin/cgcc
/usr/bin/semind
/usr/bin/sparse
/usr/bin/test-inspect
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/f94e9c02a98535408fc21b9bf64f4c5a12b21b
/usr/lib/.build-id/44
/usr/lib/.build-id/44/96eef4842de5bed97c6f074b0ff413f28e185a
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/08d534cad80b195aa0d738dfb21a71819e293b
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/f2547963f2c02975c4fad95f22d654b17b756a
/usr/share/doc/sparse
/usr/share/doc/sparse/FAQ
/usr/share/doc/sparse/LICENSE
/usr/share/doc/sparse/README
/usr/share/man/man1/cgcc.1.gz
/usr/share/man/man1/semind.1.gz
/usr/share/man/man1/sparse.1.gz
References
Summary
In this tutorial we learn how to install sparse
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).