Seamer Duanne Olivier has completed an 11-wicket match haul as South Africa took control of the first Test against Pakistan.

Pakistan were bowled out for 190 in their second innings at the close of day two at Centurion Park on Thursday.

Olivier finished with 5-59 to go with his first innings figures of 6-37, as Pakistan set South Africa a target of 149.

Thirty wickets have fallen on the opening two days of a game that has moved forward at a rapid pace.

The home side will begin their chase on the third morning, but with rain forecast for both days three and four.

A side has chased down more than 149 to win a test in Pretoria on only three previous occasions, the last in 2007 when South Africa scored 199 to beat Pakistan by seven wickets in 2007.

"The pitch is a bit tricky, there is sideways movement," said South Africa batsman Temba Bavuma, who top-scored in his team's first innings with 53.

"Centurion as we know can get a bit up and down, so there is something there for the bowlers. The batters will have to knuckle down.

"But you can definitely bat on it. You just have to have a good game plan."

Olivier, in the side only because stalwart seamer Vernon Philander was injured, showed great pace and accuracy to help bowl Pakistan out in 56 overs in their second innings.

The tourists had been on top when they went to tea on 1-100 with a lead of 58.

They then lost their final nine wickets for only 90 runs as the South African seamers found movement on a wicket that is also showing variable bounce.

Opener Imam-ul-Haq had looked rock solid at the crease for his 57 before he chopped an Olivier delivery onto his stumps, while number three Shan Masood crafted a fine 65 but holed out to Keshav Maharaj in the deep off Dale Steyn (2-34).

No other Pakistan batsman made more than 12 in the innings, and they were easily picked off as they hung on the back foot, too wary of the pace and bounce in the wicket.

That included a second duck of the match for captain Sarfraz Ahmed, who was caught at slip by Faf du Plessis off excellent pace bowler Kagiso Rabada (3-47).

South Africa had earlier laboured to 223 in their first innings after starting the second day on 5-127.

Seamers Mohammad Amir (4-62) and Shaheen Afridi (4-64) were particularly impressive in getting the ball to move off the pitch, with seven of their eight scalps caught behind the wicket.