The actual process of fitting a new rifle barrel is this:
First, the old barrel is removed by locking the barrel in a special barrel vise.
This is actually more of a press device using a hydraulic cylinder and brass or aluminum "jaws" that encircle the barrel and clamp it with tremendous force to prevent it from turning.
Then, a special receiver wrench is attached to the receiver.
This wrench is specially made to fit a specific brand and model of receiver, and encloses the front of the receiver to support it and prevent twisting or bending the receiver.
The receiver is then unscrewed from the barrel.
New barrels these days are virtually ready to be screwed into the receiver. You can usually buy new barrels that are threaded, short chambered, turned to the outer size and shape, and the muzzle is properly crowned.
The new barrel is screwed into the receiver, then the barrel vise and receiver wrench is used to torque the barrel in place.
The barrel usually comes with the chamber already cut, but "short chambered". This means that the chamber is cut just slightly short to allow the gunsmith to do the final fitting.
The gunsmith uses a special chambering reamer and head space gages to cut the chamber to the finial size.
The head space gages are used to gage the chamber so there is the correct head space.
In other words, the chamber can't be so short the bolt can't close on a cartridge, but not so long that there's TOO much space causing the cartridge to not be supported by the chamber and rupturing.
All this requires a considerable investment in tools and gages.
Some barrels come less finished.
These can range from barrel blanks, which are simply large diameter rifled cylinders, that must be threaded, chambered, the outside must be turned down to the right profile, and crowned, to the virtually finished short chambered models.
The barrel blanks require a VERY good gunsmith with even more equipment, like a precision lathe.
So, the amount of fitting work needed is directly related to the barrel you buy.
Again, these days, most barrels come in virtually finished models needing only to be attached to the receiver and to have the chamber finial fitted.
However, in no case can a rifle barrel be fitted by "just screwing it into the receiver". It requires an expert gunsmiths skills and tooling.