How to install openGL packages?

Hi,

Any one help me regarding how to install openGL packages to work in linux.
And i installed some of the packages(gl,glu), but i don't know whether they are installed are not .. Which command is should use to check whether openGL is installed are not ..

I am Thankful for any kind of help... waiting for your reply..

What Linux are you using?
How did you install the package?
If you are using a rpm based package manager then you can query it to confirm you package is installed, e.g.:

$ rpm -q | grep -i gl

Hi Sir,

I am using ubuntu.
and i installed using "sudo apt-get install".

How to know whether they are installed or not ?

I use Ubuntu also, to query what is installed you can do:

$ dpkg-query -i | grep -i opengl

"dpkg-query -i" lists all the installed packages.
"| grep -i opengl" will cause only those packages that mention opengl (upper or lower case) to be displayed on the screen.

If you know the exact name of the package you are interested in you can run:

$ dpkg-query -l <pkgname>

e.g.:

$ dpkg-query -l libqt4-opengl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libqt4-opengl  4.5.3really4.5 Qt 4 OpenGL module
$