Updated

Aramis Ramirez and Corey Hart each hit a three-run homer and the Milwaukee Brewers pounded the Houston Astros 10-1 on Wednesday night.

Ramirez had three hits and four RBIs, including his 13th homer of the season in the third inning. Hart hit his three-run shot in the fifth, his 20th homer.

Brewers starter Yovani Gallardo (9-8) went seven innings, giving up one run and three hits with a walk and five strikeouts. And this time he wasn't betrayed by the team's leaky bullpen, as Jim Henderson got out of a bases-loaded jam in the eighth and Francisco Rodriguez pitched a perfect ninth.

Home plate umpire Brian Knight ejected Brewers manager Ron Roenicke and bench coach Jerry Narron in the ninth.

Gallardo was coming off a rough outing in which he gave up seven runs in five innings against the Washington Nationals.

Chris Snyder hit his fifth home run of the season for Houston.

Astros starter Dallas Keuchel (1-4) struggled, and was charged with seven runs and seven hits in four-plus innings with six walks.

Ryan Braun returned to the lineup after missing Monday night's game with blisters on his hand.

After Norichika Aoki led off the first with a single and Braun took a one-out walk, the Brewers used a double-steal to put runners on second and third. Aramis Ramirez singled to score Aoki and give Milwaukee a 1-0 lead.

Neither the Astros or Brewers pulled off any last-minute deals before Tuesday afternoon's non-waiver trade deadline. Both team, however, pulled off selling-minded trades earlier in the month — Houston made a series of moves, while Milwaukee sent ace pitcher Zack Greinke to the Angels last week.

With runners on first and third with one out in the second, Gallardo laid down a perfect squeeze bunt, allowing Weeks to score from third for a 2-0 lead — and the Astros weren't able to throw Gallardo out at first, leaving runners on first and second with one out.

But Aoki hit into a double play to end the inning, and Snyder led off the third with a homer to cut the lead to 2-1.

The Brewers broke the game open in the third, when Carlos Gomez doubled, Braun walked and Ramirez hit a three-run homer. Keuchel issued another pair of walks before getting Cody Ransom to hit into an inning-ending double play.

Milwaukee ended its first three innings on double plays but still led 5-1.

Keuchel gave up singles to Braun and Ramirez to start the fifth, and was taken out of the game. Reliever Chuckie Fick then gave up the three-run homer to Hart and the Brewers led 8-1.

Fick hit Gomez with a pitch in the left wrist in the sixth, and Gomez briefly looked like he was going to charge the mound. But Gomez — who also was hit Monday night — quickly calmed down and took first base.

Brewers reliever Jim Henderson loaded the bases with two outs in the eighth, then struck out Brett Wallace to end the inning.

Pinch hitter Nyjer Morgan added a two-run single in the ninth.

NOTES: After trading away Greinke last week, Brewers general manager Doug Melvin said things weren't active at the trade deadline Tuesday. "I didn't have any phone calls at all from a general manager all day," Melvin said. Melvin did not rule out potential activity in August, when players have to pass through waivers to be traded. ... Astros manager Brad Mills said before the game he doesn't intend to formally name a closer for now, but wants to give Wilton Lopez get a shot at the role.