KKR & Co. LP announced Tuesday a deal to buy BMC Software from an investor group led by Bain Capital Private Equity and Golden Gate Capital for an undisclosed amount. Bain had acquired BMC in 2013 in a deal that was valued at $6.9 billion. KKR said it expects the deal to close in the third quarter of 2018. The financing for the acquisition is being provided by Credit Suisse, Goldman Sachs Bank USA, Jefferies Finance, Macquarie and Mizuho Bank. BMC helps companies accelerate cloud adoption. KKR’s stock, which was still inactive in premarket trade, has rallied 6.7% year to date while the S&P 500 has gained 1.8%.