# Install batik with Homebrew, dnf, MacPorts, Nix, apt, zypper

Java-based toolkit for SVG images. Version 1.19 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libbatik-java.

## Install

```sh
sudo av install brew:batik
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install batik
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install batik
```

  Evidence: MacPorts ports tree: java/batik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install batik
```

  Evidence: Fedora Rawhide package metadata: batik 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#batik
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ba/batik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libbatik-java
```

  Evidence: Debian stable package indexes: libbatik-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install xmlgraphics-batik
```

  Evidence: openSUSE Tumbleweed package metadata: xmlgraphics-batik from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:batik
- **Package manager:** Homebrew
- **Version:** 1.19
- **Source summary:** Java-based toolkit for SVG images
- **Homepage:** <https://xmlgraphics.apache.org/batik/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- batik-rasterizer (alias)
- batik-slideshow (alias)
- batik-squiggle (alias)
- batik-svgpp (alias)
- batik-ttf2svg (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.19
## Project history and usage

Apache Batik is a long-running Java toolkit for rendering, generating, manipulating, viewing, and transcoding SVG. In package-manager terms it is both a library stack and a set of command-line tools such as the rasterizer, Squiggle SVG browser, SVG pretty-printer, and TTF-to-SVG converter.

### Project history

Batik emerged during the early SVG standardization era. A W3C www-svg mailing-list announcement from December 4, 2000 announced the beta release of Batik 1.0 as an Apache Batik team project and described it as a Java 2D based SVG toolkit.

The current Apache project page describes the same core ambition: provide reusable Java modules for SVG parsing, generation, DOM support, viewing, scripting, and transcoding, plus a full SVG browser implementation to validate interoperability.

Batik remains part of Apache XML Graphics. Its GitHub repository is an Apache mirror for the official project, while the canonical documentation and release news live under xmlgraphics.apache.org.

### Adoption history

Batik has persisted because SVG rendering and conversion are infrastructure needs. The Apache site explicitly points to real-life projects and products using Batik, and package metadata shows it shipped through Homebrew, Debian and Ubuntu as libbatik-java, Fedora, MacPorts, Nix, and openSUSE.

Recent Apache news shows active maintenance through version 1.19 on May 6, 2025, following 1.18 in 2024 and earlier bug-fix and security releases.

### How it is used

Developers use Batik from Java applications to parse, render, generate, manipulate, and transcode SVG, including server-side conversion to formats such as PNG, JPEG, TIFF, EPS, and PDF when paired with related Apache components.

CLI users encounter it through tools such as batik-rasterizer, batik-squiggle, batik-svgpp, batik-slideshow, and batik-ttf2svg.

### Why package nerds care

Batik is important package-manager archaeology: a pre-Rust, pre-Go, Java-era graphics toolkit that still matters because SVG conversion has long tails in build systems, documentation pipelines, desktop Java applications, and distribution repositories.

It is also a reminder that command-line packages can be wrappers around substantial library ecosystems. Installing batik pulls in decades of XML, SVG, Java2D, and Apache XML Graphics history, not just one executable.

### Timeline

- 2000: Batik 1.0 beta announced on the W3C www-svg mailing list.
- 2020: Apache Batik 1.13 released as a bug-fix release.
- 2022: Apache Batik 1.15 and 1.16 released with security fixes noted in project news.
- 2024: Apache Batik 1.18 released.
- 2025: Apache Batik 1.19 released as a bug-fix release.

### Related projects

- Apache XML Graphics is Batik's project family.
- Apache FOP is related through vector/PDF transcoding support noted by the Batik site.
- W3C SVG is the specification family Batik implements.

### Sources

- <https://github.com/apache/xmlgraphics-batik>
- <https://lists.w3.org/Archives/Public/www-svg/2000Dec/0000.html>
- <https://xmlgraphics.apache.org/batik/>
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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: ~/.batik/preferences.xml, ~/.batik/__svgbrowser.policy
## Other Package-Manager Records

- Debian apt - libbatik-java - 1.18+dfsg-2: normalized package name match | Debian stable package indexes: libbatik-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | xml.apache.org SVG Library | https://xmlgraphics.apache.org/batik/
- Nix - batik: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/batik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libbatik-java - 1.17+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libbatik-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | xml.apache.org SVG Library | https://xmlgraphics.apache.org/batik/
- dnf - batik - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Scalable Vector Graphics for Java | https://xmlgraphics.apache.org/batik/
- dnf - batik-css - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-css from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik CSS engine | https://xmlgraphics.apache.org/batik/
- dnf - batik-demo - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-demo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Samples for batik | https://xmlgraphics.apache.org/batik/
- dnf - batik-javadoc - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-javadoc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Javadoc for batik | https://xmlgraphics.apache.org/batik/
- dnf - batik-rasterizer - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-rasterizer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik SVG rasterizer | https://xmlgraphics.apache.org/batik/
- dnf - batik-slideshow - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-slideshow from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik SVG slideshow | https://xmlgraphics.apache.org/batik/
- dnf - batik-squiggle - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-squiggle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik SVG browser | https://xmlgraphics.apache.org/batik/
- dnf - batik-svgpp - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-svgpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik SVG pretty printer | https://xmlgraphics.apache.org/batik/
- dnf - batik-ttf2svg - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-ttf2svg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik SVG font converter | https://xmlgraphics.apache.org/batik/
- dnf - batik-util - 1.19-4.fc45: normalized package name match | Fedora Rawhide package metadata: batik-util from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Batik utility library | https://xmlgraphics.apache.org/batik/
- zypper - xmlgraphics-batik - 1.18-1.7: normalized package name match | openSUSE Tumbleweed package metadata: xmlgraphics-batik from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Scalable Vector Graphics for Java | https://xml.apache.org/batik/
- MacPorts - batik: normalized package name match | MacPorts ports tree: java/batik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- zypper - xmlgraphics-batik-rasterizer - 1.18-1.7: installed executable or alias match | openSUSE Tumbleweed package metadata: xmlgraphics-batik-rasterizer from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Batik SVG rasterizer | https://xml.apache.org/batik/


## Combined YAML source

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


## Sources

- 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
