How To Install sparse on Fedora 34
Introduction
In this tutorial we learn how to install sparse
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install sparse.
Install sparse on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sparse
using dnf
by running the following command:
sudo dnf -y install sparse
Install sparse on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the sparse
package we can use the following command:
sudo dnf remove sparse
sparse Package Contents on Fedora 34
/usr/bin/c2xml
/usr/bin/cgcc
/usr/bin/semind
/usr/bin/sparse
/usr/bin/test-inspect
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/fc41462fa0dc693fb4f7849838b937b3b23f70
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/c2c279684f715639478aa3402499f6f4fdd6ad
/usr/lib/.build-id/91
/usr/lib/.build-id/91/d12e4f909b473d16bd55354106df6ab59444f2
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/8f32368c9cde0b965b3b8efe3e3e2c1bb84ae8
/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 34 using yum and dnf.