Derek Holland tossed a two-hit shutout, overcoming his shaky history against the Yankees, and Jurickson Profar homered and scored both runs as the Rangers won 2-0 on Thursday and finished a difficult road trip with a 5-1 record.

Holland needed only 92 pitches for his sixth career shutout, striking out six and walking two. He entered Thursday with an 0-5 record and an 8.85 ERA in his career against the Yankees, and his numbers at Yankees Stadium (0-3, 8.06) were only mildly better.

But after Ichiro Suzuki started the first with a single, Holland retired eight straight until Austin Romine’s two-out single in the third. Jayson Nix took a leadoff walk in the fourth, but Holland responded with nine straight outs.

Robinson Cano walked to start the seventh, but Geovany Soto cut him down as he tried to advance on a wild pitch. Holland then struck out Vernon Wells for a third time, and David Murphy grabbed Zoilo Almonte’s flyball at the left-field wall.

Holland (6-4) sailed through a perfect eighth inning, and got Brett Gardner, Ichiro Suzuki and native Texan Jason Nix in order in the ninth to finish the gem.

Profar scored the Rangers’ first run after drawing a walk from Phil Hughes, going to third on Engel Beltre’s first big-league hit in his first career at-bat, and tagging on Ian Kinsler’s sacrifice fly for a 1-0 lead.

Profar’s third homer of the year opened the fifth inning and was the Rangers’ only hit before Beltre started the eighth with an infield single.