There’s no “i” in macOS, at least not anymore. Apple replaced “iPhoto” with the more generic-sounding “Photos” in 2015; then, in 2019, they removed iTunes and replaced it with separate apps for Music, Podcasts, and TV.
How to Install iTunes on macOS Sonoma
Both changes are, arguably, improvements, but I can’t blame some Mac users for missing the old apps. And you can get them back, sort of, with the help of an open source project called Retroactive, which officially supports macOS High Sierra via Ventura. You’ll note that Sonoma, the current version of macOS, isn’t on that list, though I was able to get both iTunes and iPhoto working (Aperture, alas, no longer works).
To begin, you need to download the latest version of Aperature. Note that you need to right-click on the application and click "Open" to launch it. Then you can use the software.
Click the blue Install button under the iTunes logo and you’ll be asked which version of iTunes you want. These versions all seem to work to varying degrees, but I personally had the most luck with 11.4, which also has a very retro look to it. Click the version you want and click Continue.