# Pacman-fzf-installer

**URL:** <https://forum.maboxlinux.org/t/pacman-fzf-installer/2227>\
**Category:** Userland\
**Created:** [April 18, 2025, 1:22am UTC](https://forum.maboxlinux.org/t/pacman-fzf-installer/2227 "2025-04-18T01:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielhb](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/danielhb/32/3941_2.png) [@danielhb](https://forum.maboxlinux.org/u/danielhb)\
**Post date:** [April 18, 2025, 1:22am UTC](https://forum.maboxlinux.org/t/pacman-fzf-installer/2227/1 "2025-04-18T01:22:43Z")

</div>

I never stop “studying” (well, let’s say… 🙃 ) and practicing.  
This is an installation script that works in both pseudo-terminal and TTY.  
Feel free to check it out and use it however you like.

> [@Sigo practicando: pacman-fzf-installer](https://forum.maboxlinux.org/t/sigo-practicando-pacman-fzf-installer/2226):
>
> No dejo de “estudiar” ( bue… digamos… upside_down_face ) ni de practicar. Este es un script de instalación que funciona tanto en pseudo terminal como en TTY. Siéntanse libres de revisarlo, y usarlo como les guste. [pfi] Acá lo encuentran [https://github.com/danielhb2/pacman-fzf-installer](https://github.com/danielhb2/pacman-fzf-installer)people_hugging argentina PD: SÍ, SOLAMENTE EN CASTELLANO, si alguien quiere traducirlo bienvenido.

PS: YES, ONLY IN SPANISH, if anyone wants to translate it, welcome.

🫂 🇦🇷

---

<div class="post-metadata">

**Author:** ![danielhb](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/danielhb/32/3941_2.png) [@danielhb](https://forum.maboxlinux.org/u/danielhb)\
**Post date:** [April 18, 2025, 1:38am UTC](https://forum.maboxlinux.org/t/pacman-fzf-installer/2227/2 "2025-04-18T01:38:46Z")

</div>

# PFI (Pacman-FZF Installer)

Interactive package selector for installing packages on Arch Linux-based systems, using pacman with an enhanced interface powered by fzf.

 ![pfi](https://forum.maboxlinux.org/uploads/default/original/2X/8/823c22c605a998c6e20d87be8f9b4e0214224f7d.png)

## Description

This script combines the power of the `pacman` package manager with the `fzf` fuzzy selection interface to create a visually appealing and functional package search and installation experience. It allows you to browse repositories, view detailed package information, and select multiple packages for installation.

## Characteristics

- Interactive and colorful interface for package selection
- Package description preview
- List of files contained within each package
- Multiple package selection with the Tab key
- Intuitive keyboard navigation
- Custom visual design with distinctive borders and colors

## Prerequisites

- Arch Linux-based operating system (Arch, Manjaro, EndeavourOS, etc.)
- `pacman` (default package manager in Arch)
- `fzf` (fuzzy command-line selector)
- `sudo` (for installation permissions)

## Installation

1. Download the script:

2. Give it execution permissions:

3. Make sure you have the dependencies installed:

## Usage

To run the script:

```bash
./pfi.sh

```

### Controls

- `↑`/`↓` - Navigate the package list
- `TAB` - Select/deselect packages for multiple installations
- `ENTER` - Confirm selection and install package(s)
- `ESC` - Exit without installing
- `CTRL-X` - Move page up in preview
- `CTRL-Z` - Move page down in preview

## Customization

The script uses detailed color and formatting settings that you can modify to your liking:

- Change colors by adjusting the `--color` parameters
- Modify border styles with the `--border` parameters
- Customize selection icons (`--pointer`, `--marker`)

## Internal Workings

1. `pacman -Slq`: Lists all available packages in the repositories
2. `fzf`: Provides an interactive interface for selection
3. Preview: Displays package information (`pacman -Si`) and files (`pacman -Fl`)
4. `xargs -ro sudo pacman -S`: Installs the selected packages

## Troubleshooting

- **Error: Command not found** : Make sure you have `fzf` installed (`sudo pacman -S fzf`)
- **No sudo permissions** : Run the script as a user with sudo privileges
- **No color interface** : Make sure you’re using a terminal that supports colors

## License

This script is distributed under the MIT License. Feel free to modify and distribute it.

## Author

Daniel Horacio Braga

* * *

_This installer is an unofficial tool and is not affiliated with the Arch Linux project._

_README written by Anthropic Claude, chatbot._ - [Overview | Claude](https://www.anthropic.com/claude)  
_Translated by Google translate_
