Installing elasticsearch plugins from RPMs

I am trying to install the HEAD plugin from an RPM, but it's failing because of the common error of 'ERROR: Could not find plugin descriptor '' in plugin zip', my rpm contains that file.

Trying to find the right documentation to install a plugin from an RPM, but there doesn't seem to be one.
Can we actually install a plugin from an RPM? If yes, is there a different way to do so then

bin/plugin install file://



Note that site plugins will be removed in 5.0.

Yeah, I had a look at their github project, but my use case wants installation from an rpm. The plugin can be successfully installed on es 2.x using zip file or providing correct name for the plugin.