Created
March 2, 2025 23:39
-
-
Save aliva/dd7f8610c226d524a0b923230cfcadee to your computer and use it in GitHub Desktop.
A quick snipet to print non official arch pakages in the system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
installed=(`pacman -Qq`) | |
all_packages=`pacman -Ss | grep -v '^\s' | cut -d ' ' -f 1` | |
for package in "${installed[@]}" | |
do | |
repo=`echo $all_packages | grep "/$package\$" | cut -d '/' -f '1'` | |
if [[ $repo == "extra" ]] || [[ $repo == "core" ]] || [[ $repo == "multilib" ]] | |
then | |
test | |
else | |
echo $repo/$package | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment