How To Install cswrap on Fedora 34

cswrap is Generic compiler wrapper

Introduction

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

What is cswrap

Generic compiler wrapper used by csmock to capture diagnostic messages.

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

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

sudo dnf -y install cswrap

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

sudo yum -y install cswrap

How To Uninstall cswrap on Fedora 34

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

sudo dnf remove cswrap

cswrap Package Contents on Fedora 34

/usr/bin/csexec
/usr/bin/csexec-loader
/usr/bin/cswrap
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/2eefac630e8cb11ff013539a10d395857642e0
/usr/lib/.build-id/59
/usr/lib/.build-id/59/b7ef2c730d5f56032f9e13149b2193732f3a03
/usr/lib/.build-id/79
/usr/lib/.build-id/79/711d8c5ff98d50e4e26e5d7a311a20f79f285a
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/7971a45e1676404547a32bed9910b4c325b084
/usr/lib64/cswrap
/usr/lib64/cswrap/c++
/usr/lib64/cswrap/cc
/usr/lib64/cswrap/clang
/usr/lib64/cswrap/clang++
/usr/lib64/cswrap/cppcheck
/usr/lib64/cswrap/g++
/usr/lib64/cswrap/gcc
/usr/lib64/cswrap/smatch
/usr/lib64/cswrap/x86_64-redhat-linux-c++
/usr/lib64/cswrap/x86_64-redhat-linux-g++
/usr/lib64/cswrap/x86_64-redhat-linux-gcc
/usr/lib64/libcsexec-preload.so
/usr/share/doc/cswrap
/usr/share/doc/cswrap/COPYING
/usr/share/doc/cswrap/README
/usr/share/man/man1/cswrap.1.gz
/usr/bin/cswrap
/usr/lib/.build-id
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/14eb2107e2985b3ca8ccc1ea25f2042d5a4a31
/usr/lib64/cswrap
/usr/lib64/cswrap/c++
/usr/lib64/cswrap/cc
/usr/lib64/cswrap/clang
/usr/lib64/cswrap/clang++
/usr/lib64/cswrap/cppcheck
/usr/lib64/cswrap/diosc++
/usr/lib64/cswrap/dioscc
/usr/lib64/cswrap/divc++
/usr/lib64/cswrap/divcc
/usr/lib64/cswrap/g++
/usr/lib64/cswrap/gcc
/usr/lib64/cswrap/gclang
/usr/lib64/cswrap/gclang++
/usr/lib64/cswrap/goto-gcc
/usr/lib64/cswrap/smatch
/usr/lib64/cswrap/x86_64-redhat-linux-c++
/usr/lib64/cswrap/x86_64-redhat-linux-g++
/usr/lib64/cswrap/x86_64-redhat-linux-gcc
/usr/share/doc/cswrap
/usr/share/doc/cswrap/COPYING
/usr/share/doc/cswrap/README
/usr/share/man/man1/cswrap.1.gz

References

Summary

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