Odin program can help you installing and updating the Official ROM/Firmware manually through it
One of the good things about Samsung devices is the easy availability of stock firmwares and an even easier method for flashing them. It gives you the confidence to take little risks like flashing CF-Root kernels or a custom recovery because always know that if anything goes wrong, you’ll be able to restore the stock firmware and fix your device.
Since the success rate of flashing files with Odin differs according to Odin versions, you should always use either the Odin version recommended by the tutorial you are following, or Odin v1.85, Odin v3.09, or Odin 3.10.
Download Odin Tool (All Versions)
Odin_v1.85.zip (recommended for Gingerbread/Ice Cream Sandwich firmwares)
Odin_v3.09.zip (recommended for JellyBean/KitKat firmwares)
Odin3_v3.10.7.zip (recommended for Lollipop firmwares)
Odin3 v3.11.1.zip (latest version recommended for flashing Marshmallow firmware)
Odin3 v3.11.2.zip (New UI)
Note: If you have been following some tutorial to flash the stock firmware or firmware component/s, please use the Odin version recommended in the guide.