Introduction
On "Enterprise Linux" variants--CentOS, CloudLinux, AlmaLinux, and RockyLinux--you can utilize the 'yum' utility to manage RPM packages installed on the system. The 'provides' sub-command will report information which package installed a particular file.
Procedure
If you have a particular file and would like to find which package installed and manages the file, you can use the 'provides' subcommand. Replace '/PATH/TO/FILE' with your file in question:
yum provides /PATH/TO/FILE
For example, if we want to search for the package containing this 'intl.so' file:
yum provides /opt/cpanel/ea-php80/root/usr/lib64/php/modules/intl.so
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 184.94.196.93
* EA4-experimental: 184.94.196.93
* cpanel-addons-production-feed: 184.94.196.93
* cpanel-plugins: 184.94.196.93
* epel: dfw.mirror.rackspace.com
ea-php80-php-intl-8.0.24-1.1.2.cpanel.x86_64 : Internationalization extension for PHP applications
Repo : EA4
Matched from:
Filename : /opt/cpanel/ea-php80/root/usr/lib64/php/modules/intl.so
Comments
0 comments
Article is closed for comments.