67

How to prevent pacman (archlinux's package manager) from reinstalling packages that were already installed?

 pacman -S packagename    # install and reinstall if exists
Kokizzu
  • 1,807

1 Answers1

114

Use the --needed option to skip reinstall of existing packages when you Sync (-S). Useful for package groups and package list installations.

If a package in the list is already installed on the system, it will be reinstalled even if it is already up to date. This behavior can be overridden with the --needed option.

cachius
  • 859