Skip to content

Instantly share code, notes, and snippets.

@aliva
Created March 2, 2025 23:39
Show Gist options
  • Save aliva/dd7f8610c226d524a0b923230cfcadee to your computer and use it in GitHub Desktop.
Save aliva/dd7f8610c226d524a0b923230cfcadee to your computer and use it in GitHub Desktop.
A quick snipet to print non official arch pakages in the system
#!/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