Problem reinstalling el Capitan on an old iMac after already erasing the drive
I am trying to donate my old iMac to charity and need to wipe reinstall OSX for the next person to use it.
I have a problem in that I have already erased my old iMac hard drive assuming I could reinstall El Capitan using recovery mode. Unfortunately in recovery mode it says my computers eligibility will be verified with Apple and then comes back saying an error occurred while preparing the installation. I can't get past this and can't reinstall el Capitan this way.
This led me to the next option which was to create a bootable USB using one of the downloadable OSX versions apple offers.
This required me to download the el Capitan version of the InstallOSX.dmg file and to then launch it to extract the Install OSX El Capitan app into my applications folder.
Here is where I get stuck because all of my other Macs are modern ones and they won't allow me to run the InstallOSX.dmg file. Without running this I can't get the Install OSX El Capitan app into my applications folder and hence can't run the terminal commands to create a bootable USB.
How can I get around this? Is there an Apple validated version of Install OSX El Capitan.app available somewhere that can avoid me using the standard InstallOSX option? Surely I wouldn't be blocked from restoring this Mac and providing it to charity just because it is old.
Earlier Mac models