As part of work I have to install Magento with its sample data a lot for proof of concepts, while the installation is simple it can quickly become a chore. Because of this I have started to use n98-magerun . It can be installed using the following commands;

curl -o n98-magerun.phar
chmod +x ./n98-magerun.phar
cp ./n98-magerun.phar /usr/local/bin/
n98-magerun.phar self-update

Once installed you can do clean installation by running the following command where you would like Magento to be installed;

n98-magerun.phar install

for more on how to use n98-magerun click here .