Is it legal to install some packages using terminal zsh

Hi everyone,

I installed the TexLive package using apt install to compile LaTeX code in Visual Studio Code (VS Code). Now, I’m trying to install Spark to build a big data system for distributed training and inference.

Can I install zsh packages within VS Code? I don’t want to violate any policies or restrictions.

If it’s legal , how can I save installed packages? I see only extensions stored automatically in VS Code when I reopen it. Packages like TexLive and Spark aren’t saved.

Thanks in advance for any advice!