Introduction
Sometimes you may not know much about a package except that it contains a specific file. In this case, you can use the command below, where /PATH/TO/FILE is replaced with the actual path to the file.
yum provides /PATH/TO/FILE
For example, if we want to search for the package containing /opt/cpanel/ea-php80/root/usr/lib64/php/modules/intl.so we can do so like this:
# 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
Based on this, you can install the intl package with this command:
yum install ea-php80-php-intl