Pittsburgh has won three straight and six of seven while the Brewers have dropped three in a row.
Snider had three of Pittsburgh's 13 hits and his home run in the fifth inning a 1-1 tie.
The win went to Francisco Liriano (2-0), who made his second start since coming off the disabled list. He allowed a run on six hits and struck out seven in 5 2/3 innings.
Hiram Burgos (1-2) surrendered three runs on eight hits in five innings to take the loss.
Ohio bar shooting arrested, charged with murder
LGBT community has 'bullied the American people': Bachmann