How To Install csdiff on Fedora 34

csdiff is Non-interactive tools for processing code scan results in plain-text

Introduction

In this tutorial we learn how to install csdiff on Fedora 34.

What is csdiff

This package contains the csdiff tool for comparing code scan defect lists in order to find out added or fixed defects, and the csgrep utility for filtering defect lists using various filtering predicates.

We can use yum or dnf to install csdiff on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install csdiff.

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

sudo dnf -y install csdiff

Install csdiff 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 csdiff using yum by running the following command:

sudo yum -y install csdiff

How To Uninstall csdiff on Fedora 34

To uninstall only the csdiff package we can use the following command:

sudo dnf remove csdiff

csdiff Package Contents on Fedora 34

/usr/bin/csdiff
/usr/bin/csgrep
/usr/bin/cshtml
/usr/bin/cslinker
/usr/bin/cssort
/usr/bin/cstrans-df-run
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/932d7da4a351f6badcf3d22ec34341a1b892bb
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/28449ba3ee0fc91030bf367588dfa476103d04
/usr/lib/.build-id/90
/usr/lib/.build-id/90/c4fa31bc976f949f8fede5068bfa329001b4b7
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/25da4c55d05500d6fb7a0faa1a7c8906bffa84
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/56bf0a0d696339a394fa62848066f1f61b5891
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/4e0bc1b004fcbb4f0550d47937a5142d28a07d
/usr/share/csdiff
/usr/share/csdiff/cwe-names.csv
/usr/share/doc/csdiff
/usr/share/doc/csdiff/COPYING
/usr/share/doc/csdiff/README
/usr/share/man/man1/csdiff.1.gz
/usr/share/man/man1/csgrep.1.gz
/usr/share/man/man1/cshtml.1.gz
/usr/share/man/man1/cslinker.1.gz
/usr/share/man/man1/cssort.1.gz
/usr/share/man/man1/cstrans-df-run.1.gz
/usr/bin/csdiff
/usr/bin/csgrep
/usr/bin/cshtml
/usr/bin/cslinker
/usr/bin/cssort
/usr/bin/cstrans-df-run
/usr/lib/.build-id
/usr/lib/.build-id/41
/usr/lib/.build-id/41/08806e7c788f0dedaab818ebf86d8e44f2e2a5
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/295e7db22dc0a309b816f835640f13b68699e0
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/c142eb092a17907e86607e6bccf1035e7a41ee
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e29d40349835ac61cba1440acbc7faadda183f
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/84cf0e8e412f7d0e4dbd55b0280afdbf57a42f
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/dd952893d3c6eb0f66f3368e720325cb2fce95
/usr/share/csdiff
/usr/share/csdiff/cwe-names.csv
/usr/share/doc/csdiff
/usr/share/doc/csdiff/COPYING
/usr/share/doc/csdiff/README
/usr/share/man/man1/csdiff.1.gz
/usr/share/man/man1/csgrep.1.gz
/usr/share/man/man1/cshtml.1.gz
/usr/share/man/man1/cslinker.1.gz
/usr/share/man/man1/cssort.1.gz
/usr/share/man/man1/cstrans-df-run.1.gz

References

Summary

In this tutorial we learn how to install csdiff on Fedora 34 using yum and dnf.