Created
March 18, 2014 16:13
-
-
Save rafaelfoster/9623355 to your computer and use it in GitHub Desktop.
Command line to install dependences from a package
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
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