Skip to main content
Topic: Automate package management with these awesome scripts (Read 371 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Automate package management with these awesome scripts

Here are commands that will make you look like a hacker  8)

Requirements:
FZF
Xargs (it's in the package findutils)
Pacman (of course)

For installing:
pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"

For uninstalling:
pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -R

For purging:
pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns

it is recommended to bind them to an alias

The result: