In radiotherapy, when photon energy exceeding 8 MV is utilized, photoneutrons can activate the components within the gantry of the linear accelerator (linac). At the end of the linac’s lifecycle, radiation workers are tasked with its dismantling and disposal, potentially exposing them to unintentional radiation. This study aims to identify and measure the radioisotopes generated by this activation through spectroscopy, and to evaluate the effective dose rate. We selected nine medical linacs, considering various factors such as manufacturer (Siemens, Varian, and Elekta), model, energy, period of operation, and workload. We identified the radionuclides in the linac head by employing an in situ high-purity germanium (HPGe) detector. Spectroscopy and dose-rate measurements were conducted post-shutdown. We also measured the dose rates at the beam-exit window following irradiation with 10 MV and 15 MV photon beams. As a result of the spectroscopy, we identified approximately 20 nuclides including those with half-lives of 100 days or longer, such as 54Mn, 60Co, 65Zn, 122Sb, and 198Au. The dose rate measurements after 10 MV irradiation decreased to the background level in 10 min. By contrast, on 15 MV irradiation, the dose rate was 628 nSv/h after 10 min and decreased to 268 nSv/h after 1.5 hours. It was confirmed that the difference in the level of radiation and the type of nuclide depends on the period of use, energy, and workload. However, the type of nuclide does not differ significantly between the linacs. It is necessary to propose appropriate guidelines for the safety of workers, and disposal/move-install should be planned while taking into consideration the equipment’s energy usage rate.