Tino Anjorin, Ben Stevenson, Kusini Yengi, Abu Kamara and Ryley Towler were the scorers as the Blues defeated the League Two side in the EFL Trophy group stages.
Of those goals, four arrived in a stunning second-half showing from the League One leaders – and here are our Pompey player ratings...
21. Harry Jewitt-White
Sub Not Used. Photo: Jason Brown
22. Portsmouth defender Zak Swanson (2) during the EFL Trophy match between Portsmouth and Gillingham at Fratton Park, Portsmouth, England on 10 October 2023.
Zak Swanson on the attack against Gillingham in Pompey's 5-1 victory in the EFL Trophy. Picture: Jason Brown/ProSportsImages Photo: Jason Brown