The 41-year-old Pettitte (6-6) earned his 251st win, tying Hall of Famer Bob Gibson for 44th place on the all-time list.
Pettitte stretched his unbeaten streak against Baltimore to 11 starts dating to 2007, winning eight times. Overall, he is 28-6 against the Orioles -- only Yankees great Whitey Ford (30) has beaten the Birds more often since the franchise moved from St. Louis to Baltimore for the 1954 season.
Mariano Rivera worked the ninth for his 29th save.
Nunez came off the 60-day disabled list before the game and played for the first time since a strain on his left side slowed him in early May. His key hit helped end a seven-game winning streak by Chris Tillman (10-3). Nunez had a sac fly in the second, singled and scored in the fifth and knocked in the go-ahead run with a single in the sixth.
TIGERS 9, INDIANS 4
Hunter hit a two-run homer, tripled and doubled as the Tigers won their seventh straight over the Indians and increased their lead in the AL Central to 3½ games. Detroit is 8-2 against Cleveland, and the Tigers have outscored the Indians 16-4 in winning the first two of the four-game set.
Anibal Sanchez (7-5) returned from the disabled list and pitched five innings for his first win since June 4. Cabrera and Prince Fielder homered in the third off Carlos Carrasco (0-4), who was recalled from the minors to face the AL's best hitting team.
TWINS 6, BLUE JAYS 0
Dozier had two hits and four RBIs, connecting off knuckleballer R.A. Dickey for his eighth homer as the Twins snapped a six-game skid and won for just the fourth time in 14 games.
Minnesota came in having lost 17 of 23 to Toronto, including eight of nine at Rogers Centre.
Pelfrey (4-6) snapped an eight-start winless streak to earn his first victory since May 5 at Cleveland. He allowed three hits in six innings, walked three and struck out two.
Dickey (8-9) gave up six runs and seven hits in seven innings. He struck out three.
ROYALS 4, ATHLETICS 3
KANSAS CITY, Mo. -- Jarrod Dyson delivered an infield single with the bases loaded and two outs in the eighth inning, giving Kansas City a scrappy victory over Oakland.
Dyson, hardly known for his power, showed bunt on his first pitch from Cook (1-2) before hitting a grounder deep behind second base. Shortstop Adam Rosales fielded it cleanly but didn't even bother with a throw as pinch runner Alcides Escobar scored the go-ahead run.
RAYS 3, WHITE SOX 0
Moore (12-3), who could still become an All-Star as an injury replacement, gave up five hits, two walks and struck out six in 6 1-3 innings.
The Rays have won seven of eight, improving to a season-best eight games (48-40) over .500. Fernando Rodney, the third Tampa Bay reliever, pitched the ninth for his 19th save -- completing the six-hitter.
Sale (5-8) allowed three runs, six hits, one walk and had nine strikeouts in seven innings for the White Sox, who have lost eight of 10. The left-hander, despite giving up just 20 runs -- 17 earned -- over 49 1-3 innings, is 0-6 in his last seven starts.
ASTROS 9, RANGERS 5
The catcher's drive came off Robbie Ross in the seventh inning but made a loser of Darvish (8-4), who had a rough night after earning his second All-Star nod in two years in the majors.
Travis Blackley (1-0) got the win with 1 1-3 innings of scoreless relief.
Darvish came out after walking Jose Altuve to start the seventh, and Brett Wallace was hit by a pitch from Ross. Castro, who had two hits and scored twice, followed with his 12th homer. Wallace reached base five times, adding two doubles and two walks.
Darvish, the major league strikeout leader, had six in six innings, but gave up six hits and a season-high five earned runs.
Copyright 2013 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index