Yep this is totally fine. The docs should probably be updated. Deno 2 changed the install sub command. To get the old behaviour you need the --global flag. This just means that the command will install it as an executable in the main/global scope.
Btw. If you are using proxmox LXC containers, there is an install script. Idk how up-to-date it is tho.