How To Install libperf on Fedora 34
Introduction
In this tutorial we learn how to install libperf
on Fedora 34.
What is libperf
This package contains the kernel source perf library. libperf 5.13.6 200.fc34 x86_64 37 k kernel-tools-5.13.6-200.fc34.src.rpm updates The perf library from kernel source http GPLv2 This package contains the kernel source perf library.
We can use yum
or dnf
to install libperf
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libperf.
Install libperf 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 libperf
using dnf
by running the following command:
sudo dnf -y install libperf
Install libperf 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 libperf
using yum
by running the following command:
sudo yum -y install libperf
How To Uninstall libperf on Fedora 34
To uninstall only the libperf
package we can use the following command:
sudo dnf remove libperf
libperf Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/fda85112860dd5c05dcb821f637022a167dca1
/usr/lib/libperf.so.0
/usr/lib/libperf.so.0.0.1
/usr/share/licenses/libperf
/usr/share/licenses/libperf/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/fe1db168c62bbfc0ec4844deb36d7342c74de3
/usr/lib64/libperf.so.0
/usr/lib64/libperf.so.0.0.1
/usr/share/licenses/libperf
/usr/share/licenses/libperf/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/d63d1459d8714f0f12f5b076b15193b411c5cd
/usr/lib64/libperf.so.0
/usr/lib64/libperf.so.0.0.1
/usr/share/licenses/libperf
/usr/share/licenses/libperf/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/53fccf640936f79880801befaf8e104e4400be
/usr/lib/libperf.so.0
/usr/lib/libperf.so.0.0.1
/usr/share/licenses/libperf
/usr/share/licenses/libperf/COPYING
References
- [libperf website](http://www.kernel.org/ http://www.kernel.org/)
Summary
In this tutorial we learn how to install libperf
on Fedora 34 using yum and dnf.