How To Install papi on CentOS 8

papi is Performance Application Programming Interface Performance Application Programming Interface

Introduction

In this tutorial we learn how to install papi on CentOS 8.

What is papi

PAPI provides a programmer interface to monitor the performance of running programs. papi 5.6.0 11.el8 x86_64 123 k papi-5.6.0-11.el8.src.rpm appstream Performance Application Programming Interface http BSD PAPI provides a programmer interface to monitor the performance of running programs.

We can use yum or dnf to install papi on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install papi.

Install papi on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install papi using dnf by running the following command:

sudo dnf -y install papi

Install papi on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install papi using yum by running the following command:

sudo yum -y install papi

How To Uninstall papi on CentOS 8

To uninstall only the papi package we can use the following command:

sudo dnf remove papi

papi Package Contents on CentOS 8

/usr/bin/papi_avail
/usr/bin/papi_clockres
/usr/bin/papi_command_line
/usr/bin/papi_component_avail
/usr/bin/papi_cost
/usr/bin/papi_decode
/usr/bin/papi_error_codes
/usr/bin/papi_event_chooser
/usr/bin/papi_mem_info
/usr/bin/papi_multiplex_cost
/usr/bin/papi_native_avail
/usr/bin/papi_version
/usr/bin/papi_xml_event_info
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/012df5adb4f6f7122c0922c66bcd88036be227
/usr/lib/.build-id/33
/usr/lib/.build-id/33/7294d177972c8a4a713b756fbb84e3d0a12152
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/40dd5cfc295daac88649f17c834c722b94db95
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/b1c0c031993457335f5c9c95019c73b2be721f
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/404e27e116877b91fb224909a84f47186c187b
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/3ab33681c0422c2c65ba1c8980e7e77ff7b613
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/0e76d122f5542924aac187aa6399a30858ceb5
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/d5392ab75bf7f4dd084424cacf9563943feb3a
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/500333c585fb5152e6131112674c551148a56c
/usr/lib/.build-id/c0/f89e6da25f757d2c09f4d2d9772773bfbc4c54
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/657be2e9b68498265f201f8ac207214e62ad27
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/0af242ac98e491687ca2ec47ee56cf8b86f7ac
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/87520368de44de82d08b6a3991e74c57712096
/usr/share/doc/papi
/usr/share/doc/papi/INSTALL.txt
/usr/share/doc/papi/LICENSE.txt
/usr/share/doc/papi/README
/usr/share/doc/papi/RELEASENOTES.txt
/usr/share/man/man1/PAPI_derived_event_files.1.gz
/usr/share/man/man1/papi_avail.1.gz
/usr/share/man/man1/papi_clockres.1.gz
/usr/share/man/man1/papi_command_line.1.gz
/usr/share/man/man1/papi_component_avail.1.gz
/usr/share/man/man1/papi_cost.1.gz
/usr/share/man/man1/papi_decode.1.gz
/usr/share/man/man1/papi_error_codes.1.gz
/usr/share/man/man1/papi_event_chooser.1.gz
/usr/share/man/man1/papi_hybrid_native_avail.1.gz
/usr/share/man/man1/papi_mem_info.1.gz
/usr/share/man/man1/papi_multiplex_cost.1.gz
/usr/share/man/man1/papi_native_avail.1.gz
/usr/share/man/man1/papi_version.1.gz
/usr/share/man/man1/papi_xml_event_info.1.gz
/usr/share/papi
/usr/share/papi/papi_events.csv
/usr/bin/papi_avail
/usr/bin/papi_clockres
/usr/bin/papi_command_line
/usr/bin/papi_component_avail
/usr/bin/papi_cost
/usr/bin/papi_decode
/usr/bin/papi_error_codes
/usr/bin/papi_event_chooser
/usr/bin/papi_mem_info
/usr/bin/papi_multiplex_cost
/usr/bin/papi_native_avail
/usr/bin/papi_version
/usr/bin/papi_xml_event_info
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/df5be40408ebf365aa41ea52cd66354e561d6a
/usr/lib/.build-id/31
/usr/lib/.build-id/31/2ab332c41b9919481a7ef7ec542c17e2bb33cc
/usr/lib/.build-id/35
/usr/lib/.build-id/35/06f0b39311c0a7c16f0fb9b1e9c118909102f6
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/77aa03461bfdbdbc7401e1875a9396160f3817
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/ffb723c3e75134130edb4c519a96f1a532967b
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/63a52e54edc5250b42319303f22602364b3a31
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/b7f278a9ea86a4c99ee150ea1fc6dace852364
/usr/lib/.build-id/96
/usr/lib/.build-id/96/e6e4c0c6c5d6dfc1d5e4ab4297f92d4152c4b1
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/32c375f49f3f8065281bedc29c36ed5aca8a8f
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/6570f0778c705a97d634091545de130f9e1b09
/usr/lib/.build-id/f1/d709a5e1d21e14591ea32ebcc9dcb8e96107db
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/070bc8c2c94025ad220a93eaab60bb490c64fc
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/9911bc7b7bb353785d094c3498e3b54e57c133
/usr/share/doc/papi
/usr/share/doc/papi/INSTALL.txt
/usr/share/doc/papi/LICENSE.txt
/usr/share/doc/papi/README
/usr/share/doc/papi/RELEASENOTES.txt
/usr/share/man/man1/PAPI_derived_event_files.1.gz
/usr/share/man/man1/papi_avail.1.gz
/usr/share/man/man1/papi_clockres.1.gz
/usr/share/man/man1/papi_command_line.1.gz
/usr/share/man/man1/papi_component_avail.1.gz
/usr/share/man/man1/papi_cost.1.gz
/usr/share/man/man1/papi_decode.1.gz
/usr/share/man/man1/papi_error_codes.1.gz
/usr/share/man/man1/papi_event_chooser.1.gz
/usr/share/man/man1/papi_hybrid_native_avail.1.gz
/usr/share/man/man1/papi_mem_info.1.gz
/usr/share/man/man1/papi_multiplex_cost.1.gz
/usr/share/man/man1/papi_native_avail.1.gz
/usr/share/man/man1/papi_version.1.gz
/usr/share/man/man1/papi_xml_event_info.1.gz
/usr/share/papi
/usr/share/papi/papi_events.csv

References

Summary

In this tutorial we learn how to install papi on CentOS 8 using yum and dnf.