简体   繁体   English

使用“apt install”安装 *.deb 文件

[英]Install *.deb file with "apt install"

What's the difference between installing a *.deb file with dpkg vs. apt?使用 dpkg 和 apt 安装 *.deb 文件有什么区别?

I've been installing *.deb packages that I download (like Zoom) using "sudo apt install./zoom-file.deb".我一直在安装使用“sudo apt install./zoom-file.deb”下载的 *.deb 包(如 Zoom)。 It seems to work since I'm using Zoom and am not experiencing problems, but is there a difference if I "sudo dpkg -i./zoom-file.deb" instead?它似乎可以工作,因为我使用的是 Zoom 并且没有遇到问题,但是如果我改为“sudo dpkg -i./zoom-file.deb”有区别吗?

thx谢谢

I had the same question a few months ago.几个月前我也有同样的问题。 I'll link some articles at the end.我会在最后链接一些文章。

"The apt-get uses dpkg for the actual package installation." “apt-get 使用 dpkg 进行实际的 package 安装。”

"APT stands for Advanced Packaging Tools used in Debian and its derivatives to manage packages. It is used for installing, upgrading, configuring, removing packages, and maintaining source repositories. “APT 代表用于 Debian 及其衍生产品的高级打包工具,用于管理包。它用于安装、升级、配置、删除包和维护源存储库。

DPKG (Debian Package Manager) works under the hood of APT. DPKG(Debian Package Manager)在 APT 的引擎盖下工作。 While APT manages remote repositories and resolves dependencies for you, it uses dpkg to actually make the changes of installing/removing packages.虽然 APT 为您管理远程存储库并解决依赖关系,但它使用 dpkg 实际进行安装/删除包的更改。 dpkg on itself cannot retrieve/download files from remote repositories, nor can it figure out dependencies." dpkg 本身无法从远程存储库中检索/下载文件,也无法确定依赖关系。”

As you can conclude, APT delegates to DPKG.正如您可以得出的结论,APT 委托给 DPKG。

You can find more info here你可以在这里找到更多信息

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM