Skip to content

Commit 8c3efd6

Browse files
committed
feat: add RHEL-based distro support to bpftool installation script
- Add support for RHEL, CentOS, Fedora, Rocky Linux, and AlmaLinux - Install required packages using yum: gcc, make, elfutils, zlib, libcap, binutils, clang, and llvm - llvm package provides llvm-strip which is required for bpftool build process
1 parent 287a99f commit 8c3efd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

3rdparty/bpftool.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if [ "$ID" == "alpine" ]; then
1313
sudo apk add build-base elfutils-dev zlib-dev libcap-dev binutils-dev pkgconf libelf
1414
elif [ "$ID" == "ubuntu" ]; then
1515
sudo apt-get -y install build-essential libelf-dev libz-dev libcap-dev binutils-dev pkg-config libelf1
16+
elif [ "$ID" == "rhel" ] || [ "$ID" == "centos" ] || [ "$ID" == "fedora" ] || [ "$ID" == "rocky" ] || [ "$ID" == "almalinux" ]; then
17+
sudo yum install -y gcc make elfutils-libelf-devel zlib-devel libcap-devel binutils-devel pkgconfig elfutils-libelf clang llvm
1618
else
1719
echo "Unsupported OS"
1820
exit 1

0 commit comments

Comments
 (0)