LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-20-2012, 03:37 PM   #16
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,593

Rep: Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939

Your /var/cache is very large, here's my /var/


Code:
craig:~ # du -sh /var/*
4.0K    /var/X11R6
65M     /var/adm
107M    /var/cache
4.0K    /var/crash
4.0K    /var/db
8.0K    /var/games
98M     /var/lib
32K     /var/lock
37M     /var/log
0       /var/mail
16K     /var/mpi-selector
4.0K    /var/opt
212K    /var/run
1.6M    /var/spool
21M     /var/tmp
12K     /var/yp
If you trace that 4.x GB usage through /var/cache you should be able to figure out which service is responsible for it, then tell it to clean up the cache (eg: "zypper clean"). Once cleaned up, a lot of applications will let you change the cache location. If whoever is responsible lets you change the cache directory, I would move it somewhere in /home/ to get it onto the 300GB partition so you don't run into this in the future.

Last edited by suicidaleggroll; 01-20-2012 at 03:39 PM.
 
Old 01-20-2012, 03:40 PM   #17
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,906

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by Glaedr View Post
Can I access these files through Dolphin/Konqueror?
I do not advise that.

Deleteing system files (basically anything outside your /home) is not necessary under normal circumstances. Especially if you are not 100% sure what the file does and what the full implications will be.

Rather, I'm hoping you can drill down another level:

Code:
du -sh /var/cache/*
for more information.

I have a hunch you have a large cache of software packages. Hopefully an OpenSUSE user can explain how to clear these properly using the package manager.

If you want to free up some space in /usr, the way to do this is by uninstalling applications you don't need. However you will get a much better effort/reward ratio by clearing out your /var/cache first.

ps After you clean your zypper cache you will probably need to start your interrupted upgrade from the beginning again, hopefully you don't have a bandwidth cap or slow connection?

Last edited by snowpine; 01-20-2012 at 03:43 PM.
 
Old 01-20-2012, 03:46 PM   #18
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
I've ended up with:

4.9G /var/cache/zypp

and

linux-p9bp:/home/laura # du -sh /var/cache/zypp/packages/*
119M /var/cache/zypp/packages/devel:languageserl
36K /var/cache/zypp/packages/dvd
676M /var/cache/zypp/packages/Education
4.0K /var/cache/zypp/packages/InstallationImage
153M /var/cache/zypp/packages/KDE:Extra
1.2G /var/cache/zypp/packages/KDE:Unstable:SC
8.0K /var/cache/zypp/packages/libdvdcss repository
8.0K /var/cache/zypp/packages/multimedia:musescore
20K /var/cache/zypp/packages/openSUSE-11.4-11.4-0
12K /var/cache/zypp/packages/openSUSE:Factory:Contrib
36K /var/cache/zypp/packages/packman
1.1G /var/cache/zypp/packages/Packman Repository
4.0K /var/cache/zypp/packages/PK_TMP_DIR
8.4M /var/cache/zypp/packages/repo-non-oss
880M /var/cache/zypp/packages/repo-oss
735M /var/cache/zypp/packages/Updates-for-openSUSE-11.4-11.4-0

So it looks like it, yes. Odd, I didn't think I had very much installed. I'll have a dig through and see what I can get rid of. I still don't understand why the other updates went through too when they were larger.
 
Old 01-20-2012, 03:55 PM   #19
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,906

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Just dump the cache (I think maybe "zypper clean") and you will free 4.9gb instantly. These files are no longer necessary.
 
Old 01-20-2012, 03:56 PM   #20
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,593

Rep: Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939Reputation: 939
Try running "zypper clean" as root, and then check the size of /var/cache/zypp again.

edit: too slow...

edit2: Once you clean it up, you can modify /etc/zypp/zypp.conf to move the cache directory onto your /home/ partition so it doesn't fill up "/" again.

Last edited by suicidaleggroll; 01-20-2012 at 04:01 PM.
 
Old 01-20-2012, 06:59 PM   #21
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Cache cleared, and updates completed. When I get some free time I'll also get rid of some unused packages. Thanks everyone!
 
  


Reply

Tags
failing, kernel, swap, update, zypper


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 02:02 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 03:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
2.6.2 kernel upgrade and lost swap space??? pld Linux - Hardware 2 02-10-2004 10:00 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration