This selection includes the Ten Commandments, complete with commentary; the famous admonition to Love the Lord your God with All your Heart, Soul and Mind; and direction to kill everyone and everything encountered in the Land of Canaan.
There are a couple of differences between Deut. 5 and Ex. 20 besides the slight rewording of the commandments. Exodus includes Aaron, Deuteronomy does not. Also, in Exodus the people seem to want to come up the mountain and Moses warns them away. In Deuteronomy the people are scared, although they do hear the words God speaks. Those seem to me to be important differences of emphasis–particularly with regard to how special the priests are.
With the greatest commandment, formulated in the NIV as–Love the Lord your God with all your heart and with all your soul and with all your strength–it seems to me that we return to the idea of YHWH is the best god, rather than the only god. That could just be that it would be cumbersome to keep saying, “don’t worship the other gods–which are fake gods–because out god is the best god and the only god.”