Brake drum has to come off. It's also helpful if you pull the axle shaft out (at least a bit, if you're using a screw press or a G-clamp) so you have room behind the thing. You'll need enough room on the backside to press the stud out, for whatever you use as a receiver for the thing (large socket or bit of pipe) and for the fixed jaw of the G-clamp.
It is possible to do without fully removing the axleshaft - just a bit limiting. I'll usually just pull the thing all the way out and take it in the garage, since I prefer to work standing up at the workbench (vice crouching next to the rig.)
This would probably be a good time for a PM service on the wheel bearings and seals.