Step-1: Extract the downloaded root package on the computer to get a file with .tar.md5 extension
Step-2: Switch off the Galaxy S5 and enter Download mode by holding Home, Power and Volume Down buttons together until the construction Android robot and a triangle appear on the phone's screen. Press the Power button again to enter Download mode
Step-3: Ensure that Galaxy S5 USB drivers are installed on the computer
Step-4: Launch Odin on the computer
Step-5: Connect the Galaxy S5 to the computer using USB cable while it is in Download mode. When the phone is connected successfully, one if the ID: COM boxes will turn blue with the COM port number. This step might take some time
Step-6: In Odin click the AP button and select the .tar.md5 file that was extracted in step-1
Step-7: Check that the Auto-reboot and F.Reset Time options are not selected in Odin
Step-8: Double check everything and hit the Start button in Odin to begin the installation process. This will take a few minutes to complete
Step-9: When the installation process is completed, the phone will reboot into recovery mode and install the root package. The ID: COM box will then turn blue
Step-10: You can safely unplug the phone from the computer, once the home screen shows up
I Used that method.