Introduction
In this tutorial we learn how to install bcc-doc
on CentOS 8.
What is bcc-doc
Examples for BPF Compiler Collection (BCC)
We can use yum
or dnf
to install bcc-doc
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install bcc-doc.
Install bcc-doc 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 bcc-doc
using dnf
by running the following command:
sudo dnf -y install bcc-doc
Install bcc-doc 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 bcc-doc
using yum
by running the following command:
sudo yum -y install bcc-doc
How To Uninstall bcc-doc on CentOS 8
To uninstall only the bcc-doc
package we can use the following command:
sudo dnf remove bcc-doc
bcc-doc Package Contents on CentOS 8
/usr/share/bcc/examples
/usr/share/bcc/examples/hello_world.py
/usr/share/bcc/examples/networking
/usr/share/bcc/examples/networking/distributed_bridge
/usr/share/bcc/examples/networking/distributed_bridge/main.py
/usr/share/bcc/examples/networking/distributed_bridge/simulation.py
/usr/share/bcc/examples/networking/distributed_bridge/tunnel.c
/usr/share/bcc/examples/networking/distributed_bridge/tunnel.py
/usr/share/bcc/examples/networking/distributed_bridge/tunnel_mesh.c
/usr/share/bcc/examples/networking/distributed_bridge/tunnel_mesh.py
/usr/share/bcc/examples/networking/http_filter
/usr/share/bcc/examples/networking/http_filter/README.md
/usr/share/bcc/examples/networking/http_filter/http-parse-complete.c
/usr/share/bcc/examples/networking/http_filter/http-parse-complete.py
/usr/share/bcc/examples/networking/http_filter/http-parse-simple.c
/usr/share/bcc/examples/networking/http_filter/http-parse-simple.py
/usr/share/bcc/examples/networking/neighbor_sharing
/usr/share/bcc/examples/networking/neighbor_sharing/README.txt
/usr/share/bcc/examples/networking/neighbor_sharing/simulation.py
/usr/share/bcc/examples/networking/neighbor_sharing/tc_neighbor_sharing.c
/usr/share/bcc/examples/networking/neighbor_sharing/tc_neighbor_sharing.py
/usr/share/bcc/examples/networking/simple_tc.py
/usr/share/bcc/examples/networking/simulation.py
/usr/share/bcc/examples/networking/tc_perf_event.py
/usr/share/bcc/examples/networking/tunnel_monitor
/usr/share/bcc/examples/networking/tunnel_monitor/README.md
/usr/share/bcc/examples/networking/tunnel_monitor/chord.png
/usr/share/bcc/examples/networking/tunnel_monitor/main.py
/usr/share/bcc/examples/networking/tunnel_monitor/monitor.c
/usr/share/bcc/examples/networking/tunnel_monitor/monitor.py
/usr/share/bcc/examples/networking/tunnel_monitor/setup.sh
/usr/share/bcc/examples/networking/tunnel_monitor/simulation.py
/usr/share/bcc/examples/networking/tunnel_monitor/traffic.sh
/usr/share/bcc/examples/networking/tunnel_monitor/vxlan.jpg
/usr/share/bcc/examples/networking/vlan_learning
/usr/share/bcc/examples/networking/vlan_learning/README.txt
/usr/share/bcc/examples/networking/vlan_learning/simulation.py
/usr/share/bcc/examples/networking/vlan_learning/vlan_learning.c
/usr/share/bcc/examples/networking/vlan_learning/vlan_learning.py
/usr/share/bcc/examples/networking/xdp
/usr/share/bcc/examples/networking/xdp/xdp_drop_count.py
/usr/share/bcc/examples/networking/xdp/xdp_macswap_count.py
/usr/share/bcc/examples/networking/xdp/xdp_redirect_cpu.py
/usr/share/bcc/examples/networking/xdp/xdp_redirect_map.py
/usr/share/bcc/examples/tracing
/usr/share/bcc/examples/tracing/CMakeLists.txt
/usr/share/bcc/examples/tracing/biolatpcts.py
/usr/share/bcc/examples/tracing/biolatpcts_example.txt
/usr/share/bcc/examples/tracing/bitehist.py
/usr/share/bcc/examples/tracing/bitehist_example.txt
/usr/share/bcc/examples/tracing/dddos.py
/usr/share/bcc/examples/tracing/dddos_example.txt
/usr/share/bcc/examples/tracing/disksnoop.py
/usr/share/bcc/examples/tracing/disksnoop_example.txt
/usr/share/bcc/examples/tracing/hello_fields.py
/usr/share/bcc/examples/tracing/hello_perf_output.py
/usr/share/bcc/examples/tracing/hello_perf_output_using_ns.py
/usr/share/bcc/examples/tracing/kvm_hypercall.py
/usr/share/bcc/examples/tracing/kvm_hypercall.txt
/usr/share/bcc/examples/tracing/mallocstacks.py
/usr/share/bcc/examples/tracing/mysqld_query.py
/usr/share/bcc/examples/tracing/mysqld_query_example.txt
/usr/share/bcc/examples/tracing/nflatency.py
/usr/share/bcc/examples/tracing/nodejs_http_server.py
/usr/share/bcc/examples/tracing/nodejs_http_server_example.txt
/usr/share/bcc/examples/tracing/stack_buildid_example.py
/usr/share/bcc/examples/tracing/stacksnoop.py
/usr/share/bcc/examples/tracing/stacksnoop_example.txt
/usr/share/bcc/examples/tracing/strlen_count.py
/usr/share/bcc/examples/tracing/strlen_hist.py
/usr/share/bcc/examples/tracing/strlen_snoop.py
/usr/share/bcc/examples/tracing/sync_timing.py
/usr/share/bcc/examples/tracing/task_switch.c
/usr/share/bcc/examples/tracing/task_switch.py
/usr/share/bcc/examples/tracing/tcpv4connect.py
/usr/share/bcc/examples/tracing/tcpv4connect_example.txt
/usr/share/bcc/examples/tracing/trace_fields.py
/usr/share/bcc/examples/tracing/trace_perf_output.py
/usr/share/bcc/examples/tracing/urandomread-explicit.py
/usr/share/bcc/examples/tracing/urandomread.py
/usr/share/bcc/examples/tracing/urandomread_example.txt
/usr/share/bcc/examples/tracing/vfsreadlat.c
/usr/share/bcc/examples/tracing/vfsreadlat.py
/usr/share/bcc/examples/tracing/vfsreadlat_example.txt
References
Summary
In this tutorial we learn how to install bcc-doc
on CentOS 8 using yum and dnf.