通用.deb或.rpm
我注意到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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建通用包装格式的逻辑是,它们使包装更易于维护。
所有基于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.
当您静态链接时,您可以执行此操作。即,您不使用系统库。您的要求很少。另一方面,每当这些库中出现安全问题时,您都必须重建包裹。人们很少这样做。
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.