百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

homebrew-zathura

> 编程语言
开源

在 Mac OS X 上构建 Zathura 的 Homebrew 公式

744 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在 Mac OS X 上构建 Zathura 的 Homebrew 公式

Zathura

Homebrew formulae to install Zathura and supporting PDF plugins on macOS.

Tap this repository

brew tap homebrew-zathura/zathura

Install zathura

[!NOTE] If you want a comprehensive guide on installing zathura, check out @ejmastnak's guide here

Zathura uses a plugin based system for supported document types which means that you need install not only zathura itself, but at least one plugin. At this moment zathura has 5 official plugins:

  • zathura-cb for Comic Book Archive files (.cbr, .cbz, .cbt, etc.)
  • zathura-djvu for DjVu files (.djvu, .djv)
  • zathura-pdf-mupdf for PDF files (.pdf) via MuPDF backend
  • zathura-pdf-poppler for PDF files (.pdf) via Poppler backend
  • zathura-ps for PostScript files (.ps, .eps)

To use zathura as PDF viewer you need either zathura-pdf-mupdf or zathura-pdf-poppler plugin. It is not recommended to install both plugins since zathura will use only one of them, and which one depends on the implementation and may change at any time.

Install zathura

[!warning] Installing zathura with --HEAD flag is deprecated and will not work. Please use the commands below.

brew install zathura

(or Optionally) with Synctex:

brew install zathura --with-synctex

Install plugins

Install all required plugins. Note that zathura requires either zathura-pdf-mupdf or zathura-pdf-poppler plugin in order to render PDFs.

brew install [zathura-cb] [zathura-djvu] [zathura-pdf-mupdf] [zathura-pdf-poppler] [zathura-ps]

After you install all required plugins you need to put them in a directory where zathura can find them. To do this, run the following command. You have to run this command only after installing new plugins.

d=$(brew --prefix zathura)/lib/zathura ; mkdir -p $d ; for n in cb djvu pdf-mupdf pdf-poppler ps ; do p=$(brew --prefix zathura-$n)/lib$n.dylib ; [[ -f $p ]] && ln -s $p $d ; done

App bundle

To use zathura as macOS application, run following command. You have to run this command each time you're installing new plugins to update bundle info.

curl https://raw.githubusercontent.com/homebrew-zathura/homebrew-zathura/refs/heads/master/convert-into-app.sh | sh

If this does not work, try downloading the script from the repo and running it manually.

Copying to clipboard

Add the following to your ~/.config/zathura/zathurarc:

set selection-clipboard clipboard

Thanks to geigi (see #5)

Uninstall

Homebrew will throw errors unless you uninstall plugins before Zathura.

brew uninstall --force zathura-pdf-mupdf
brew uninstall --ignore-dependencies --force girara
brew uninstall zathura

Optionally untap the repo

brew untap $(brew tap | grep zathura)

Roadmap

  • Frameless windows
  • Better app bundle and icon
  • More plugin support (CB and EPUP formats, full list here)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyhomebrewzathura

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言