Here are some links to help you more. While it is easy to just ask questions on this forum, I think you will benefit more from reading the answers directly from official documentation.
You can find the Solaris 10 documentation here:
Information about installing packages is on the link "Basic Administration" : http://docs.oracle.com/cd/E23823_01/html/817-1985/index.html
The specific section is: "Managing Software" : http://docs.oracle.com/cd/E23823_01/html/817-1985/swmgrpkgsconcepts-52619.html#scrolltoc