The Yankees on Monday acquired right-handed reliever Clay Holmes from the Pirates for minor league infielders Diego Castillo and Hoy Park.