Skip to content
Home » How to remove unused dependencies in Pacman

How to remove unused dependencies in Pacman

Let’s start the discussion about How to remove unused dependencies in Pacman in following methods.

pacman remove unused dependencies

We’re searching for something similar to apt-get autoremove. The pacman -Qdtq command displays a list of dependencies that are not required. To remove them, however, you must combine it with pacman -R. This is how it would look:

sudo pacman -Rsn $(pacman -Qdtq)

In the future, don’t forget to use the -Rs option to uninstall packages (R to remove the package in question, s to also uninstall all its dependencies).

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to install scikit learn python library