They're riveted together; but you can drill the rivets out and replace with machine screws and nuts. Usually one or more of the gears is stripped and there's not much you can do but replace the entire assembly.
https://www.marcospecialties.com/control/keywordsearch?SEARCH_STRING=dredd+gearbox