LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-06-2006, 03:30 PM   #1
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Rep: Reputation: 15
freeing disk space


Hi

I need to free some hd space on my debian server.

What are the main places where I have to look?

thanks
 
Old 02-06-2006, 03:39 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Here's an article to help you out. http://www.debian-administration.org/articles/143

What you're asking depends on what kind of server you're hosting (i.e. user files for apache may take up a lot of disk space if they each have unlimited space...) You might look into quota to limit certain directory sizes...
 
Old 02-06-2006, 03:41 PM   #3
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
find / -size 10000k
 
Old 02-06-2006, 11:10 PM   #4
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
Install "localepurge" to remove unused docs
 
Old 02-07-2006, 08:52 AM   #5
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Original Poster
Rep: Reputation: 15
wow purgelocal freed me 67Mg useless docs in japanase, russian, etc...

thanks
 
Old 02-07-2006, 08:57 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Localpurge is great
also exist:
deborphan
debfoster
cruft but this one is more complicated to interpret and you need to manually remove things.
 
Old 02-18-2006, 07:41 PM   #7
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
I usually do a:
# apt-get clean
when I need some space. Have a look at apt-get:s man-page.

/J

Last edited by Ztyx; 02-18-2006 at 07:41 PM. Reason: Wrong program...
 
Old 05-10-2007, 10:14 AM   #8
acerimusdux
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
dpigs

Two useful utilities for finding large and unused packages in debian are dpigs and popularity-contest.

To list the 20 largest packages installed (you have to decide for yourself if you use them):

dpigs -n 20

To see what packages you use most, and what ones you aren't using, try:

popularity-contest
popcon-largest-unused
 
Old 05-10-2007, 10:25 AM   #9
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
take a look in /var/cache and /tmp to see if theres anything you can delete. And maybe some old log files at /var/log
 
Old 05-10-2007, 08:28 PM   #10
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Egads..
Quote:
localepurge: Disk space freed in /usr/share/locale: 314780K
localepurge: Disk space freed in /usr/share/man: 3968K

Total disk space freed by localepurge: 318748K
OK that utility goes on the keeper list..
 
  


Reply

Tags
diskspace


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
Disk Usage and freeing up some space MicahCarrick Linux - Software 3 01-26-2006 01:49 PM
Freeing up space hongman Linux - Newbie 7 06-27-2005 02:00 PM
Freeing up some space. How? Rutnut Linux - General 10 06-21-2005 01:00 AM
freeing up space on floppy disk mleschis Linux - Newbie 20 12-18-2003 05:59 AM
Freeing up Space stroudt Red Hat 6 08-28-2003 02:45 PM


All times are GMT -5. The time now is 11:04 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