Skip to content

Instantly share code, notes, and snippets.

@filviu
Last active July 15, 2016 07:42
Show Gist options
  • Save filviu/943d78de7634a8acfe6e69653ef6a13d to your computer and use it in GitHub Desktop.
Save filviu/943d78de7634a8acfe6e69653ef6a13d to your computer and use it in GitHub Desktop.
Script to get package deps of one AIX open source package. Parameter is url of deps file from http://www.oss4aix.org/download/rpmdb/deplists/aix71/
#!/bin/bash
curl -s $1 | while read i; do curl http://www.oss4aix.org/download/everything/RPMS/$i -o $i;done
curl http://www.oss4aix.org/download/everything/RPMS/$( basename $1 | sed -e 's/\.ppc\.deps/\.ppc\.rpm/') -o $( basename $1 | sed -e 's/\.ppc\.deps/\.ppc\.rpm/')
@filviu
Copy link
Author

filviu commented Jul 15, 2016

Removed wget dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment