Packer is Not enabling Software Collections (SCL) in Centos -7 image

sudo yum install -y centos-release-scl && sudo yum groupinstall "Development Tools" -y && sudo yum install -y devtoolset-8
sudo scl enable devtoolset-8 bash

echo "Checking enabled SCL's"

echo $X_SCLS

I am not able to see the list of enabled Software Collection Packages… Can someone please help me out…

First, how is this related to Packer?

Second, could you split the && combined commands and execute them separately? Maybe one of them is failing and so the other ones aren’t executed.

Third, I don’t know that much about Centos, but is it even possible to install tools with the version tag 8 on Centos 7? But maybe this is misleading me.