通用.deb或.rpm

发布于 2025-01-30 20:26:36 字数 695 浏览 3 评论 0 原文

我注意到VSCODE的下载页面( https://code.visalstudio.com/download )一个 .deb 用于Ubuntu/debian/等的所有版本。以及所有版本的Re/fedora/suse/etc的单个 .rpm

单个文件如何用于多个版本的单个发行版,更不用说多个发行版?我认为库的不同版本等会使这不起作用,例如,从例如 https://superuser.com/questions/1650570/1650570/is-it-safe-to-safe-to-install-ubuntus-ubuntus-deb-packages-on-on-debian-are-are-are-deb -packages-univer

I noticed that the download page for VSCode (https://code.visualstudio.com/download) has a single .deb for all versions of Ubuntu/Debian/etc. and a single .rpm for all versions of RE/Fedora/SUSE/etc.

How can a single file work for multiple versions of a single distro, let alone multiple distros? I would think that different versions of libraries etc. would make this not work, as seems clear from e.g. https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian or https://superuser.com/questions/1650570/is-it-safe-to-install-ubuntus-deb-packages-on-debian-are-deb-packages-univer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

复古式 2025-02-06 20:26:36

创建通用包装格式的逻辑是,它们使包装更易于维护。

所有基于Debian的发行版均基于Debian继承的相同的.deb包装格式。这就是为什么Microsoft在所有基于Debian的发行版中普遍起作用的Visual Studio Code .DEB软件包的原因。 Microsoft并没有为每个基于Debian的发行版创建多个.deb软件包,而是为所有这些分发创建了一个通用.DEB软件包。

所有基于RPM的发行版均基于从Fedora或RHEL继承的相同的.RPM包装格式,因此,Microsoft在所有基于RPM的分布上普遍使用的Visual Studio Code .RPM软件包。

The logic behind creating universal packaging formats is that they make packages easier to maintain.

All Debian-based distributions are based on the same .deb packaging format that is inherited from Debian. That is why the Visual Studio Code .deb package that Microsoft made works universally on all Debian-based distributions. Instead of creating multiple .deb packages, one for each Debian-based distribution, Microsoft created one generic .deb package for all of them.

All rpm-based distributions are based on the same .rpm packaging format that is inherited from either Fedora or RHEL, and as a result the Visual Studio Code .rpm package that Microsoft made works universally on all rpm-based distributions.

遗忘曾经 2025-02-06 20:26:36

当您静态链接时,您可以执行此操作。即,您不使用系统库。您的要求很少。另一方面,每当这些库中出现安全问题时,您都必须重建包裹。人们很少这样做。

You can do that when you statically link. I.e., you do not use system libraries. You have very minimal requirements. On the other hand, every time a security problem appears in these libraries, you must rebuild your package. Which people rarely do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文