@phase2
Only safe and effective way to do that is to air-gap your system and never ever let it connect to the Internet again.
There are a good number of recording engineers who do that with their studio PCs. This is just as much a thing with macOS as it is Win, as quite a few major Mac updates in recent years have temporarily broken functionality of music production apps by messing with device and media handling.
@phase2
As for Linux, I don't know what specific hardware and apps you are using, but none of the scorewriting and audio production apps and utilities I need to use will run natively on Linux. Neither will the dedicated outboard hardware I rely on. None of this is esoteric stuff, but I need all of it to work perfectly with low latency. The fact that none of it does without emulation layers and such that degrade performance makes Linux a hard no-go for me, unfortunately.