Is there a way to get the latest toolkit url from repo address?

I am looking through here:

The problem, it is pain in the neck to upgrade the toolkit (much less hpc, nccl and driver) which I have to scour over various places for compatibility. I made script to make it easier but it has lot of hardcoded versions which gets outdated quickly.

From the above, for example, is there a way to get the latest version?

  1. I heard about this flat repo think which has single file that points to latest rpm. etc,

  2. I may be able to get the wget to manipulate and get file list and do some processing but that always has some risk of making errors in processing.

the idea is, For example, for cuda-toolkit i see latest few are

  1. cudnn9-cuda-13-9.12.0.46-1.x86_64.rpm 8.0KB 2025-08-04 17:51
  2. cudnn9-cuda-13-9.13.0.50-1.x86_64.rpm 8.0KB 2025-09-04 06:11
  3. cudnn9-cuda-13-9.13.1.26-1.x86_64.rpm 8.0KB 2025-09-23 22:09
  4. cudnn9-cuda-13-9.14.0.64-1.x86_64.rpm

In that case, I wanna script to automatically grab cudnn9-cuda-13-9.14.0.64-1.x86_64.rpm

And let’s say in few months, another version with minor version bumped up and I wanna be able to get the script to pick up automatically w/o having to re-edit the versions in the script.