# 使用 Homebrew, dnf, Nix, zypper, chocolatey, scoop 安装 tomcat

查看 tomcat 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tomcat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tomcat
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install tomcat
```

  证据: Fedora Rawhide package metadata: tomcat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tomcat
```

  证据: nixpkgs package indexes: tomcat from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install tomcat
```

  证据: openSUSE Tumbleweed package metadata: tomcat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install Tomcat
```

  证据: Chocolatey community package catalog: Tomcat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','termius'

- Scoop (92%):

```sh
scoop install extras/tomcat
```

  证据: Scoop official bucket manifest trees: bucket/tomcat.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:tomcat
- **软件包管理器:** Homebrew
- **版本:** 11.0.24
- **来源摘要:** Implementation of Java Servlet and JavaServer Pages
- **主页:** <https://tomcat.apache.org/>
- **最后更新:** 2026-07-08T14:29:49Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- catalina (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 11.0.24
## 项目历史与用法

Apache Tomcat is the long-running open source servlet and web application container for the Java/Jakarta ecosystem. The Apache site describes it as an implementation of Jakarta Servlet, Jakarta Pages, Expression Language, WebSocket, Annotations, and Authentication specifications, with Tomcat 10 and later aligned to Jakarta EE and Tomcat 9 and earlier aligned to Java EE.

### 项目历史

Apache's heritage page traces Tomcat to Sun Microsystems, where it began as the reference implementation for the Java Servlet and JavaServer Pages specifications. Sun donated the code base to the Apache Software Foundation in 1999, the first Apache Tomcat release was 3.0, and the project became a top-level Apache project in 2005 after leaving the Jakarta umbrella.

The official version matrix records the long major-version sequence from Tomcat 3.x through current supported Tomcat 9, 10.1, and 11. It also shows why Tomcat packaging is version-sensitive: each major line maps to particular Servlet/JSP/Jakarta Pages, EL, WebSocket, Authentication, Annotation, and Java runtime requirements.

### 采用历史

Apache states that Tomcat powers numerous large-scale, mission-critical web applications across diverse industries and organizations. Its adoption history is also visible in packaging: the input metadata lists Homebrew, Chocolatey, Fedora/DNF, Nix, Scoop, and openSUSE/Zypper names, reflecting Tomcat's role as a default installable Java web container across operating systems.

### 使用方式

Tomcat is commonly installed to run WAR-style Java web applications, local development servers, CI smoke-test containers, and lightweight production servlet deployments. The `catalina` command is the package-manager-visible entry point, while administrators tune `$CATALINA_BASE/conf/server.xml`, `catalina.properties`, and `tomcat-users.xml`.

For maintainers, Tomcat's source workflow also matters: Apache documents `tomcat.git` as the repository containing the Tomcat source code, with active branches for main, 11.0.x, 10.1.x, and 9.0.x, and a GitHub web view. That branch structure is exactly what downstream package maintainers track when choosing stable formula versions.

### 为什么软件包爱好者会关心

Tomcat is package-nerd significant because it is both an application server and an ecosystem compatibility boundary. A package name like `tomcat`, `tomcat@10`, or `tomcat10` carries real meaning about Java version requirements, Java EE versus Jakarta EE APIs, servlet specification versions, config-file compatibility, and how much migration work an application needs.

### 时间线

- 1999: Sun donated the Tomcat code base to the Apache Software Foundation; the first Apache Tomcat release was 3.0.
- 2005: Tomcat became a top-level Apache project.
- 2022: Tomcat 10.0.x reached end of life on 2022-10-31.
- 2026: Apache lists Tomcat 11.0.x, 10.1.x, and 9.0.x as currently supported branches.

### Related projects

- Official Apache source pages list related Tomcat components including Tomcat Connectors, Tomcat Native, Taglibs, the Tomcat Maven Plugin, and the Apache Tomcat migration tool for Jakarta EE.

### 来源

- <https://tomcat.apache.org/>
- <https://tomcat.apache.org/heritage.html>
- <https://tomcat.apache.org/source.html>
- <https://tomcat.apache.org/whichversion.html>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $CATALINA_BASE/conf/server.xml, $CATALINA_BASE/conf/catalina.properties, $CATALINA_BASE/conf/tomcat-users.xml

## Credential files

- Unix: $CATALINA_BASE/conf/tomcat-users.xml
## 其他软件包管理器记录

- Nix - tomcat: normalized package name match | nixpkgs package indexes: tomcat from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- dnf - tomcat - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Servlet and JSP engine for system-wide deployment | http://tomcat.apache.org/
- dnf - tomcat-admin-webapps - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-admin-webapps from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Administrative web applications | http://tomcat.apache.org/
- dnf - tomcat-common - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Common files for Tomcat packages | http://tomcat.apache.org/
- dnf - tomcat-docs-webapp - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-docs-webapp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Online documentation web application | http://tomcat.apache.org/
- dnf - tomcat-el-5.0-api - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-el-5.0-api from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat Expression Language v5.0 API Implementation Classes | http://tomcat.apache.org/
- dnf - tomcat-jsp-3.1-api - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-jsp-3.1-api from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat JavaServer Pages v3.1 API Implementation Classes | http://tomcat.apache.org/
- dnf - tomcat-lib - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-lib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Core libraries for embedding Tomcat | http://tomcat.apache.org/
- dnf - tomcat-servlet-6.0-api - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-servlet-6.0-api from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat Java Servlet v6.0 API Implementation Classes | http://tomcat.apache.org/
- dnf - tomcat-user-instance - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-user-instance from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Tools for creating user-managed instances | http://tomcat.apache.org/
- dnf - tomcat-webapps - 10.1.57-3.fc45: normalized package name match | Fedora Rawhide package metadata: tomcat-webapps from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache Tomcat - Default ROOT web application | http://tomcat.apache.org/
- zypper - tomcat - 9.0.120-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tomcat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Apache Servlet/JSP/EL Engine, RI for Servlet 4.0/JSP 2.3/EL 3.0 API | https://tomcat.apache.org
- zypper - tomcat-admin-webapps - 9.0.120-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tomcat-admin-webapps from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The host manager and manager web applications for Apache Tomcat | https://tomcat.apache.org
- zypper - tomcat-docs-webapp - 9.0.120-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tomcat-docs-webapp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The "docs" web application for Apache Tomcat | https://tomcat.apache.org
- zypper - tomcat-el-3_0-api - 9.0.120-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tomcat-el-3_0-api from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Expression Language v3.0 API | https://tomcat.apache.org
- zypper - tomcat-embed - 9.0.120-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tomcat-embed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libraries for Embedding Apache Tomcat | https://tomcat.apache.org


## Combined YAML source

View the package source record on GitHub. [combined/tomcat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tomcat.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
