On Ubuntu I had to install three packages:

apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`
Answer from notpeter on askubuntu.com
🌐
Debian
packages.debian.org › linux-perf
I Challenge Thee
I Challenge Thee · AI scrapers break the web, to use this page you'll need JavaScript enabled
🌐
UbuntuPIT
ubuntupit.com › home › tutorials › how to install and configure perf in linux distributions
How to Install and Configure Perf in Linux Distributions
October 31, 2025 - Then, run the following aptitude command given below to install the Linux common tools on your machine. The following command requires root privilege; make sure you are the root user. When the installation finishes, you may find the Perf packages inside the /usr/bin/perf directory.
🌐
Siberoloji
siberoloji.com › how-to-use-system-profiling-tools-perf-ftrace-on-debian-12
How to Use System Profiling Tools (`perf`, `ftrace`) on Debian 12 Bookworm | Siberoloji
December 5, 2025 - It focuses on performance statistics and events, both in user space and kernel space. ftrace is the official tracing framework of the Linux kernel, ideal for debugging and analyzing kernel internals, syscalls, and scheduling events. ... This installs perf matching your running kernel. If your kernel and headers are mismatched, install the matching headers: ... No separate package is needed. ftrace comes enabled with the default Debian kernel.
🌐
Arm Learning
learn.arm.com › install-guides › perf
Perf for Linux on Arm (LinuxPerf): Install Guide
For Debian and Ubuntu run: sudo apt update sudo apt install make gcc flex bison pkg-config linux-tools-generic linux-tools-$(uname -r) \ libzstd1 libdwarf-dev libdw-dev binutils-dev libcap-dev libelf-dev libnuma-dev python3 python3-dev ...
🌐
Debian
packages.debian.org › stretch › linux-perf
Client Challenge
March 27, 2022 - JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Debian
packages.debian.org › sid › linux-perf
Debian -- Details of package linux-perf in sid
This package contains the 'perf' performance analysis tools for Linux.
🌐
Arm Learning
learn.arm.com › learning-paths › embedded-and-microcontrollers › rpi › perf
Get started with the Raspberry Pi 4: Linux Perf
Install and enable perf using the commands below. Make sure to become root where indicated. For Ubuntu running on the Arm server run this command to install perf:
🌐
IPv6rs
ipv6.rs › tutorial › Debian_Latest › perf-tools
Self Host with IPv6rs - IPv6 Provider - How to Install perf-tools on Debian Latest
sudo apt-get update sudo apt-get install -y build-essential git flex bison libssl-dev libelf-dev libclang-dev llvm llvm-dev libdw-dev libiberty-dev pkg-config zlib1g-dev perl · The next step is to clone the Perf-Tools repository from GitHub. You can achieve this by using the following command: git clone https://github.com/brendangregg/perf-tools.git
Find elsewhere
🌐
Debian
packages.debian.org › bookworm › linux-perf
Debian -- Details of package linux-perf in bookworm
This package contains the 'perf' performance analysis tools for Linux.
🌐
Debian
packages.debian.org › bullseye › linux-perf
Debian -- Details of package linux-perf in bullseye
This package depends on the package containing the 'perf' performance analysis tools for the latest Linux kernel.
🌐
Installati.one
installati.one › home › how to install linux-perf on debian 12
How To Install linux-perf on Debian 12 | Installati.one
June 10, 2023 - After updating apt database, We can install linux-perf using apt-get by running the following command: ... Update apt database with apt using the following command. ... If you want to follow this method, you might need to install aptitude first ...
🌐
GraalVM
graalvm.org › latest › reference-manual › native-image › debugging-and-diagnostics › perf-profiler
Linux Perf Profiler Support in Native Image
To install perf on Debian/Ubuntu, run the following commands one by one: sudo apt update sudo apt install linux-tools-common linux-tools-generic ·
🌐
Debian
packages.debian.org › buster › linux-perf
Debian -- Details of package linux-perf in buster
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
FOSS Linux
fosslinux.com › home › linux distributions › red hat ecosystem › centos › installing and using perf in ubuntu and centos
Install and Use perf on Ubuntu and Rocky Linux (2026)
May 29, 2026 - If you need a reliable Linux profiler in 2026, install perf from your distro packages and validate it immediately with perf --version, perf stat ls, and perf list --no-desc | head.
🌐
Xiaoyanzhuo
xiaoyanzhuo.github.io › 2019 › 01 › 18 › Perf-Tool.html
Install Perf Tool in Linux - Xiaoyan's Blog
January 18, 2019 - When you check $perf --version, you may get WARNING: perf not found for kernel and you may need to install the following packages for this specific kernel: … ,where the right version is required. You can check if you have the right version as warning list by: ... If not, you can go to search the packages required online, like what I needed for my system is the package linux-tools-4.4.0-131-generic, which I found here, select your architecture type and followed the instruction.
🌐
Eureka
eureka.patsnap.com › article › getting-started-with-linux-perf-a-practical-guide
Getting Started with Linux perf: A Practical Guide
July 4, 2025 - Depending on your distribution, you can install perf using your package manager. For example, on Debian-based systems, you can use: ``` sudo apt-get install linux-tools-common linux-tools-$(uname -r) ``` For Red Hat-based systems, use: ``` sudo yum install perf ``` Once installed, you can verify ...
🌐
golang-101-hacks
nanxiao.gitbooks.io › perf-little-book › content › posts › install-and-run-perf.html
Install and run perf · Perf little book - nanxiao
Most Linux distros enable perf_events subsystem in kernel and ship perf utility by default. If not, the distro should provide package already. E.g., On Arch Linux, setting up perf is easy:
🌐
Swift
swift.org › documentation › server › guides › linux-perf.html
Linux perf | Swift.org
If you’re already root and prefer a shell alias (only valid in this shell) alias perf=$(find /usr/lib/linux-tools/*/perf | head -1) If you’re a user and would like to prefer to link /usr/local/bin/perf · sudo ln -s "$(find /usr/lib/linux-tools/*/perf | head -1)" /usr/local/bin/perf · After this, you should be able to use perf stat -- sleep 0.1 (if you’re already root) or sudo perf stat -- sleep 0.1 successfully. For a bare metal Linux machine, all you need to do is to install perf which should then work in full fidelity.
🌐
Medium
medium.com › @manas.marwah › building-perf-tool-fc838f084f71
Building Linux Perf tool. Building Linux Perf tool from the… | by Manas Marwah | Medium
March 31, 2024 - The standard Linux distribution package for the perf tool includes only basic support, lacking the full array of options. This necessitates building the perf tool from scratch with all options enabled. Here are the steps to build perf from scratch: ... curl -o linux-source.{VERSION}.tar.gz https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-{VERSION}.tar.gz · Note: Replace the kernel version. I am using Version 6.2 ... Step 3: Install build essential packages.