how to install latest mac OS x on iMac without original dvd
hi. I have imac Intel based and early 2008 model. I used Yosemite in it... I erased the Whole HDD.. Now it shows flashing folder icon with question mark..i don't have original DVD or internet connection.. My friend has mac book pro running Yosemite... He also got dmg files of Yosemite and other versions... He created usb bootable disk and it was working with his computer.... Can I use the same USB drive to clean install Yosemite on my computer? If not what are my options... Please help me..i kept iMac without any OS for two weeks... Thanks in advance...
iMac, OS X Yosemite (10.10.3)