How To Install csdiff on CentOS 8
Introduction
In this tutorial we learn how to install csdiff
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install csdiff.
Install csdiff on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the csdiff
package we can use the following command:
sudo dnf remove csdiff
csdiff Package Contents on CentOS 8
/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/02
/usr/lib/.build-id/02/686fb2633b6e3bf9f00d312c05f6c19c854243
/usr/lib/.build-id/36
/usr/lib/.build-id/36/f1143d9e91941c01f673509ac3b3b6f908be13
/usr/lib/.build-id/45
/usr/lib/.build-id/45/9bfe5be4337450084de500e6ba99b5dfd02436
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/5efa8406088cdd02fe2a145a89451f2f734c5c
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/802fcc4bc2747060b60d6d227293067684ac90
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/bf6d6b9d8097558e60438b0b59452ec1303f6e
/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 CentOS 8 using yum and dnf.