How to upgrade squid 2.5 to 3.1.8

Please give me the procedure of squid 2.5 to 3.1.8 retrogradations
Operating System : Red Hat 9.0
Transparent Proxy
Now I am using proxy min for management , is it possible to open 25 / 110 ports in proxy-min.