yum -h has this option: --installroot=[path] - set the install root (default '/') don't think you can specify en masse, only one package at a time. guangong