The Raspberry Pi Image program that comes with Raspberry Pi OS allows you to install an OS (similar to Etcher but with Pi images incorporated into it) to SD card, SSD, etc. Has lots of stock images, including Retropie, several Ubuntu variants, Raspberry Pi OS and more. You can also flash a custom image and wipe drives.
sudo apt update && sudo apt upgrade
sudo apt install snapd
sudo snap install rpi-imager