I'm trying to find the source package for libglut.so.

I found this website that explains how to do it in ubuntu:https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file

But I need to know how to do it in CentOS.

My system is CentOS 6.4


Assuming you already have the package installed, rpm -q --whatprovides /usr/lib64/libglut.so.3 will show the name of the package providing the file.

(Inapplicable as you don't want to use yum) : if not already installed, then yum provides /usr/lib64/libglut.so.3 or simply yum provides 'libglut*' will search the yum repos and provides the information.


This can be done using yum:

yum provides */libglut.so

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.