I wanted to ask about something that wasn’t clear to me. According to the documentation, in Debian templates/virtual machines, for example, it’s not possible to use the apt command to install/update from the command line without breaking the qube’s isolation, but is it possible to use it to modify a template from a terminal in dom0?
Would you please provide the link to the mentioned documentation? While updating via apt is not recommended, installing new software via apt should be OK.
The exact documentation is here, and the statement is a bit vague regarding software installation; it simply says something like “it should be fine.”
And then I find threads where the complete opposite is done.
I’m not objectively sure if using apt install is okay, but does that mean I can also add third-party repositories to templates to install programs that use independent maintainers? Like importing the key and everything, as in Ubuntu? And wouldn’t that break the template?
Warning: Updating with direct commands such as dnf update and apt update is not recommended, since these bypass built-in Qubes OS update security measures. Instead, we strongly recommend using the Qubes Update tool or its command-line equivalents, as described below. (By contrast, installing packages using direct package manager commands is fine.)
In my final opinion, yes, I believe all the documentation should be significantly updated with the release of version 4.3. However, I think I’ll have to write directly to the development team for a more precise explanation, as I see no reason to avoid exposing the system when connecting to the repository to install a program with apt install.
However, updating template packages (not just Qubes OS’s built-in packages) using traditional methods puts the system at risk. That’s why the recommendation to use Whonix is so strong.
Therefore, I believe essential information for understanding the design of Qubes OS subsystems is missing. Regards.