「メタパッケージとパッケージグループ」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(内部リンクを修正)
38行目: 38行目:
 
* networking tools such as {{Pkg|iproute2}}
 
* networking tools such as {{Pkg|iproute2}}
   
The [[kernel]] is an optional dependency. See [https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/ the announcement when it was introduced], and [https://lists.archlinux.org/pipermail/arch-dev-public/2019-January/029435.html reasoning why base is a meta package].
+
The [[カーネル]] is an optional dependency. See [https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/ the announcement when it was introduced], and [https://lists.archlinux.org/pipermail/arch-dev-public/2019-January/029435.html reasoning why base is a meta package].
   
 
== グループ ==
 
== グループ ==

2020年7月31日 (金) 18:35時点における版

メタパッケージパッケージグループ は、関連するパッケージ一式を表すために、パッケージャー によって定義されています。 どちらも、メタパッケージまたはグループ名をパッケージ名の代わりに使用することで、パッケージ一式を同時にインストールまたはアンインストールすることができます。グループはパッケージではありませんが、パッケージと同じようにインストールすることができます。pacman#パッケージグループのインストールPKGBUILD#groups を参照してください。

メタパッケージとパッケージグループの違い

The difference between a meta package and a regular package is that a meta package is empty and exists purely to link related packages together via dependencies. A meta package, often (though not always) titled with the "-meta" suffix, provides similar functionality to a package group in that it enables multiple related packages to be installed or uninstalled simultaneously.

Each solution has advantages and disadvantages:

meta package:

  • Meta packages can be installed just like any other package (see pacman#Installing specific packages).
  • Meta packages can be removed like any other package (see pacman#Removing packages).
  • Any new member packages will be installed when the meta package itself is updated with a new set of dependencies.
  • Users cannot choose which meta package dependencies they wish to install.
  • Users cannot remove meta package dependencies without having to uninstall the meta package itself.

group:

  • Package groups will prompt users to select the packages from the group that they wish to install (see pacman#Installing package groups).
  • Users cannot uninstall a group, because they installed a list of packages. Instead, pacman -R groupname tries to remove all members of the group.
  • New group members will not be automatically installed.
  • Users can choose which group members they wish to install.
  • Users can uninstall group members without having to remove the entire group.

メタパッケージ

The most important meta package is base. It contains a minimal package set that defines a basic Arch Linux installation. It includes:

The カーネル is an optional dependency. See the announcement when it was introduced, and reasoning why base is a meta package.

グループ

The most important package group is base-devel. It contains tools required to build many packages like GCC and make. See also makepkg#Usage.

参照