Artix Linux Forum

Artix Linux => Tutorials and HOWTOs => Topic started by: Altian on 08 September 2024, 18:47:59

Title: Automate package management with these awesome scripts
Post by: Altian on 08 September 2024, 18:47:59
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: