How To Install distcc on CentOS 8
Introduction
In this tutorial we learn how to install distcc
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install distcc.
Install distcc 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 distcc
using dnf
by running the following command:
sudo dnf -y install distcc
Install distcc 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 distcc
using yum
by running the following command:
sudo yum -y install distcc
How To Uninstall distcc on CentOS 8
To uninstall only the distcc
package we can use the following command:
sudo dnf remove distcc
distcc Package Contents on CentOS 8
/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/17
/usr/lib/.build-id/17/f108edd739fd8ca5b2425e31d6dc2df1a46a86
/usr/lib/.build-id/30
/usr/lib/.build-id/30/f32881d081f6b4167b3f2da3db3f078dc5271e
/usr/lib/.build-id/51
/usr/lib/.build-id/51/31ceb2c6e9b7c873dc433048782a47f934b8ba
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/4152ecbcf756995aa6536ea3c121495cfe055e
/usr/lib64/python3.6/site-packages/include_server
/usr/lib64/python3.6/site-packages/include_server-3.3.3-py3.6.egg-info
/usr/lib64/python3.6/site-packages/include_server/__pycache__
/usr/lib64/python3.6/site-packages/include_server/__pycache__/basics.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/basics.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/basics_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/basics_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/c_extensions_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/c_extensions_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/cache_basics.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/cache_basics.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/compiler_defaults.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/compiler_defaults.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/compress_files.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/compress_files.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_memoizing_node.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_memoizing_node.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_memoizing_node_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_memoizing_node_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_analyzer_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_server.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_server.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_server_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/include_server_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/macro_eval.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/macro_eval.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/macro_eval_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/macro_eval_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/mirror_path.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/mirror_path.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/mirror_path_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/mirror_path_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_command.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_command.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_command_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_command_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_file.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_file.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_file_test.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/parse_file_test.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/run.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/run.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/setup.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/setup.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/statistics.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/include_server/__pycache__/statistics.cpython-36.pyc
/usr/lib64/python3.6/site-packages/include_server/basics.py
/usr/lib64/python3.6/site-packages/include_server/basics_test.py
/usr/lib64/python3.6/site-packages/include_server/c_extensions_test.py
/usr/lib64/python3.6/site-packages/include_server/cache_basics.py
/usr/lib64/python3.6/site-packages/include_server/compiler_defaults.py
/usr/lib64/python3.6/site-packages/include_server/compress_files.py
/usr/lib64/python3.6/site-packages/include_server/distcc_pump_c_extensions.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/include_server/include_analyzer.py
/usr/lib64/python3.6/site-packages/include_server/include_analyzer_memoizing_node.py
/usr/lib64/python3.6/site-packages/include_server/include_analyzer_memoizing_node_test.py
/usr/lib64/python3.6/site-packages/include_server/include_analyzer_test.py
/usr/lib64/python3.6/site-packages/include_server/include_server.py
/usr/lib64/python3.6/site-packages/include_server/include_server_test.py
/usr/lib64/python3.6/site-packages/include_server/macro_eval.py
/usr/lib64/python3.6/site-packages/include_server/macro_eval_test.py
/usr/lib64/python3.6/site-packages/include_server/mirror_path.py
/usr/lib64/python3.6/site-packages/include_server/mirror_path_test.py
/usr/lib64/python3.6/site-packages/include_server/parse_command.py
/usr/lib64/python3.6/site-packages/include_server/parse_command_test.py
/usr/lib64/python3.6/site-packages/include_server/parse_file.py
/usr/lib64/python3.6/site-packages/include_server/parse_file_test.py
/usr/lib64/python3.6/site-packages/include_server/run.py
/usr/lib64/python3.6/site-packages/include_server/setup.py
/usr/lib64/python3.6/site-packages/include_server/statistics.py
/usr/share/doc/distcc
/usr/share/doc/distcc/AUTHORS
/usr/share/doc/distcc/COPYING
/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/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 CentOS 8 using yum and dnf.