How to change the destination directory of 'yum install xxx'?
<p>I want to install mysql 5.6 server on my linux machine. I found the document in <a href="https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html" rel="nofollow">https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html</a>.
I guided me to install mysql via 'yum install'. But it seems that the mysql need a huge size about more than 1GB.</p>

<p>But my root directory is very small. How can I change the installation directory.</p>

<p>btw: I also tried other solution like <strong>rpm -ivh MySQL-server-5.6.16-1.el6.x86_64.rpm</strong>.But in this way, it depend on too much things that was hard to solve.</p>

<p>Thanks.</p>