CentOS 7: Install Tor Browser with Flatpak

Latest updated Tor Browser needs glibc 2.8. But CentOS 7 has only glibc 2.7. Upgrading glibc to 2.8 may affect many packages. This article will describe how to install Tor Browser, which needs glibc 2.8, with Flatpak.

1 Enable Flathub repository

If you want to apply Flathub repository to system wide not only current user, run flatpak command with sudo and not specifing –user.

$ flatpak remote-add --user flathub https://flathub.org/repo/flathub.flatpakrepo

2 Install torbrowser-launcher

$ flatpak install -y flathub com.github.micahflee.torbrowser-launcher

If you change LANG after installing torbrowser-launcher, you need to reinstall torbrowser-launcher.

$ flatpak uninstall -y com.github.micahflee.torbrowser-launcher
$ flatpak install -y flathub com.github.micahflee.torbrowser-launcher

3 Run torbrowser-launcher

Tor Browser desktop file is already registered. If you cannot find Tor Browser, just restart GNOME desktop with pressing alt + F2 and running r command.

0001_flatpak-torbrowser-launcher-desktop.png

You also can run Tor Browser with the following command line.

$ flatpak run com.github.micahflee.torbrowser-launcher

0002_Run-flatpak-torbrowser-launcher.png