Skip to content

Instantly share code, notes, and snippets.

@unixfox
Last active March 11, 2024 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unixfox/57f9375aaa7a6d4dd99109f153f0bc50 to your computer and use it in GitHub Desktop.
Save unixfox/57f9375aaa7a6d4dd99109f153f0bc50 to your computer and use it in GitHub Desktop.
Compile systemd with BPF_FRAMEWORK for Debian 12 (bookworm)
  1. Update the repositories: apt-get update
  2. Basic tooling for compiling debian package: apt-get install devscripts build-essential
  3. Get the sources: apt-get source systemd/bookworm.
  4. Install the dev dependencies: apt-get build-dep systemd/bookworm.
  5. Install the bpf dependencies: apt-get install clang libbpf-dev libbpf-tools bpftool
  6. Go into the source directory of systemd: cd systemd-*.
  7. Build the package: debuild -us -uc.
  8. Go back to the parent directory: cd ...
  9. Install the package built: dpkg -i systemd_*_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment