containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

Allow setting the containerlab version as an env var when using `utils/quick-setup.sh`

Open clabu opened this issue 5 months ago • 2 comments

utils/quick-setup.sh does not allow containerlab version to be pinned.

I think the least surprising behavior would be that if you use, for example, v0.69.0 of the utils/quick-setup.sh (https://github.com/srl-labs/containerlab/blob/v0.69.0/utils/quick-setup.sh) it will install containerlab v0.69.0. Actual behavior is that it installs the latest available version of containerlab.

An environment variable or parameter that allows to select which containerlab version to install would also be nice.

clabu avatar Oct 13 '25 09:10 clabu

Hi @clabu yeah, that can be improved

in the meantime you can install clab via apt/rpm package manager, there you can set the desired version. the package has already been installed by the quick setup script

hellt avatar Oct 13 '25 18:10 hellt

Thanks @hellt! In the meantime, we discovered the get.sh script, which has support for specifying a version (see below), so we have switched to that script instead. Still, it would be nice if utils/quick-setup.sh supported specifying a version.

https://github.com/srl-labs/containerlab/blob/6ec178caf25473807a773aebf02ab9f2a25f591f/get.sh#L326

clabu avatar Oct 13 '25 19:10 clabu