当前位置: 首页>>技术教程>>正文


meta-package和包装之间有什么区别?

,

问题描述

我听说有些软件包被分类为meta-package。因此,现在我想知道meta-package和包装之间有什么区别?

最佳办法

These packages do not contain actual software, they simply depend on other packages to be installed.

重要的是要注意,删除元软件包不会删除它已安装的软件包:

when a metapackage is automatically removed by the removal or purging of any one, or more, of its underlying dependencies, all of the other packages that were in the metapackage’s depends list are still installed on the system.

您可以通过拉(例如)ubuntu-desktop来查看典型元包的结构:

apt-get source ubuntu-desktop

然后查看结构,您将找到每个meta-package建议的软件包列表,以及在debian/rules中将它们放在一起的结构。

参考文献:

次佳办法

元软件包是指向一个或多个现有软件包的链接。因此它们本质上是一个安装其他软件包的脚本。

例如:软件包ubuntu-desktop安装ubuntu的默认UI所需的所有软件包。但是卸载同一个并不会卸载其依赖项

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/9163.html,未经允许,请勿转载。