ArchLinux: install package

By danielrmt Last update Feb 3, 2010 — Installed 133 times.

Script Summary: Install ArchLinux packages from the browser

Thumb Thumb

This script allows you to install ArchLinux/Pacman packages right from

It makes use of an external "pacman" url handler. To create such handler in Firefox, follow those instructions:

  1. Create a text file and add this content:
    xterm -e "sudo pacman -S `echo $* | sed -e 's|^pacman:/*||' -e 's|/| |g'`"
    You can replace xterm and pacman for your own terminal emulator or pacman wrapper (like powerpill). You can also replace sudo for su -c.
  2. Make it executable:
    chmod a+x /path/to/above/script
  3. Open about:config in Firefox and add those entries: = /path/to/above/script
    network.protocol-handler.external.pacman = true
    network.protocol-handler.expose.pacman = false
    network.protocol-handler.warn-external.pacman = false
  4. The first time you try to open a pacman url, FF will ask you what application to open those urls. Choose the script you just created.