banner
Previous Page
PCLinuxOS Magazine
PCLinuxOS
Article List
Disclaimer
Next Page

Alternative Methods of Installing Typst Locally


by David Pardue (kalwisti)


Almost two years ago, I wrote a tutorial on how to install Typst locally on your computer, thus avoiding the need for an internet connection to use Typst's web app. I recently learned about some alternative methods of installing the Typst compiler locally and would like to share them.

Linux allows you the flexibility to install a third-party application such as Typst in multiple ways. I will discuss one installation method in detail, and mention three other options you might want to consider in the latter half of my article.

If your computer is a single-user, single-disk machine, then where you install Typst is not a crucial matter (personal opinion). However, if your system has multiple users and/or multiple disks, you should evaluate all these options carefully before making a final decision.

Before proceeding, I should mention this violates one of the standard rules of PCLinuxOS system maintenance: to only install programs from the official PCLinuxOS repository. However, in this case, I can assure you that installing Typst is safe and will not bork your PCLinuxOS installation. I have not experienced any glitches or breakage since I began using Typst locally in 2024.


Method A: "Typst-install" Script The easiest, ready-made solution is to use the “Typst installer” script which is available on GitHub. It downloads the most recent Typst release from the main branch’s root folder and automatically installs Typst. At the time of writing, the Typst version is 0.15.1, released on July 17, 2026. (Thanks to member Y.D.X in the Typst Forum for this new tip.)


Typst

Copy and paste this command into a Terminal. (You can do this as a regular user; it does not require root or sudo privileges.)

curl -fsSL https://install.typst.community/install.sh | sh

After running the script, you will see output similar to the lines below. It provides almost all of the post-installation instructions you should follow:

david@pclos-openbox ~$ curl -fsSL https://install.typst.community/install.sh | sh

Downloading Typst from https://github.com/typst/typst/releases/latest/download/typst-x86_64-unknown-linux-musl.tar.xz

Typst installed to /home/david/.typst/bin/typst

Manually add the directory to your $HOME/.bashrc (or similar)

export TYPST_INSTALL="/home/david/.typst"

export PATH="$TYPST_INSTALL/bin:$PATH"

Example:

echo 'export TYPST_INSTALL="/home/david/.typst"' >> ~/.bashrc

echo 'export PATH="$TYPST_INSTALL/bin:$PATH"' >> ~/.bashrc

Run '/home/david/.typst/bin/typst --help' to get started

Stuck? Open an Issue https://github.com/typst-community/typst-install/issues


Typst

Place the Typst Binary in Your $PATH

As stated in the Terminal output above, you must now place the typst directory in your $PATH.

A path — or the search path — is the list of directories that will be searched for anything you type on the command line. After editing your path, when you call/invoke Typst, the system will look for (and find) the typst binary in your /home directory.

Open a Terminal, and copy and paste the two commands below separately (as a regular user). They will add the appropriate entries to the .bashrc file in your /home directory.

echo 'export TYPST_INSTALL="/home/david/.typst"' >> ~/.bashrc

(Note: Change “david” to whatever the username is on your system.)

echo 'export PATH="$TYPST_INSTALL/bin:$PATH"' >> ~/.bashrc

To double-check the result of these commands, open your ~/.bashrc file with your favorite text editor — nano, vim, Emacs, etc. The example below uses nano:

$ nano ~/.bashrc

You should see something like this screenshot:


Typst

To apply this change permanently to your $PATH environment variable, open a Terminal and issue the command:

$ source ~/.bashrc

Alternatively, you can log out of your current session, then log back in to make sure the change takes effect.

To verify this change, type the command:

$ echo $PATH

Your results should look something like this:


Typst

This screenshot montage shows the directory structure (~/.typst/bin/typst) created by the typst-install script. Note that the “.typst” directory is a hidden directory which was made visible by opening the File Manager and typing Ctrl + H".


Typst

Typst is now ready to use. You may use Typst via the CLI, with a terminal-based text editor such as Vim, or with GUI-based code editors such as VS Code / VSCodium or even with Geany.


Prior to Using Method B, C or D

  • Unlike Method A, these approaches do not automatically download the Typst pre-built binary from GitHub; therefore, you must first download it from:
    https://github.com/typst/typst/releases
  • Look for Release ver. 0.15.1 (July 17, 2026)
  • Download the file: typst-x86_64-unknown-linux-musl.tar.xz

(This contains the Typst compiler and its CLI, which is everything you need to compile Typst documents locally.)

  • Extract/unzip the tarball. It is a modest 55.7 MB in size.
  • To simplify the naming convention, I renamed the unpacked directory to just “typst”.


    Typst

  • Within the typst directory, use your DE’s file manager (Caja, Thunar, Dolphin, etc.) to double-check that the typst binary is set as executable:


    Typst

  • You can now follow the installation steps for Method B, C or D (depending on your preference and needs).


Method B: Place Typst in Your ~/.local/bin Directory

As mentioned above, when deciding where to install Typst, an important factor will be whether you are the single user on the PC and will be the only person using Typst, or whether your goal is to make Typst available to multiple users.

If it is a single-user system, this is another viable option. It was suggested by member Y.D.X. in the Typst forum. He recommends issuing the command

mkdir -p ~/.local/bin/

to create the required /bin subdirectory.

(The “-p” flag enables the command to create parent directories as necessary.)

Afterwards, you should manually add the Typst directory to your ~/.bashrc file.

export PATH=~/.local/bin/typst:$PATH

After saving this edit and exiting your text editor, issue the command: $ source ~/.bashrc

Alternatively, log out of your current session, then log back in for this change to take effect.


Method C: Place Typst in /usr/local/bin

This approach is sensible if you wish to adhere to the Linux Filesystem Hierarchy Standard (FHS) and/or need to make Typst available to multiple users.

“The ~/bin directory is a good place to put scripts intended for personal use. If we write a script that everyone on a system is allowed to use, the traditional location is /usr/local/bin. Scripts intended for use by the system administrator are often located in /usr/local/sbin. In most cases, locally supplied software, whether scripts or compiled programs, should be placed in the /usr/local hierarchy and not in /bin or /usr/bin. These directories are specified by the Linux Filesystem Hierarchy Standard to contain only files supplied and maintained by the Linux distributor.” — William Shotts, The Linux Command Line (2026), p. 386.


If you copy (or move) only the typst executable [55.7 MB] to /usr/local/bin, you do not have to make any adjustments to your $PATH because the /usr/local/bin directory is already in PCLinuxOS's default $PATH. Typst will be available for use without you needing to take further action.


Typst

However, if you copy (or move) the entire typst folder and its contents — the typst executable, its License, Notice and README.md — you will have to manually add the path to that directory in your ~/.bashrc file:

export PATH=/usr/local/bin/typst:$PATH

Issue the command: $ source ~/.bashrc or, alternatively, log out of your current session, then log back in for this change to take effect.


Method D: Place Typst in /opt

/opt is intended for files of third-party applications which you want to make available to multiple users. This directory can store programs outside of your distribution’s control, i.e., not available in the PCLinuxOS repository.

After you copy (or move) the typst folder to /opt, manually add the $PATH to the Typst directory in your ~/.bashrc file:

export PATH=/opt/typst:$PATH

Issue the command: $ source ~/.bashrc or, alternatively, log out of your current session, then log back in for this change to take effect.

After applying Method B, C or D, Typst will be ready to use. You may use Typst via the CLI, with a terminal-based text editor such as Vim, or with GUI-based code editors such as VS Code / VSCodium or even with Geany.


Summary

Linux gives you the freedom of choice to install an application like Typst in multiple ways, depending on your preference and needs. This article has presented four different methods of installing Typst locally. Although using Typst's cloud editor is a pleasant experience, sometimes I want to work offline, use a custom font installed on my computer and/or not worry about maxing out the storage limit of my Typst web account. My local Typst installation allows me the flexibility to do that.

I tested each method and they all work smoothly. If you are the sole Typst user on your PC, I recommend that you try Method A: the "Typst-install" script. It is a clever kickstart-type file which will set up Typst easily and quickly. If you need to make Typst available to multiple users on the system, you should consider Method C (perhaps a slightly more "purist" approach) or Method D.



Previous Page              Top              Next Page