Like pacman [0], which you can use on systems like Ubuntu and Debian via pacapt [1]
[0] https://www.archlinux.org/packages/community/x86_64/mosh/
[1] https://www.ostechnix.com/use-archlinuxs-pacman-package-mana...