Results 1 to 6 of 6
I have debian on an older computer, compaq laptop. I was doing an apt-get upgrade and a dist-upgrade and I ran out of disk space, I only have 2.9g to ...
- 12-15-2006 #1Just Joined!
- Join Date
- May 2006
- Posts
- 27
what can I delete
I have debian on an older computer, compaq laptop. I was doing an apt-get upgrade and a dist-upgrade and I ran out of disk space, I only have 2.9g to begin with. This is basically a fresh install, so there is nothing in my home directory to delete, Home is on the same partition as well. I have both the 2.4 and 2.6 kernels so I could delete 2.4, but *gasp* to be honest I don't know how. I'm fairly new to linux, and debian is the only distro I've ever used. being in the middle of a dist-upgrade I'm afraid to reboot until I figure this out. I've done some googleing and searching on the forum, but I haven't found any equivalent to say the "temporary internet cache folder, or cookies folder like there is in windows, I apologize if this is excessively stupid, ...
thanks for the help,
Jason
- 12-15-2006 #2
If you weren't in the middle of an upgrade, I would recommend deleting /tmp, but that doesn't seem smart at this stage :S
You could delete all your logs (/var/log) unless you have some reason to keep them? That folder can get surprisingly big, so it might help you out.Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 12-15-2006 #3Just Joined!
- Join Date
- May 2006
- Posts
- 27
thanks for the pointer
that got me down to 2.8 used, I'm trying the dist-upgrade again, is there anything else that isn't really necessary?
thanks again for the help,
jason
- 12-15-2006 #4
Make sure you clean old packages present in /var/cache/apt/archives/
You can clean them like that :
You should do that regularly.Code:apt-get clean apt-get autoclean
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 12-15-2006 #5Just Joined!
- Join Date
- May 2006
- Posts
- 27
That did it I'm down to 2.2 used. Thanks so much,
Originally Posted by antidrugue
Fantastic.
- 12-15-2006 #6Just Joined!
- Join Date
- Jul 2004
- Location
- Panama
- Posts
- 20
You only need 'apt-get clean' if your purpose is to clean everything 'autoclean' is redundant in this case, better explained in the
Originally Posted by antidrugue
APT-HOWTO
http://www.us.debian.org/doc/manuals....html#s-remove
Section 3.6
You use one or the other but not both, otherwise 'apt-get clean' will override 'autoclean'.
Another program that will save ~50 MB of space is localepurge.
# apt-get update && apt-get install localepurge debfoster deborphan
# dpkg-reconfigure localepurge
I chose all the instances of en_US and es_ES (i'm a spanish speaker), and answered the next questions:
Also delete localized man pages? Yes
Inform about new locales? No
Display freed disk space? Yes
Accurate disk space calculation? Yes
Display verbose output? No
the idea is if you don't understand russian, chinese, slovakian, why waste space carrying them around?
Another good programs are debfoster and deborphan
# debfoster
Keep <name of app>? P
this will purge everything about this app.
# deborphan
will give you a list of orphaned libraries and dependencies. If you want to get rid of them in one move:
# deborphan | xargs dpkg -P <Enter>
The best way to save space is to do a minimal install, skip the 'install packages' option and then at the end of the installation:
# apt-get update && apt-get dist-upgrade
Here is a list of apps i usually start with:
# apt-get install x-window-system-core aterm menu ratpoison zip unzip bzip2 firehol apmd sudo numlockx xtrlock mozilla-firefox xfe xzgv qiv irssi-text deborphan debfoster localepurge xfonts-artwiz xfonts-terminus artwiz-cursor
I use stable, if you use testing then i think you have to install xserver-xorg-core.
Reboot and choose the 2.6 kernel, then:
#debfoster <Enter>
Keep kernel-image-2.4-*****? P <Enter>
Keep kernel-image-2.6-***? Y
that's it, pal, next time you reboot you'll only see the kernel 2.6 in the grub menu. NOTE: make sure you are NOT using the kernel you will delete or re-installation will be necessary.
Edit: i don't know if it's necessary to say this, but, don't install KDE or Gnome, both go 100+ MB and they are memory hogs, which in your case, do not make sense.


Reply With Quote
