How To Install sloccount on Fedora 36

In this tutorial we learn how to install sloccount in Fedora 36. sloccount is Measures source lines of code (SLOC) in programs

Introduction

In this tutorial we learn how to install sloccount on Fedora 36.

What is sloccount

SLOCCount (pronounced “sloc-count”) is a suite of programs for counting physical source lines of code (SLOC) in potentially large software systems. SLOCCount can be used to generate reports in different formats for use by report-generating tools.

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

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

sudo dnf -y install sloccount

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

sudo yum -y install sloccount

How To Uninstall sloccount on Fedora 36

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

sudo dnf remove sloccount

sloccount Package Contents on Fedora 36

/usr/bin/ada_count
/usr/bin/asm_count
/usr/bin/awk_count
/usr/bin/break_filelist
/usr/bin/c_count
/usr/bin/cobol_count
/usr/bin/compute_all
/usr/bin/compute_sloc_lang
/usr/bin/count_extensions
/usr/bin/count_unknown_ext
/usr/bin/csh_count
/usr/bin/exp_count
/usr/bin/f90_count
/usr/bin/fortran_count
/usr/bin/generic_count
/usr/bin/get_sloc
/usr/bin/get_sloc_details
/usr/bin/haskell_count
/usr/bin/java_count
/usr/bin/jsp_count
/usr/bin/lex_count
/usr/bin/lexcount1
/usr/bin/lisp_count
/usr/bin/make_filelists
/usr/bin/makefile_count
/usr/bin/ml_count
/usr/bin/modula3_count
/usr/bin/objc_count
/usr/bin/pascal_count
/usr/bin/perl_count
/usr/bin/php_count
/usr/bin/print_sum
/usr/bin/python_count
/usr/bin/ruby_count
/usr/bin/sed_count
/usr/bin/sh_count
/usr/bin/show_filecount
/usr/bin/sloccount
/usr/bin/sql_count
/usr/bin/tcl_count
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/892cec2c09fe856342f84c14935ff884a4b177
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/0cc75a24bb9a8c22b8bbf1759a5549a474914e
/usr/lib/.build-id/0c/0cc75a24bb9a8c22b8bbf1759a5549a474914e.1
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/504e39c9c1dcd3ef49bd007532b35666b27351
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/3eaf2d02fe6c8bd857df48b0175a9d9309ceca
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/e8fafb2c78c6a7ceaac835789123b32189e8a4
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/92748f3411a1f6ccd6467e885670f45969b45e
/usr/share/doc/sloccount
/usr/share/doc/sloccount/COPYING
/usr/share/doc/sloccount/ChangeLog
/usr/share/doc/sloccount/README
/usr/share/doc/sloccount/TODO
/usr/share/doc/sloccount/sloccount.html
/usr/share/man/man1/sloccount.1.gz

References

Summary

In this tutorial we learn how to install sloccount on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).