Debian 中的 Tomcat6?
有人可以向我解释一下 Tomcat6 在 Debian 中的状态吗?我的困惑源于这样一个事实:我只能在 Lenny(稳定版本)中找到“源”包,在 Squeeze(测试版本)中找到“正常”(?)包。适用链接:
http://packages.debian.org/source/lenny/tomcat6
http://packages.debian.org/squeeze/tomcat6
源和源有什么区别包和“普通”包?这是否仅仅意味着我必须从 lenny 中的源代码编译 tomcat,但要直接从 apt-get 安装它?我也有点困惑为什么squeeze在其包列表中有一个java小节而lenny没有,尽管我认为这可能只是新版本的新方案?
我希望这对于 SO 来说是足够相关的编程,但似乎不适用于 ServerFault。预先感谢您对我的 Debian 新手的包容 :P
Could someone explain the status of Tomcat6 in Debian to me? My confusion arises from the fact that I can only find a "source" package in Lenny (the stable release) and a "normal"(?) package in Squeeze (testing release). Applicable links:
http://packages.debian.org/source/lenny/tomcat6
http://packages.debian.org/squeeze/tomcat6
What is the difference between a source package and 'normal' package? Does this just mean I would have to compile tomcat from source in lenny, but squeeze will have it available to install directly from apt-get? I'm also a bit confused as to why squeeze has a java subsection in its package list but lenny doesnt, although I suppose this might just be a new scheme for the new version?
I hope this is programming related enough for SO, didn't seem like it was applicable for ServerFault. Thanks in advance for bearing with my debian newbieness :P
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一个软件(例如Tomcat、apache2、GTK+、内核)被转换成源码包。源包将原始的、未修改的源代码(就像您从项目的网页下载它一样)与创建二进制(“正常”)包所需的构建脚本和修改结合在一起。源包可以创建任意数量的二进制包,可以是“arch:any”(每个处理器体系结构将具有不同版本的包)或“arch:all”(所有体系结构将共享该包)。在源包页面(问题中的 URL 中带有
source
的页面)链接到构建的所有二进制包。快速查看一下依赖关系,应该可以使用squeeze 中的软件包在 lenny 系统上安装 tomcat 6 软件包。
确保以下内容位于您的
/etc/apt/apt.conf
中,或位于/etc/apt/apt.conf.d
中的文件之一中:如果 < code>/etc/apt/apt.conf 不存在,只需创建它即可。
接下来,将squeeze存储库添加到您的
sources.list
,可能使用您的本地镜像:现在,更新软件包并运行
这应该只提取tomcat6所需的那些软件包,但要小心,因为其他版本的较新版本可能还需要包,所以不要在生产机器上尝试。
A piece of software (e.g. Tomcat, apache2, GTK+, the kernel) is converted into a source package. A source package combines the original, unmodified source code (as you would download it from the project's webpage) with the build scripts and modifications needed to create the binary ("normal") packages. A source package can create any number of binary packages, which can be either "arch:any" (every processor architecture will have a different version of the package) or "arch:all" (all architectures will share the package). On the source package pages (the ones with
source
in the URL in your question) link to all binary packages built.From a quick look at the dependencies, it should be possible to install the tomcat 6 packages on a lenny system, using the packages from squeeze.
Make sure the following is in your
/etc/apt/apt.conf
, or in one of the files in/etc/apt/apt.conf.d
:If
/etc/apt/apt.conf
does not exist, simply create it.Next, add the squeeze repositories to your
sources.list
, possibly using your local mirror:Now, update the packages and run
This should only pull those packages needed for tomcat6, but be careful because newer versions of other packages might be needed, too, so don't try it out on a production machine.
您还可以使用:
它将下载在 Lenny 中重建软件包所需的所有内容。
You can also use:
It will download all you need to rebuild the package in Lenny.
这是从 lenny 的 tomcat6 构建的唯一包: libservlet2.5-java。它没有从搜索页面编入索引,这很糟糕。
Here is the only package that was built from lenny's tomcat6: libservlet2.5-java. It wasn't indexed from the search page, which sucks.