[before] $ pacman -Qqs gzip gzip zlib
[after] $ pacman -Qq gzip gzip
we need list local package accurately
-s, --search <regexp> Search each locally-installed package for names or descriptions that match regexp. When including multiple search terms, only packages with descriptions matching ALL of those terms are returned.
ref: https://archlinux.org/pacman/pacman.8.html
Signed-off-by: Wang Yong wangyong0117@qq.com --- distro/archlinux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distro/archlinux b/distro/archlinux index 3942080a6..d7b3d8d78 100755 --- a/distro/archlinux +++ b/distro/archlinux @@ -88,7 +88,7 @@ distro_install_depends()
for pkg in $packages do - pacman -Qqs --noconfirm $pkg || pacman -Sy --noconfirm $pkg + pacman -Qq --noconfirm $pkg || pacman -Sy --noconfirm $pkg done done }