阻止pacman重新安装已经安装的软件包


38

如何防止pacman(archlinux的软件包管理器)重新安装已经安装的软件包?

 pacman -S packagename    # install and reinstall if exists

Answers:


62

--needed同步(-S)时,使用该选项跳过现有软件包的重新安装。

如果系统中已经安装了列表中的软件包,则即使它是最新的,也会重新安装。可以使用--needed选项覆盖此行为。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.