Line 1 : Removes OpenJDK from your machineLine 2-3: Allows you to use the partner repository which has the sun packages and updates aptLine 4-5: Installs the needed files needed for the Sun JRE to runLine 6 : Tells your system to only use the sun java binaries.