a shame this code has to be a lot more cumbersome than for apt install etc, but not sure how that could easily be improved given you need different repos added etc. So fine going with this for now.