Debian

Install Thunar file manager on Debian

This brief tutorial explains how to install the Thunar file manager on Debian.

After reading this article, you’ll know how to install this file manager on Debian-based systems like Ubuntu Linux. Below Debian’s instructions, I also added the steps to install the Thunar file manager from sources. Despite being a long process, it is useful for other Linux distributions.

All steps described in this article include screenshots, making it easy for all Linux user levels to follow them.

Installing Thunar file manager on Debian based systems:

The first example shows how to install the thunar package using the apt command.

To do it, run the following command, as shown in the screenshot below.

sudo apt install thunar -y

Installing Thunar file manager from source code (Linux universal installation):

The process described in this section is long since you will need to install many dependencies. If possible, try to install Thunder using your distribution package manager before trying the source code installation explained below. All Linux distributions allow you to install it without compiling the source and without the need to meet dependencies manually.

To begin installing the file manager, download xfce-dev-tools from the link

https://docs.xfce.org/xfce/xfce4-dev-tools/start#latest_release

as shown in the screenshot.

For this tutorial, I’m downloading the .tar.bz2 compressed file.

Save the file on your computer.

Extract the .bz2 files by running the following command.

tar -xvjf xfce4-dev-tools-4.17.0.tar.bz2

Enter the extracted directory by running the command below, where <Version> must be replaced with the actual version you downloaded.

cd xfce4-dev-tools-<Version>/

Install from sources by executing the command below.

sudo ./configure && make && make install

Now you need to download the intitool from the link https://launchpad.net/intltool.

Save the file to your computer.

Extract the .tar.gz file by running the command below.

tar xvzf intltool-0.51.0.tar.gz

Enter the directory replacing <Version> with the actual version you got.

cd intltool-<Version>/

Execute the commands below to begin the program installation.

sudo ./configure

Then run:

sudo make

Finish the installation by running the following command.

Now download Python from the link https://www.python.org/downloads/.

Extract Python and enter its directory; replace the version shown below with your actual version.

tar -xf Python-3.10.3.tar.xz
cd Python-3.10.3/

Start installing Python by running the following command.

sudo ./configure && make

Then run the command below.

sudo make test

Finish the Python installation process by running the following command.

Now install Ninja using pip as shown below.

pip install ninja

Another dependency is the Meson package you can install using pip, as shown below.

Install Meson using Python, as shown in the screenshot below.

python3 -m pip install meson

Note: To make this tutorial more readable, below, I will show you how to install some dependencies using your Linux distribution package manager.

Now you need to install the xsltproc package; in Debian-based Linux distributions, you can run the command below.

sudo apt install xsltproc

You also can install xsltproc using the snap packages manager by following the instructions below. Read this page for snap instructions https://snapcraft.io/install/libxslt/rhel.

sudo snap install libxslt

To install the xmlto dependency on Debian-based systems, run the command below.

sudo apt install xmlto -y

Note: You can use the yum packages manager for Red Hat-based distributions.

Now let’s download Wayland from the link https://wayland.freedesktop.org/releases/wayland-1.20.0.tar.xz as shown in the following screenshot.

In this example, I’m downloading the .tar.xz compression extension.

Extract the file you just downloaded and enter the extracted directory below.

tar xf tar xf wayland-protocols-1.21.tar.xz
cd cd wayland-protocols-1.21/

Run the command below.

sudo meson build/ --prefix=/usr/meson && sudo ninja -C build/ install

Now Wayland is installed.

tar xvzf gtk-doc-master.tar.gz

Enter the gtk-doc-master directory as shown below.

Install the package as shown below.

./autogen.sh; sudo make

Download Thunar from this link https://github.com/xfce-mirror/thunar as shown below.

Unzip the download file; you can use the command shown in the following screenshot.

unzip thunar-master.zip

Enter the thunar-master directory created when we ran the previous command.

cd thunar-master/

Finally, to install Thunar, run the command below.

sudo ./autogen.sh && make && make install

Now Thunar is properly installed from sources.

To get additional information on Thunar, visit this link https://docs.xfce.org/xfce/thunar/start.

Thunar alternatives:

The market offers file manager alternatives to Thunar, some of which are listed below.

  • Double Commander: Double Commander is a file manager available for Linux, BSD, Windows and Mac systems. It includes two panels and is similar to the Total Commander file manager for Microsoft Windows.
  • Dolphin File Manager: Dolphin file manager was developed for KDE. It allows you to browse all your files in your system and attached devices. Like most file managers, it also allows creating, deleting, and moving directories visually. Dolphin supports multiple tabs and the possibility to drag and drop files. It is a lightweight file manager.
  • Midnight Commander: Midnight commander is another file manager licensed under GNU General Public Licence. It is a Ncurses and S-lang-based text mode interface. You can use it from a terminal even through an SSH connection.

There are more Thunar alternatives you can explore, some of which are the previously listed.

Conclusion:

As you can see, installing Thunar on Debian is pretty easy and can be done by any user by just running a command. Compiling Thunar from sources is difficult because of the large amount of dependencies. This happens in many cases when trying to install a program from sources. Thunar is a great option to manage files, and it is the default file manager in Xfce. Yet, you can get it working in other window managers.

Thank you for reading this tutorial explaining how to install the Thunar file manager on Debian. I hope it was useful. Keep following LinuxHint for additional Linux tips and tutorials.

About the author

David Adams

David Adams is a System Admin and writer that is focused on open source technologies, security software, and computer systems.