Due to our little service that explicitly installs a runtime, it won't get cleaned up automatically because we explicitly request it to be installed and is not a dependency of something which results in runtimes being pinned, resulting in many nvidia runtimes being installed on the system when only one is really needed.
To me we can solve this the following ways:
- after installation we unpin the nvidia runtime and don't touch anything else so it gets cleaned up automatically at some point
- Have a service in general that cleans up unused runtimes (that are pinned) and risk removing things which the user might've actually wanted to keep on the system for development for example
- same as point 2 but only for nvidia
Due to our little service that explicitly installs a runtime, it won't get cleaned up automatically because we explicitly request it to be installed and is not a dependency of something which results in runtimes being pinned, resulting in many nvidia runtimes being installed on the system when only one is really needed.
To me we can solve this the following ways: