Skip to content

TIP You can read this website in a terminal by installing and running Lynx.

Quick install on Linux

You can easily and quickly install XTerm on a command line on most GNU/Linux distributions by using a package manager:

1. Some distributions include XTerm pre-installed by default. You can check if XTerm is already installed on your system by running the xterm command in the terminal. If XTerm is indeed pre-installed, skip the next steps and proceed to step 5 to configure XTerm.

2. Before installing XTerm, verify that your system is using X11.

There are a few commands you can choose one from to check this:

$ echo $XDG_SESSION_TYPE

$ printf 'Session is: %s\n' "${DISPLAY:+X11}${WAYLAND_DISPLAY:+WAYLAND}"

$ loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'

$ loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type

$ loginctl show-session $(loginctl show-user $(whoami) -p Display --value) -p Type --value

$ loginctl show-session "$XDG_SESSION_ID" -p Type

3. Run the package manager's installation command to install XTerm.

Here are the commands for installing XTerm from a package on some better-known distributions:

  • Arch Linux: $ pacman -Syu xterm
  • Debian, Linux Mint: $ sudo apt-get install xterm
  • Ubuntu: $ sudo apt install xterm

  • Fedora, Rocky Linux, CentOS Linux, CentOS Stream, RHEL: $ sudo dnf install xterm.x86_64

  • openSUSE, SUSE Linux Enterprise: $ sudo zypper install xterm

If you are using another system, see the following two sections.

4. Run XTerm to verify that it's been successfully installed: $ xterm

5. Configure XTerm. See internal-link-placeholder-to-some-other-page-about-configuring-xterm.

Packages for Linux and UNIX systems

XTerm packages are available for the following systems:

Adélie Linux, AlmaLinux, Alpine Linux, ALT Linux, Amazon Linux 1, Amazon Linux 2, AOSC OS, Apertis, Arch Linux, Artix Linux, CentOS Linux, CentOS Stream, CRUX, Debian, Deepin, Devuan, DragonFly BSD, EuroLinux, Exherbo, Fedora, FreeBSD, Funtoo Linux, Gentoo Linux, GoboLinux, Guix, Kali Linux, KaOS, LiGurOS, Linux Mint, Maemo, macOS (Homebrew or MacPorts), Mageia, Manjaro Linux Open Source, MidnightBSD, MX Linux, NetBSD, OpenBSD, openEuler, OpenIndiana, openmamba, OpenMandriva, Oracle Solaris, openSUSE, Parabola, Pardus, Parrot OS, PCLinuxOS, Pisi Linux, PLD Linux, PureOS, RHEL, Raspbian, Rocky Linux, ROSA Linux, Sabayon Linux, Scientific Linux, Slackware Linux, SliTaz, SUSE Linux Enterprise products, T2 SDE Linux, Trisquel, Ubuntu, Void Linux

If your system has an XTerm package available but is not listed, please open an issue at xterm-x11/docs to let us know.

XTerm package info

Before running the package manager's installation command to install XTerm, you can run a command to search for the XTerm package to find the correct package name in the package manager's repository.

In addition to the package search and package information that you can view on a command line from your package manager, the two following website provide information on almost all XTerm packages:

  • https://pkgs.org/download/xterm. Find your system there on the list and click the package name to go to the package information page on https://pkgs.org/ where extensive information is available about the package, including the link to the package homepage.

  • https://repology.org/project/xterm/versions. Find the package for your system and click the package name to be redirected to the package homepage.