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 › sid › linux-perf
Debian -- Details of package linux-perf in sid
This package contains the 'perf' performance analysis tools for Linux.
🌐
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.
🌐
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
🌐
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 › bookworm › linux-perf
Debian -- Details of package linux-perf in bookworm
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:
🌐
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.
🌐
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 › 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
🌐
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.
🌐
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
🌐
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 ·
🌐
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.
🌐
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.
🌐
Develop n Solve
developnsolve.com › linux › how-to-install-perf-on-linux
How to Install perf on Linux: Step-by-Step Guide
On Arch Linux, use sudo pacman -Sy. Knowing your current kernel version helps install the matching perf package to avoid compatibility issues. ... This command outputs your running kernel version, for example, 5.4.0-42-generic. Use this value in package installation commands where needed. Use your distribution’s package manager to install perf. For Ubuntu/Debian:
🌐
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.
🌐
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:
🌐
oopsmonk
oopsmonk.github.io › posts › install perf on ubuntu 20.04
Install Perf on Ubuntu 20.04 | oopsmonk
April 28, 2022 - The perf is part of linux-tools-generic package on Ubuntu: $ sudo apt install linux-tools-generic The following additional packages will be installed: linux-tools-5.4.0-109 linux-tools-5.4.0-109-generic The following NEW packages will be installed: ...