Hi
I have an old imac a1224 running leopard.
I am trying to install el capitan.
I have downloaded the dmg version and
a backup image to an external hard drive
but no luck.
This is my first mac.
Lufbrarunner is correct - you need to upgrade to Snow Leopard before going to El Capitan. In addition, El Capitan was never available as a DMG file, so I would be careful using that installer, as it is not an official/legal copy.