Nah, there's not really a way to just install OpenGL because it's provided/implemented by the drivers for your hardware. On Linux, for Intel integrated graphics, that is indeed Mesa. But like. If you have a graphical user interface, you should have Mesa and OpenGL installed. Did you see an error message that sent you down this rabbit hole?