How to Install Texmaker on Fedora 40 or 39 Linux

Texmaker is a free, cross-platform LaTeX editor that integrates many tools needed to develop documents with LaTeX in just one application. It offers an intuitive interface with features like syntax highlighting, auto-completion, spell-checking, and a built-in PDF viewer with synctex support. Texmaker also includes an integrated PDF viewer, which supports forward and inverse search, making it an ideal choice for both beginners and experienced users working with LaTeX documents.

To install Texmaker on Fedora 40 or 39, you have two primary methods: using Fedora’s default AppStream repository for a straightforward installation, or using Flatpak with Flathub for an alternative, flexible installation method.

Method 1: Install Texmaker using DNF Package Manager

Update Fedora Before Texmaker Installation

The first step is to update your Fedora system to ensure a smooth installation process. You can achieve this by executing the following command:

sudo dnf upgrade --refresh

Install Texmaker via DNF Command

Once the system is updated, proceed to install Texmaker by running the following command:

sudo dnf install texmaker

At this point, you should have successfully installed Texmaker via the Fedora DNF repository. For an alternative method, check out the next section, which covers installing Texmaker via Flatpak.

Method 2: Install Texmaker using Flatpak and Flathub

The second method involves using Flatpak with the Flathub repository. This method might be preferable if you seek to maintain a sandboxed application environment.

Enable Flathub For Texmaker Installation on Fedora

The first step is to enable the Flathub repository. You can accomplish this with the following command:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Sometimes, even after adding the Flathub repository, it may be automatically disabled. You can ensure that Flathub is enabled by running the following command:

flatpak remote-modify --enable flathub

Install Texmaker via Flatpak Command

With Flathub enabled, you can now proceed to install Texmaker using this command:

flatpak install flathub net.xm1math.Texmaker

With these steps, you have installed Texmaker via the Flatpak Flathub repository.

Launching Texmaker Application on Fedora Linux

After successfully installing Texmaker, it’s time to learn how to launch it. There are several methods to open Texmaker on Fedora Linux: using the command-line interface (CLI), the dnf, the flatpak run command, or the graphical user interface (GUI).

CLI Methods to Launch Texmaker

If you’re comfortable working with the terminal, you can launch Texmaker by entering texmaker in your command line and pressing enter. This straightforward method is favored by many due to its simplicity and directness.

texmaker

If you’ve installed Texmaker through the Flatpak Flathub repository, you can open the application with the flatpak run command:

flatpak run net.xm1math.Texmaker

GUI Method to Launch Texmaker

The GUI method is best for users who prefer a more visual approach. You can navigate your Fedora Linux desktop environment to find and open Texmaker. You need to follow this path:

Activities > Show Applications > Texmaker

Additional Texmaker Command

Update Texmaker

Routine updates are fundamental to maintaining the security and functionality of your Texmaker. Although you may receive notifications for available updates, it is advisable to check the terminal periodically.

Run the following command that matches your initial installation method:

DNF Texmaker Update Method

sudo dnf update --refresh

Flatpak Texmaker Update Method

flatpak update

Remove Texmaker

If you no longer need Texmaker, remove it from your system by following these steps. Make sure you choose the appropriate method according to how you originally installed the application.

DNF Remove Method For Texmaker

To remove Texmaker installed via DNF along with any unused packages from it and leftovers from other applications, use this command:

sudo dnf aremove texmaker

Flatpak Removal Method For Texmaker

If you installed Texmaker through Flatpak, use the following command to uninstall it:

flatpak remove --delete-data net.xm1math.Texmaker -y

This command will also erase your data related to Texmaker. Be cautious and make sure to back up any necessary data before proceeding.

Conclusion

With Texmaker successfully installed on your Fedora system, you can efficiently create and manage LaTeX documents. Whether you choose to use the default AppStream repository for a simple installation or opt for Flatpak with Flathub for greater flexibility, both methods provide access to Texmaker’s comprehensive features. Regularly check for updates to ensure you have the latest features and improvements. Enjoy the robust and user-friendly environment Texmaker offers for all your LaTeX editing needs.

Leave a Comment