Skip to content

Instantly share code, notes, and snippets.

@ruckuus
Created January 6, 2015 09:12
Show Gist options
  • Save ruckuus/7cb31dfe9ef598e12e30 to your computer and use it in GitHub Desktop.
Save ruckuus/7cb31dfe9ef598e12e30 to your computer and use it in GitHub Desktop.
Fetch RPM package and its dependencies
#!/bin/bash
PKG=$1
mkdir -p repos
repotrack -c /etc/yum.repos.d/epel.repo -a x86_64 -p repos/ $PKG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment