I have found from experience, several ways to install OSX, I have myself found that OSX can ask for an internet connection. This depends on the version of OSX that you are installing and it will ask for you Apple ID.
The approach that I have found is to get a HDD that I know is ok and the use disk utility and to select the HDD and to restore the DMG to the drive. IT does come up with an error but just ignore it.
With Lion you have to extract the contents form the DMG and then restore the PKG to the HDD.
Switch on the mac while holding down the ALT key.
I wanted to upgrade the OS even further using Pike's Tool but it destroyed Lion instead of allowing me to reboot and upgrade.
I recommend that anyone trying this method and wanting to upgrade further that you first make a clone of the HDD then if you experience problems you are at least not left with a Mac without an OS.
Here is the latest list of what we an download.
Download and install current or previous versions of the Mac operating system on compatible Mac computers.
support.apple.com
Ventura 13
Monterey 12
Big Sur 11
Catalina 10.15
Mojave 10.14
High Sierra 10.13
- Click the link to open the App Store page for that macOS.
- In the App Store, click the Get button to start downloading the macOS installer.
- After downloading to your Applications folder, the installer will open automatically. Follow the onscreen instructions to install macOS.
Sierra 10.12
El Capitan 10.11
Yosemite 10.10
Mountain Lion 10.8
Lion 10.7
- Click the link to download a disk image (.dmg) file for that macOS.
- Double-click the .dmg file to open it and see the .pkg file within.
- Double-click the .pkg file, then follow the onscreen instructions. This will install the macOS installer into your Applications folder.
- Open your Applications folder and double-click the macOS installer, named Install [Version Name]. Follow the onscreen instructions to install macOS.