I want to install the Flutter SDK on an Ubuntu system for all users. However, e.g. https://docs.flutter.dev/get-started/install/linux shows me how to do that only for a specific user. Since Flutter needs a lot of disk space, I would prefer installing it like any other program in /usr or /opt.
But how does one do that? Apparently, Flutter needs write permissions to the directories where it was installed to at run time, and I need to avoid making the directories world-writable.