Debian 中的 Tomcat6?

发布于 2024-08-18 20:09:22 字数 599 浏览 9 评论 0原文

有人可以向我解释一下 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 技术交流群。

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

发布评论

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

评论(3

梦中的蝴蝶 2024-08-25 20:09:22

一个软件(例如Tomcat、apache2、GTK+、内核)被转换成源码包。源包将原始的、未修改的源代码(就像您从项目的网页下载它一样)与创建二进制(“正常”)包所需的构建脚本和修改结合在一起。源包可以创建任意数量的二进制包,可以是“arch:any”(每个处理器体系结构将具有不同版本的包)或“arch:all”(所有体系结构将共享该包)。在源包页面(问题中的 URL 中带有 source 的页面)链接到构建的所有二进制包。

快速查看一下依赖关系,应该可以使用squeeze 中的软件包在 lenny 系统上安装 tomcat 6 软件包。

确保以下内容位于您的 /etc/apt/apt.conf 中,或位于 /etc/apt/apt.conf.d 中的文件之一中:

APT::Default-Release "stable";

如果 < code>/etc/apt/apt.conf 不存在,只需创建它即可。

接下来,将squeeze存储库添加到您的sources.list,可能使用您的本地镜像:

deb http://ftp.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.debian.org/debian/ squeeze main non-free contrib

现在,更新软件包并运行

apt-get -t testing install tomcat6

这应该只提取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:

APT::Default-Release "stable";

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:

deb http://ftp.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.debian.org/debian/ squeeze main non-free contrib

Now, update the packages and run

apt-get -t testing install tomcat6

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.

┾廆蒐ゝ 2024-08-25 20:09:22

您还可以使用:

dget http://ftp.de.debian.org/debian/pool/main/t/tomcat6/tomcat6_6.0.16-1.dsc

它将下载在 Lenny 中重建软件包所需的所有内容。

You can also use:

dget http://ftp.de.debian.org/debian/pool/main/t/tomcat6/tomcat6_6.0.16-1.dsc

It will download all you need to rebuild the package in Lenny.

时光倒影 2024-08-25 20:09:22

这是从 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.

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