Skip to content

Instantly share code, notes, and snippets.

@jeffery
Created April 3, 2013 05:42
Show Gist options
  • Save jeffery/5298713 to your computer and use it in GitHub Desktop.
Save jeffery/5298713 to your computer and use it in GitHub Desktop.
List installed Packages grouped by Repository for openSUSE
#!/bin/bash
for repo in `zypper repos --uri | tail -n+3 | awk -F ' ' '{ print $1 }'`
do
zypper se -sir "$repo"
echo
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment