How to install opengl4.6 with nvidia driver on ubuntu22.04 (not laptop)

Continuing the discussion from How to install OpenGL libs of nvidia?:
there is not “prime-select nvidia” on my host, so should i just select the screen driver with any NVIDIA GPU BusID in the xorg.conf file, or install a third-party library like “prime-select” on my host? THANKS!