LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2015, 12:21 AM   #1
hahacc
Member
 
Registered: Oct 2010
Posts: 87

Rep: Reputation: 1
Question 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.
 
Old 04-28-2015, 01:17 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,246
Blog Entries: 9

Rep: Reputation: Disabled
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

Last edited by Ztcoracat; 04-28-2015 at 01:19 AM.
 
Old 04-28-2015, 01:21 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,338
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
Quote:
Originally Posted by hahacc View Post
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.
 
Old 04-29-2015, 12:29 AM   #4
hahacc
Member
 
Registered: Oct 2010
Posts: 87

Original Poster
Rep: Reputation: 1
Thanks all. I'll also run "yun clean all" to clean the cache.
 
Old 04-29-2015, 04:42 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,246
Blog Entries: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by hahacc View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packages not showing for update while running yum update rkhura02 Red Hat 2 10-03-2014 07:26 PM
Downloading using yum jonn.moon Linux - Newbie 18 10-12-2010 04:10 AM
Yum update process stops after showing line "Downloading Packages" eagleman Red Hat 4 04-06-2010 03:10 PM
YUM - disable certain packages from updating Micro420 Fedora 5 03-19-2010 11:17 AM
Error running yum while installing some packages cuco76 Fedora 2 07-09-2004 02:59 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration