Before you proceed, ensure your system is compatible. macOS Catalina supports the following Macs:
Apple provides the official installer via the Mac App Store, but only if you’re running an older macOS version. Here’s how to get it directly from Apple’s servers. Download Macos 10.15 Catalina Dmg File
Once you have Install macOS Catalina.app, create a bootable USB drive for clean installations: Before you proceed, ensure your system is compatible
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
To turn that USB into a DMG file for archival: Apple provides the official installer via the Mac
sudo dd if=/dev/rdisk2 of=~/Desktop/CatalinaBootable.dmg bs=1m
(Replace rdisk2 with your USB’s identifier – use diskutil list first)