Issue installing OS on an old second-hand iMac
I just got an old second-hand iMac and want to install a new OS.
The iMAC was wiped so I tried to install the OS from recovery restart.
The OS (El Capitan) prompted me to log in with my Apple ID and after that, I got the error message that the OS was temporarily unavailable.
I found out that this was probably because my Apple ID did not match with the previous owner's one. Okay.
I created a bootable Pendrive and I booted from it but it keeps bringing me back to the recovery window where I can install just the El Capitan even though my pendrive is a bootable Yosemite.
Is there any way to kill this Recovery Image of El Capitan? Why is this iMac not booting just from the pen drive?
Many thanks
iMac, OS X 10.11