このコマンドが私が望むよりも多くのパッケージを削除するのはなぜですか?

このコマンドが私が望むよりも多くのパッケージを削除するのはなぜですか?

次のコマンドを実行するとき:

# apt-get purge unity-scopes-m*

次のパッケージを削除したいと思います。

unity-scope-manpages
unity-scope-musicstores
unity-scope-musique

代わりに、私が予期しなかったいくつかのパッケージを削除しようとしています。

Note, selecting 'unity-scopes-impl-0' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-impl-1' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-impl-4' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-impl-6' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-master-default' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-qt-dev' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-json-def' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-qt' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-qt-doc' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-json-def-desktop' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-runner' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-dev' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-json-def-phone' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-doc' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-master' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-impl' for regex 'unity-scopes-m*'
Note, selecting 'libunity-scopes-cli' for regex 'unity-scopes-m*'
Note, selecting 'unity-scopes-master-default' instead of 'unity-scopes-master'
Note, selecting 'unity-plugin-scopes' instead of 'unity-scopes-impl'
Note, selecting 'unity-plugin-scopes' instead of 'unity-scopes-impl-0'
Note, selecting 'unity-plugin-scopes' instead of 'unity-scopes-impl-1'
Note, selecting 'unity-plugin-scopes' instead of 'unity-scopes-impl-4'
Note, selecting 'unity-plugin-scopes' instead of 'unity-scopes-impl-6'
Package 'libunity-scopes-cli' is not installed, so not removed
Package 'libunity-scopes-dev' is not installed, so not removed
Package 'libunity-scopes-doc' is not installed, so not removed
Package 'libunity-scopes-json-def-phone' is not installed, so not removed
Package 'libunity-scopes-qt' is not installed, so not removed
Package 'libunity-scopes-qt-dev' is not installed, so not removed
Package 'libunity-scopes-qt-doc' is not installed, so not removed
The following packages will be REMOVED:
  account-plugin-aim account-plugin-jabber account-plugin-salut account-plugin-yahoo brasero brasero-cdrkit deja-dup
  deja-dup-backend-gvfs empathy gir1.2-unity-5.0 libbrasero-media3-1 libunity-scopes-json-def-desktop libunity-webapps0 libunity9
  mcp-account-manager-uoa nautilus nautilus-sendto nautilus-share rhythmbox-plugin-cdrecorder shotwell telepathy-indicator
  thunderbird-gnome-support ubuntu-desktop unity unity-lens-applications unity-lens-files unity-lens-music unity-lens-photos
  unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine
  unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-gmusicbrowser
  unity-scope-gourmet unity-scope-guayadeque unity-scope-home unity-scope-manpages unity-scope-musicstores unity-scope-musique
  unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp
  unity-scope-zotero unity-scopes-master-default unity-scopes-runner unity-webapps-common unity-webapps-qml unity-webapps-service
  usb-creator-gtk webapp-container xul-ext-unity xul-ext-websites-integration
0 upgraded, 0 newly installed, 60 to remove and 0 not upgraded.
After this operation, 39.7 MB disk space will be freed.

このコマンドが予想以上に多くのパッケージを飲み込むのはなぜですか?apt-getマニュアルによると:

.与えられた式と一致するパッケージがなく、式に、または?いずれかが含まれている*場合は、POSIX正規表現と見なされ、データベース内のすべてのパッケージ名に適用されます。次に、すべての一致をインストール(または削除)します。

現在のディレクトリにBashを拡張するファイルはありません*。一重引用符を入れてもunity-scope-m*同じ問題が発生します。

ベストアンサー1

追加のパッケージは、削除する基本パッケージの依存関係である可能性が高いです。

この文字列パターンと一致する唯一のパッケージは確実ですか?調べる:

rpm -qa | grep unity-scopes-m

おすすめ記事