LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to disable packages downloading when running yum (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-disable-packages-downloading-when-running-yum-4175540961/)

hahacc 04-28-2015 12:21 AM

how to disable packages downloading when running yum
 
Hi Gurus,
When I run "yum install" for packages, seems it will download packages to /var/cache/yum. As there's limited free space on /, this will make / full very soon. So is there anyway that I can disable packages downloading to /var/cache/yum?

Thanks.

Ztcoracat 04-28-2015 01:17 AM

Hi:

Since you have limited free space you may want to perform a backup and free up your "/" partition or you could re-size your root partition.

You can blacklist packages.
http://www.cyberciti.biz/faq/rhel-fe...ing-installed/

What distribution are running Red Hat? CentOS or Fedora?

Delete the cache directory from /var/cache/yum/.
https://www.centos.org/docs/5/html/y...intenance.html

unSpawn 04-28-2015 01:21 AM

Quote:

Originally Posted by hahacc (Post 5354235)
So is there anyway that I can disable packages downloading to /var/cache/yum?

See "keepcache" in 'man yum.conf' but note caching has distinct advantages and having too small a "/" is a deliberate, non standard, installation choice. Also note you can mount bind a partition from another disk in /var/cache if needed.

hahacc 04-29-2015 12:29 AM

Thanks all. I'll also run "yun clean all" to clean the cache.

Ztcoracat 04-29-2015 04:42 PM

Quote:

Originally Posted by hahacc (Post 5354860)
Thanks all. I'll also run "yun clean all" to clean the cache.

Your Welcome:-

Run:

Code:

yum clear cache
yum clean packages
yum clean metadata



All times are GMT -5. The time now is 04:56 PM.