IT research giant Gartner said 27 December that it will buy rival research firm META Group for US$162 million in cash and close the deal in the second quarter of 2005.