On the jump jet version of the Anglo-American aircraft, which is being bought by the UK, the same gun is being installed – but it will be fitted externally, on the F-35's centreline.
How can you install something when it's" fitted externally"?
Ref
Navy?s next-generation stealth fighter lets rip with Gatling gun | Royal Navy