Some dependencies are left behind when you uninstall or remove packages, taking up disk space. In this quick tutorial, I will explain how to remove ALL orphaned packages installed as a dependency and no longer required by any package on Arch #[0] https://www.cyberciti.biz/faq/delete-remove-orphaned-unused-packages-arch-linux-pacman-command/
Are you using #[1] instead of Arch Linux? See how to remove unwanted/unused package dependencies in FreeBSD https://www.cyberciti.biz/faq/how-to-remove-unwantedunused-dependencies-in-freebsd-pkg-command/