LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-18-2007, 05:02 AM   #1
nos1833
Member
 
Registered: Jul 2006
Posts: 64

Rep: Reputation: 15
what can i delete unuseful stuff


Before i upgrade to Debian etch i had 1.2 GB free disk space, but now i only have 300MB
So please tell me what can I delete in order to free more space.
Thank you.
 
Old 04-18-2007, 05:59 AM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
OK-so you have Etch installed? Open the synaptic package manager and click on Status->Installed. That will show you all the packages you have installed, and you can remove them. Be careful, as you are root, it will NOT question you. My advice is taking out games and mail programs. Also, installing XCFE and then uninstalling Gnome will help speed things up and will temporarily fill up space, do not uninstall Gnome first though. Hope this helps!
 
Old 04-18-2007, 06:08 AM   #3
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
I would also take a trip through /var

Check out logs, take a look a /var/cache/apt/archives
how much is there?
 
Old 04-18-2007, 06:16 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Install debfoster and localepurge.

But take care what you uninstall
 
Old 04-18-2007, 11:08 AM   #5
DeanLinkous
Member
 
Registered: Jun 2006
Posts: 111

Rep: Reputation: 15
apt-get clean
 
Old 04-18-2007, 11:26 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
aptitude clean && aptitude autoclean empty out that package cache

then maybe take a look at deborphan and cruft

Last edited by farslayer; 04-18-2007 at 11:31 AM.
 
Old 04-18-2007, 07:09 PM   #7
nos1833
Member
 
Registered: Jul 2006
Posts: 64

Original Poster
Rep: Reputation: 15
Thank you very much.
I did not know the aptitude autoclean or aptitude clean.
And now i have more free space than before I install debian etch.
So thank you again.
 
Old 04-19-2007, 03:51 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Good.
From this we can conclude that people who have less than 800Meg free on /var won't be able to upgrade cleanly..
 
Old 04-22-2007, 10:48 AM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Quote:
Originally Posted by farslayer
aptitude clean && aptitude autoclean empty out that package cache

then maybe take a look at deborphan and cruft
Use auto-clean OR clean but not BOTH, clean cancels auto-clean, check the APT-HOWTO.
 
Old 04-22-2007, 11:00 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
It doesn't cancel it out, clean removes everything so basically autoclean wouldn't have anything it could remove after clean has been run.. so in the command I posted above autoclean is kinda redundant since all the packages in the cache have already been removed using clean.

It certainly can't hurt anything to run both, but what you certainly will loose by using the clean commands is the ability to roll back an update for a package if an older version of the package is no longer available in the repositories.

Apt HOW_TO subsection clean

Quote:
apt-get clean removes everything except lock files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Thus, if you need to reinstall a package APT should retrieve it again.
Quote:
apt-get autoclean removes only package files that can no longer be downloaded.
 
Old 04-23-2007, 03:33 PM   #11
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Quote:
Originally Posted by farslayer
It doesn't cancel it out, clean removes everything so basically autoclean wouldn't have anything it could remove after clean has been run.. so in the command I posted above autoclean is kinda redundant since all the packages in the cache have already been removed using clean.
That's cancelling it out, if you use 'clean', you don't need 'auto-clean', do not use both, is that hard to understand?
Playing semantics game? Pfffst!
 
Old 04-23-2007, 03:38 PM   #12
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Install 'localepurge' and configure it, it should save you about 40-50 MB of disk space. Check the Debian Configuration Post-Install sticky.
 
Old 04-23-2007, 08:51 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by macondo
That's cancelling it out, if you use 'clean', you don't need 'auto-clean', do not use both, is that hard to understand?
Playing semantics game? Pfffst!

Yes I am totally missing the reason NOT to use either freely or both if I really enjoy typing extra commands that won't do anything. If I use clean EVERYTHING is already gone.. so what HARM is cause by running autoclean ? None as far as I can see. Please enlighten me because the docs don't mention any problem or conflicts this would cause. either way you are removing packages from the local cache, it's just to what extent depending on whether you use clean or autoclean.

I think the docs were pretty clear as I restated above the autoclean in my original post was redundant but in no way harmful. I mean how can telling it to remove something, if it exists, be harmful if theres nothing left in the cache to remove in the first place ? What is it canceling ?

So what is your reason for stating "Don't use both no matter what ?" I'm not understanding why you are being so adamant on that point, Please elaborate.

I'm not opposed to learning new information, but so far all you have stated is your opinion to "not use both" like it would be harmful in some way, with no explanation to back it up. What am I missing ?

After reviewing the docs the two quotes in my last post are pretty clear and self explanatory. I already stated the autoclean was redundant..

Last edited by farslayer; 04-23-2007 at 08:52 PM.
 
Old 04-24-2007, 02:46 PM   #14
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Nobody said it's harmful, if you like typing unneeded commands that do nothing, it's up to you. As you already stated using both clean and auto-clean is redundant. To each its own.
 
  


Reply



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 delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
How do I delete stuff from the trash? usernameddr Mandriva 4 01-23-2005 10:44 AM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
Stuff beatman Linux - Software 6 08-03-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:15 AM.

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
Open Source Consulting | Domain Registration