[root@rhel8server1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.0 (Ootpa)
[root@rhel8server1 ~]# mount /dev/cdrom /mnt/cdrom
mount: /mnt/cdrom: WARNING: device write-protected, mounted read-only.
[root@rhel8server1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 888M 0 888M 0% /dev
tmpfs 904M 0 904M 0% /dev/shm
tmpfs 904M 9.8M 894M 2% /run
tmpfs 904M 0 904M 0% /sys/fs/cgroup
/dev/mapper/rhel_rhel8server1-root 91G 5.4G 86G 6% /
/dev/sda1 1014M 170M 845M 17% /boot
tmpfs 181M 24K 181M 1% /run/user/0
tmpfs 181M 16K 181M 1% /run/user/42
/dev/sr0 6.7G 6.7G 0 100% /mnt/cdrom
[root@rhel8server1 ~]# cat /etc/yum.repos.d/r
redhat.repo rhel8.repo
[root@rhel8server1 ~]# cat /etc/yum.repos.d/rhel8.repo
[InstallMedia-BaseOS]
name=Red Hat Enterprise Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/cdrom/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[InstallMedia-AppStream]
name=Red Hat Enterprise Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/cdrom/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@rhel8server1 ~]# cat /etc/yum.repos.d/redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#
[root@rhel8server1 ~]# yum provides execsnoop
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 242 days, 7:38:00 ago on Sun 30 Jun 2019 10:32:04 AM EDT.
Error: No Matches found
[root@rhel8server1 ~]# yum list |grep bcc-tool
bcc-tools.x86_64 0.7.0-5.el8 InstallMedia-AppStream
[root@rhel8server1 ~]# yum install bcc-tools
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 242 days, 7:38:42 ago on Sun 30 Jun 2019 10:32:04 AM EDT.
Dependencies resolved.
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
bcc-tools x86_64 0.7.0-5.el8 InstallMedia-AppStream 389 k
Installing dependencies:
bcc x86_64 0.7.0-5.el8 InstallMedia-AppStream 11 M
clang-libs x86_64 7.0.1-1.module+el8+2560+c32c7af1 InstallMedia-AppStream 16 M
python3-bcc x86_64 0.7.0-5.el8 InstallMedia-AppStream 60 k
python3-netaddr noarch 0.7.19-8.el8 InstallMedia-AppStream 1.5 M
kernel-devel x86_64 4.18.0-80.el8 InstallMedia-BaseOS 12 M
libatomic x86_64 8.2.1-3.5.el8 InstallMedia-BaseOS 20 k
Installing weak dependencies:
compiler-rt x86_64 7.0.1-1.module+el8+2560+c32c7af1 InstallMedia-AppStream 2.8 M
libomp x86_64 7.0.1-1.module+el8+2560+c32c7af1 InstallMedia-AppStream 317 k
Transaction Summary
=============================================================================================================================================================
Install 9 Packages
Total size: 45 M
Installed size: 235 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libatomic-8.2.1-3.5.el8.x86_64 1/9
Running scriptlet: libatomic-8.2.1-3.5.el8.x86_64 1/9
Installing : kernel-devel-4.18.0-80.el8.x86_64 2/9
Running scriptlet: kernel-devel-4.18.0-80.el8.x86_64 2/9
Installing : python3-netaddr-0.7.19-8.el8.noarch 3/9
Installing : libomp-7.0.1-1.module+el8+2560+c32c7af1.x86_64 4/9
Installing : compiler-rt-7.0.1-1.module+el8+2560+c32c7af1.x86_64 5/9
Installing : clang-libs-7.0.1-1.module+el8+2560+c32c7af1.x86_64 6/9
Installing : bcc-tools-0.7.0-5.el8.x86_64 7/9
Installing : bcc-0.7.0-5.el8.x86_64 8/9
Installing : python3-bcc-0.7.0-5.el8.x86_64 9/9
Running scriptlet: python3-bcc-0.7.0-5.el8.x86_64 9/9
Verifying : bcc-0.7.0-5.el8.x86_64 1/9
Verifying : bcc-tools-0.7.0-5.el8.x86_64 2/9
Verifying : clang-libs-7.0.1-1.module+el8+2560+c32c7af1.x86_64 3/9
Verifying : compiler-rt-7.0.1-1.module+el8+2560+c32c7af1.x86_64 4/9
Verifying : libomp-7.0.1-1.module+el8+2560+c32c7af1.x86_64 5/9
Verifying : python3-bcc-0.7.0-5.el8.x86_64 6/9
Verifying : python3-netaddr-0.7.19-8.el8.noarch 7/9
Verifying : kernel-devel-4.18.0-80.el8.x86_64 8/9
Verifying : libatomic-8.2.1-3.5.el8.x86_64 9/9
Installed products updated.
Installed:
bcc-tools-0.7.0-5.el8.x86_64 compiler-rt-7.0.1-1.module+el8+2560+c32c7af1.x86_64 libomp-7.0.1-1.module+el8+2560+c32c7af1.x86_64
bcc-0.7.0-5.el8.x86_64 clang-libs-7.0.1-1.module+el8+2560+c32c7af1.x86_64 python3-bcc-0.7.0-5.el8.x86_64
python3-netaddr-0.7.19-8.el8.noarch kernel-devel-4.18.0-80.el8.x86_64 libatomic-8.2.1-3.5.el8.x86_64
Complete!
[root@rhel8server1 ~]#
[root@rhel8server1 ~]# rpm -qa |grep bcc-tools
bcc-tools-0.7.0-5.el8.x86_64
[root@rhel8server1 ~]# rpm -ql bcc-tools-0.7.0-5.el8.x86_64 |grep execsnoop
/usr/share/bcc/tools/doc/execsnoop_example.txt
/usr/share/bcc/tools/execsnoop
/usr/share/man/man8/bcc-execsnoop.8.gz
[root@rhel8server1 ~]#