Use yum to install dependencies

To make yum install dependencies for a specific package you have to throw this weird script… however it’s working

HOWTO

PACKAGE=awstats
yum deplist $PACKAGE | grep provider | awk '{print $2}' | sort | uniq | grep -v $PACKAGE | sed ':a;N;$!ba;s/\n/ /g' | xargs yum -y install

Skriv et svar