Use a ladder to climb onto the roof and walk to the pipe's location.
Insert a vent flange with flashing over the vent pipe and take note of how many shingles it covers above the pipe. Lift it off and set it aside.
Lift up the shingles previously identified and insert a shingle ripper under them. Hook the nails with the shingle ripper and pull down hard to dislodge them. Remove the nails from all the necessary shingles, but do not pull the shingles out of position.
Lift the shingles up and put the flange back in place. Trace around the upper round portion with a piece of chalk to draw a line on the shingle where you must cut it. Cut along the chalk line with a utility knife until the upper shingles lay flat against the flange.
Hammer galvanized roofing nails in each corner of the flange. Insert additional nails in the top lip of all the upper shingles, spacing them every 3 to 4 inches.
Apply 1/4-inch diameter of roof caulk on top of the nailheads to waterproof them.