How To Install distcc on Fedora 34

distcc is Distributed C/C++ compilation

Introduction

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

What is distcc

distcc is a program to distribute compilation of C or C++ code across several machines on a network. distcc should always generate the same results as a local compile, is simple to install and use, and is often two or more times faster than a local compile.

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

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

sudo dnf -y install distcc

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

sudo yum -y install distcc

How To Uninstall distcc on Fedora 34

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

sudo dnf remove distcc

distcc Package Contents on Fedora 34

/etc/distcc
/etc/distcc/hosts
/usr/bin/distcc
/usr/bin/distccmon-text
/usr/bin/lsdistcc
/usr/bin/pump
/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/9c03a90c1904b17aa2ef91daa6b0f012023cca
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/babade6ce517c618dea1075131d23e9077a633
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/840cb1f332f702478fe92b0e0487b8ed9cb20f
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/7685d47308654481d57fbecbb398e1152e01fd
/usr/lib64/python3.9/site-packages/include_server
/usr/lib64/python3.9/site-packages/include_server-3.3.5-py3.9.egg-info
/usr/lib64/python3.9/site-packages/include_server/__pycache__
/usr/lib64/python3.9/site-packages/include_server/__pycache__/basics.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/basics.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/basics_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/basics_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/c_extensions_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/c_extensions_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/cache_basics.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/cache_basics.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/compiler_defaults.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/compiler_defaults.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/compress_files.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/compress_files.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_memoizing_node.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_memoizing_node.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_memoizing_node_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_memoizing_node_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_analyzer_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_server.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_server.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_server_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/include_server_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/macro_eval.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/macro_eval.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/macro_eval_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/macro_eval_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/mirror_path.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/mirror_path.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/mirror_path_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/mirror_path_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_command.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_command.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_command_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_command_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_file.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_file.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_file_test.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/parse_file_test.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/run.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/run.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/setup.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/setup.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/statistics.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/include_server/__pycache__/statistics.cpython-39.pyc
/usr/lib64/python3.9/site-packages/include_server/basics.py
/usr/lib64/python3.9/site-packages/include_server/basics_test.py
/usr/lib64/python3.9/site-packages/include_server/c_extensions_test.py
/usr/lib64/python3.9/site-packages/include_server/cache_basics.py
/usr/lib64/python3.9/site-packages/include_server/compiler_defaults.py
/usr/lib64/python3.9/site-packages/include_server/compress_files.py
/usr/lib64/python3.9/site-packages/include_server/distcc_pump_c_extensions.cpython-39-x86_64-linux-gnu.so
/usr/lib64/python3.9/site-packages/include_server/include_analyzer.py
/usr/lib64/python3.9/site-packages/include_server/include_analyzer_memoizing_node.py
/usr/lib64/python3.9/site-packages/include_server/include_analyzer_memoizing_node_test.py
/usr/lib64/python3.9/site-packages/include_server/include_analyzer_test.py
/usr/lib64/python3.9/site-packages/include_server/include_server.py
/usr/lib64/python3.9/site-packages/include_server/include_server_test.py
/usr/lib64/python3.9/site-packages/include_server/macro_eval.py
/usr/lib64/python3.9/site-packages/include_server/macro_eval_test.py
/usr/lib64/python3.9/site-packages/include_server/mirror_path.py
/usr/lib64/python3.9/site-packages/include_server/mirror_path_test.py
/usr/lib64/python3.9/site-packages/include_server/parse_command.py
/usr/lib64/python3.9/site-packages/include_server/parse_command_test.py
/usr/lib64/python3.9/site-packages/include_server/parse_file.py
/usr/lib64/python3.9/site-packages/include_server/parse_file_test.py
/usr/lib64/python3.9/site-packages/include_server/run.py
/usr/lib64/python3.9/site-packages/include_server/setup.py
/usr/lib64/python3.9/site-packages/include_server/statistics.py
/usr/share/doc/distcc
/usr/share/doc/distcc/AUTHORS
/usr/share/doc/distcc/INSTALL
/usr/share/doc/distcc/NEWS
/usr/share/doc/distcc/README
/usr/share/doc/distcc/README.pump
/usr/share/doc/distcc/TODO
/usr/share/doc/distcc/example
/usr/share/doc/distcc/example/README
/usr/share/doc/distcc/example/default
/usr/share/doc/distcc/example/hosts.allow
/usr/share/doc/distcc/example/init
/usr/share/doc/distcc/example/init-suse
/usr/share/doc/distcc/example/logrotate
/usr/share/doc/distcc/example/services
/usr/share/doc/distcc/example/xinetd
/usr/share/doc/distcc/protocol-1.txt
/usr/share/doc/distcc/protocol-2.txt
/usr/share/doc/distcc/protocol-3-impl.txt
/usr/share/doc/distcc/protocol-3.txt
/usr/share/doc/distcc/protocol-gssapi.txt
/usr/share/doc/distcc/reporting-bugs.txt
/usr/share/doc/distcc/status-1.txt
/usr/share/doc/distcc/survey.txt
/usr/share/doc/distcc/web
/usr/share/doc/distcc/web/benchmark.html
/usr/share/doc/distcc/web/compared.html
/usr/share/doc/distcc/web/compilers.html
/usr/share/doc/distcc/web/distcc-green.css
/usr/share/doc/distcc/web/distcc-lca-2004.html
/usr/share/doc/distcc/web/distcc-lca-2004.pdf
/usr/share/doc/distcc/web/distcc-lca2003.ps.gz
/usr/share/doc/distcc/web/distccmon-gnome-2003-09-23-01.png
/usr/share/doc/distcc/web/faq.html
/usr/share/doc/distcc/web/favicon.ico
/usr/share/doc/distcc/web/index.html
/usr/share/doc/distcc/web/man
/usr/share/doc/distcc/web/man/distcc_1.html
/usr/share/doc/distcc/web/man/distccd_1.html
/usr/share/doc/distcc/web/man/distccmon_text_1.html
/usr/share/doc/distcc/web/man/include_server_1.html
/usr/share/doc/distcc/web/man/index.html
/usr/share/doc/distcc/web/man/lsdistcc_1.html
/usr/share/doc/distcc/web/man/pump_1.html
/usr/share/doc/distcc/web/results.html
/usr/share/doc/distcc/web/scenarios.html
/usr/share/doc/distcc/web/security.html
/usr/share/licenses/distcc
/usr/share/licenses/distcc/COPYING
/usr/share/man/man1/distcc.1.gz
/usr/share/man/man1/distccmon-text.1.gz
/usr/share/man/man1/include_server.1.gz
/usr/share/man/man1/lsdistcc.1.gz
/usr/share/man/man1/pump.1.gz

References

Summary

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