@medaminezghal,
Because this package treats /opt/tor-browser as the system-managed cache/source, not the runnable browser install. There's a number of reasons why we don't install there...
- Tor Browser expects a writable bundle - Tor Browser keeps some runtime/update/profile-ish state inside its own extracted tree. A normal user cannot write to /opt without root.
- Avoid running browser/updater as root - Making Tor Browser update or modify files under /opt would require root privileges, which is bad from a security perspective.
- Per-user isolation - Each Linux user gets their own Tor Browser copy and data under their home directory.
- Pacman ownership safety - If Tor Browser modifies files under /opt, those files would no longer cleanly match what pacman installed. Keeping the real mutable copy outside pacman-owned paths avoids package-manager conflicts.
- Updates are staged safely - On package upgrade, pacman replaces the tarball in /opt; the next normal user launch refreshes the user-local copy.
Pinned Comments
grufo commented on 2019-08-15 02:22 (UTC)
Before running
makepkg, you must do this (as normal user):$ gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.orgIf you want to update tor-browser from AUR without AUR helpers you can run in a terminal:
$ tor-browser -u