As packages are added, built and removed it is not uncommon to have unneeded dependencies, also called orphans, building up over time. While orphans are not harmful, they take up space on the disk and consume network bandwidth as they are continually updated. Luckily, there are a couple of easy ways to view and remove orphans.
To use pamac follow [[Pamac#Dealing_with_Orphaned_Packages|this
To use pacman follow [[Pacman_Overview#Viewing_and_Removing_Orphans|this guide]].
But the cache can grow to include dozens of each package resulting in gigabytes of space.
To use pamac follow [[Pamac#Cleaning_the_Cache|this
To use pacman follow [[Pacman_Overview#Cleaning_the_Cache|this guide]].