For a new install, the plumber will pick the low point of the basement, cut the floor, dig the pit, and set a liner with the pump, a check valve, and a discharge line. For an existing pump, expect a test of the float, motor, and check valve and a look at whether the pit fills faster than the pump can empty it.
Picking the discharge route deserves as much thought as picking the pump. Because most Duxbury homes rely on private septic, the discharge should go outside and away from both the foundation and the leach field, never into a drain that feeds the tank or onto a neighbor's yard.
Ask about a battery or water-powered backup if storms tend to cut your power. A new dedicated outlet may need an electrician and a wiring permit, which the Building Department's electrical inspector oversees.