How to install Typst — third-party resources

Foreword
Typst: Open Source provides official instructions about how to install the Typst compiler locally.
However, in certain cases, installing from third-party resources is more convenient. This page lists them.

Note that this is a wiki post dual licensed under CC BY 4.0 and Apache 2.0. You can edit it and leave your name in the signature area below. (Unfortunately, this is not a real wiki. You have to sign your name manually.)

Be aware that the following resources are unofficial. They are inherently insecure and need to be used with care.
Also, these resources are for the Typst CLI. If you use typst.app, tinymist, or most editors, then Typst is already embedded in the editor. Therefore, for basic usages, you don’t have to install the Typst CLI separately.

GitHub - typst-community/typst-install: 🤖 curl | sh installer script for Typst · GitHub

# Linux, macOS
curl -fsSL https://install.typst.community/install.sh | sh

# Windows
irm https://install.typst.community/install.ps1 | iex

These install scripts fetch Typst binaries from the official GitHub Releases.

CERNET/MirrorZ mirror

This website hosts a mirror of Typst’s latest GitHub Release. It’s usually faster than GitHub in East Asia.

Fedora dnf package

sudo dnf install --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release 
sudo dnf install typst

Debian apt package

  1. Add the repository: see https://pkg.haus for setup instructions
  2. Install: sudo apt install typst

Arch Linux pacman package

pacman -S typst 

See also

Signature Area

What's this?

This is a wiki post. After editing, you can leave your name below.

They will turn into the Co-authored-by field in the commit’s message, if I submit it to typst/docs at main · typst/typst · GitHub in the future. (It may also remain in this form forever or be submitted by someone else, however.)

If you don’t know what Co-authored-by is, just write down your name or put a link to your Forum/GitHub profile.

  • Y.D.X. <73375426+YDX-2147483647@users.noreply.github.com>
  • Martin Simon <martin@simon.tf> (wrote a paragraph in #8572 which was copied by Y.D.X.)
4 Likes

Unimpressive.

On the Mac you can use Homebrew

That’s covered in the official instructions. See the first sentence in the foreword.

@ondohotola criticism is of course allowed, but make it constructive. OP is documenting installation beyond what is officially provided/supported. If this is not what you need, either give a reasoned reply why/how you thing this guide is falling short, or simply use the official instructions.

3 Likes

(One more option: improve the wiki post yourself)

3 Likes

I appreciate the efforts to close documentation gaps by creating guidance that covers more platforms—it always makes me sad that Fedora/dnf aren’t officially distributed.

But as someone familiar with security issues, the methods recommended concern me. The main reason is that it relies on jumping stones maintained by third parties, and that opens a major supply chain issue.

Let me elaborate. I trust Typst and I am willing to run it on my computer. With the mechanisms suggested, I am now expected to extend that trust to the third party who maintains the scripts and repositories you mention.

Most people will be unaware of this, and such mechanisms (specially something as dangerous as the “download a script from the Internet and run it right away” pattern) can become channels for unstability and possibly even malware. This puts users at risk and also risks hurting Typst’s reputation.

While some may be willing to extend their trust further and are ok with the tradeoff, this is something that needs to be highlighted with much more emphasis: that the resources provided are created by third parties not affiliated with Typst, and that these mechanisms are inherently insecure and need to be used with care.

1 Like

This installing technique is convenient but damn some pipe installers also want root. One really needs to trust the source.

Ironically, many of the GUI-based Typst editors bundle both the typst binary and tinymist so the user needn’t install them separately.

1 Like

Thank you both for the comments. I’ve added a lead section to the main post. You can improve it further if you think appropriate.