Skip to content

Instantly share code, notes, and snippets.

@bvaudour
Last active April 9, 2016 18:43
Show Gist options
  • Save bvaudour/699e393ccea95c358bb17c9655685df6 to your computer and use it in GitHub Desktop.
Save bvaudour/699e393ccea95c358bb17c9655685df6 to your computer and use it in GitHub Desktop.
All informations of all packages on KCP
#!/usr/bin/env bash
get_info() {
for package in $(kcp -lN); do
kcp -V $package
done
}
if [[ $# -eq 0 ]]; then
get_info
else
get_info >> $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment