Last active
July 15, 2016 07:42
-
-
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/
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/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/') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removed wget dependency