How To Install bcc on CentOS 7
Introduction
In this tutorial we learn how to install bcc
on CentOS 7.
What is bcc
BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and examples. It makes use of extended BPF (Berkeley Packet Filters), formally known as eBPF, a new feature that was first added to Linux 3.15. BCC makes BPF programs easier to write, with kernel instrumentation in C (and includes a C wrapper around LLVM), and front-ends in Python and lua. It is suited for many tasks, including performance analysis and network traffic control.
We can use yum
or dnf
to install bcc
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install bcc.
Install bcc on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install bcc
using yum
by running the following command:
sudo yum -y install bcc
Install bcc on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install bcc
using dnf
by running the following command:
sudo dnf -y install bcc
How To Uninstall bcc on CentOS 7
To uninstall only the bcc
package we can use the following command:
sudo dnf remove bcc
References
Summary
In this tutorial we learn how to install bcc
on CentOS 7 using yum
and dnf
.