(已解决) zypper up: 尝试重新安装我手动删除的软件

今天执行了一下 zypper up 然后提示如下:

The following 22 applications are going to be installed:
“Archive Manager” Brasero “Desktop Search” Firefox "Five or More"
Four-in-a-row “GNOME Calculator” “GNOME Chess” “GNOME Klotski” “GNOME
Mahjongg” “GNOME Mines” “GNOME Nibbles” “GNOME Robots” “GNOME Sudoku” “GNOME
Tetravex” Iagno “Lights Off” “Pragha Mucic Player” Quadrapassel "Swell Foop"
Tali Videos

The following 56 NEW packages are going to be installed:
MozillaFirefox MozillaFirefox-branding-openSUSE
MozillaFirefox-translations-common MozillaThunderbird
MozillaThunderbird-translations-common bbswitch-kmp-default-0.8_k4.4.0_2-24.23
brasero crafty file-roller five-or-more five-or-more-lang four-in-a-row
four-in-a-row-lang gnome-calculator gnome-chess gnome-games gnome-klotski
gnome-klotski-lang gnome-mahjongg gnome-mines gnome-nibbles gnome-nibbles-lang
gnome-robots gnome-robots-lang gnome-sudoku gnome-tetravex gnome-tetravex-lang
iagno kdebase4-openSUSE kdebase4-openSUSE-lang kernel-default-4.4.0-2.1
kernel-default-devel-4.4.0-2.1 kernel-devel-4.4.0-2.1 kernel-syms-4.4.0-2.1
leafpad libOpenCOLLADA0 libbrasero-burn3-1 libbrasero-utils3-1 libgrlpls-0_2-0
liborcus-0_10-0 lightsoff patterns-openSUSE-sw_management pragha pragha-lang
pragha-plugins python3-six quadrapassel swell-foop tali tali-lang totem
totem-plugins tracker-gui typelib-1_0-TotemPlParser-1_0 xfce4-terminal
xfce4-terminal-lang

可是这些软件就是我不需要才删掉的啊。

我注意到了这个提示

The following 22 applications are going to be installed:
“Archive Manager” Brasero “Desktop Search” Firefox "Five or More"
Four-in-a-row “GNOME Calculator” “GNOME Chess” “GNOME Klotski” “GNOME
Mahjongg” “GNOME Mines” “GNOME Nibbles” “GNOME Robots” “GNOME Sudoku” “GNOME
Tetravex” Iagno “Lights Off” “Pragha Mucic Player” Quadrapassel "Swell Foop"
Tali Videos

但是谷歌并没有找到有效的东西。我尝试了 zypper rm 这些东西但是提示是没有安装这些应用程序。

现在除了在 YaST 里面 mask 这些软件包以外还有别的办法吗?

那些东西叫 application,是 appdata 提供的东西,例子看你自己的 /usr/share/appdata。

你平时用 zypper 处理的叫 package。你用 rm package 的方法去 rm application 自然提示找不到。

zypper rm -u -t application “GNOME Chess”

就可以。

不 mask 你可以试试在 /etc/zypp/zypp.conf 里把:

solver.onlyRequires = false

改成 true,这样就不会自动安装 Recommends 了,而且是永久的。

或者 YaST 里勾选“不安装已安装软件包的推荐软件包”

1赞

感谢,直接 zypper rm -u -t application 提示没有找到,估计是因为我已经删除了。但是开启 solver.onlyRequires 以后就没有要我装回软件包了。