Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Created March 18, 2014 16:13
Show Gist options
  • Save rafaelfoster/9623355 to your computer and use it in GitHub Desktop.
Save rafaelfoster/9623355 to your computer and use it in GitHub Desktop.
Command line to install dependences from a package
PACKAGE=awstats
# RedHat Like
yum deplist $PACKAGE | grep provider | awk '{print $2}' | sort | uniq | grep -v $PACKAGE | sed ':a;N;$!ba;s/\n/ /g' | xargs yum -y install
# Debian like
apt-get build-dep $PACKAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment