包管理器与依赖管理器 [英] Package Manager vs Dependency Manager
问题描述
有什么区别?
在许多地方,它们可互换地用作同义词,但我认为它们是不同的。 简而言之,主要区别是什么?
In many places they used interchangeably as synonyms but I think they are different. What is the key difference in short?
推荐答案
TLTR: Package Manager用于 SYSTEM ,而Dependency Manager用于 PROJECT
TLTR: Package Manager is used for SYSTEM and Dependency Manager for PROJECT
软件包管理器-用于配置系统,即设置您的开发环境,并使用这些设置可以构建许多项目。
Package Manager - is used to configure system, ie to setup your development environment and with these settings you can build many projects.
依赖管理器-特定于项目。您可以管理单个项目的所有依赖项,这些依赖项将保存在您的项目中。当您开始另一个项目时,您应该再次管理依赖项。
Dependency Manager - Is specific to project. You manage all dependencies for a single project and those dependencies are going to be saved on your project. When you start another project you should manage your dependencies again.
示例:在PHP世界中有COMPOSER作为依赖管理器,而PEAR是软件包管理器。使用composer时,所有设置和扩展都针对单个项目,其中梨设置用于将新扩展和库设置为php核心。
EXAMPLE: In PHP world there is COMPOSER as dependency manager and PEAR as package manager. When using composer all your settings and extensions are for single project where pear settings to setup new extension and library to php core.
这篇关于包管理器与依赖管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!