How To Install oprofile on CentOS 7
Introduction
In this tutorial we learn how to install oprofile
on CentOS 7.
What is oprofile
OProfile is a profiling system for systems running Linux. The profiling runs transparently during the background, and profile data can be collected at any time. OProfile makes use of the hardware performance counters provided on Intel P6, and AMD Athlon family processors, and can use the RTC for profiling on other x86 processor types. See the HTML documentation for further details.
We can use yum
or dnf
to install oprofile
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install oprofile.
Install oprofile on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install oprofile
using yum
by running the following command:
Install oprofile 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.
After updating yum database, We can install oprofile
using dnf
by running the following command:
How To Uninstall oprofile on CentOS 7
To uninstall only the oprofile
package we can use the following command:
References
Summary
In this tutorial we learn how to install oprofile
on CentOS 7 using yum
and dnf
.