How can I tell what OpenGL versions are supported on my (Arch Linux) machine?

up vote 7 down vote accepted

glxinfo | grep "OpenGL version"

  • That's not a program installed by default, but it is available in the AUR. I'm guessing there is no default program to do this? – Jeroen Bollen Apr 8 '14 at 19:59
  • 3
    @JeroenBollen It's in the mesa-demos package in extra. You can also use glewinfo if you have glew already installed. – Leiaz Apr 8 '14 at 22:52
$ sudo pacman -S mesa-demos
$ glxinfo | grep "OpenGL version"
glxinfo | awk '/OpenGL version/ {print $4}'

Install "mesa-demos" if it does not work. :)

  • This command didn't output anything for me. – Jeroen Bollen Apr 20 '16 at 19:56
  • mesa-demos is installed? funkyimg.com/view/2g21m – Matthias Schuster Aug 29 '16 at 8:12
  • Using a fixed column number is not going to be viable, specially over different versions. One might change the output format in different releases. – Waruna Ranasinghe Oct 8 at 20:01

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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