7

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

3 Answers 3

9

glxinfo | grep "OpenGL version"

2
  • 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
    Apr 8, 2014 at 19:59
  • 4
    @JeroenBollen It's in the mesa-demos package in extra. You can also use glewinfo if you have glew already installed.
    – Leiaz
    Apr 8, 2014 at 22:52
8
$ sudo pacman -S mesa-demos
$ glxinfo | grep "OpenGL version"
-1
glxinfo | awk '/OpenGL version/ {print $4}'

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

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

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.