Not sure about your question.
Did you buy a bare barrel that needs to have the pinned military style (has front sight etc.) gas block installed? Or do you want to pin a low profile gas block on (these have no front sight installed--may have a piccatinny rail for mounting a front sight or be designed to go under a free float handguard) ?
Some of these use set screws only and there is a gas block dimpling tool to help install these. If you have a drill press and the proper vises etc. to hold the barrel secure, also you can make a jig to accomplish this or even drill a gas block and barrel for taper pins or some other pinning method if you wish.
However, precision is needed and some barrels (those with nitride finishes for example) are extremely tough and slick. These are difficult to drill as their surface hardness may be more than a lot of drill bits can handle. Slipping and scarring the barrel, drilling a hole into a barrel or so close as to make the barrel unsafe, etc., damaging the gas block, not having the gas block's gas hole match up with the barrel's gas port, are all problems that can occur. Unless you are skilled in precision use of tooling, probably need to get a jig to do it right the first time. You do not want to risk ruining a premium barrel because you did not have the right tooling.
Brownells (
https://www.brownells.com/search/index.htm?k=gas+block+tools&ksubmit=y) , among others, is a good source for such tools and often they have videos of how to use them.