German carmakers agreed on Wednesday to update the software in 5.3 million diesel-powered cars to reduce emissions, Transport Minister Alexander Dobrindt told reporters.