A simple bash script that:
- Sorts a list of packages into official (Pacman) and AUR categories.
- Provides an interactive menu to install them.
- An Arch-based Linux distribution.
yay(AUR helper) is recommended for AUR support.
-
Clone the repository:
git clone https://github.com/ostarch/sortNinstal/ cd sortNinstal -
Create your package list.
Create a
raw-packagelist.txtfile with one package name per line. -
Run the script and follow the on-screen instructions:
./sortNinstall.sh
The script will create a sorted-packagelist.txt file with your packages categorized.
Given a raw-packagelist.txt like this:
# --- Messed Up Package List---
fastfetch # This is a comment
htop
abcdefg
### AUR ###
google-chrome
The script will generate sorted-packagelist.txt:
-###-PACMAN-Packages-###-
fastfetch # This is a comment
htop
-###-AUR-Packages-###-
google-chrome
-###-NotFound-Packages-###-
abcdefg
-###-Hashed-Data-###-
### AUR ###
# --- Messed Up Package List---
Licensed under the MIT License.