How do I install Mac OS X El Capitan on my other iMac?
Given that you have the IntallMacOSX.pkg file you need to extract the app -so, you want this answer: How can I open a .pkg file manually?

You can then extract the "Install OS X El Capitan.app" application into your Applications directory and proceed with the steps as outlined by Apple.