Install ros2 packages, apt package by version in a snap


When installing apt packages in a snap, we can only specify the version that are present on the apt list. Is there a way to specify exactly which version we want.

Similarly for ros2 packages, i cant even specify the version. How can i do that?

instead of using the lastest ros2 packages, i want to specify a version.

If using a python pulgin, it is possible to specify the version of the python packages we want to install.

Can it be done with ros and apt packages?