Sunday, July 18, 2010

» List of openSUSE packages

Here is a little shell snippet to get the list of all the RPM packages that ship with e.g. openSUSE 11.3 (for other releases, just change the URL accordingly):
curl -Ls http://download.opensuse.org/distribution/11.3/repo/oss/INDEX.gz \ | zgrep '\.rpm$' | grep '^./suse' \ | cut -f4 -d/ | cut -f1,2,3 -d. \ | sort -fu

Labels:

1 Comments:

Blogger j.eng said...

How unnecessary complex.

osc ls openSUSE:11.3

13:44  

Post a Comment

<< Home