Updating OS X to NOT the latest version
You can download old versions on the Apple website: https://support.apple.com/downloads/macos
Edit:
This is where you will find installers (going back to El Capitan)
https://support.apple.com/en-us/HT201372