LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-12-2004, 10:45 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
How do you keep your system clean?


With apt and while you're trying new programs you'll get a hell of a lot packages in, like libraries. Now deleting the programs is often easier to remember. But how do you find out unnessescary packages? Maybe something you can search by date with it and which catches the debian packages?
 
Old 10-12-2004, 10:49 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
have a look at "deborphan"

sl mritch.
 
Old 10-12-2004, 10:55 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
That's very useful! Thanks for the help!
 
Old 10-12-2004, 11:15 AM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
"debfoster" is another useful utility for keeping your system as clean as possible.

And if you want to remove also the config files when you remove a program, do "apt-get --purge remove <package>" (or "aptitude purge <package>"). But even this won't remove the "local" config files for the removed programs in your home directory, so you'll have to remove them yourself.
 
Old 10-12-2004, 11:21 AM   #5
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
I usually do it this way:

#apt-get -y remove --purge <package>
#apt-get clean

#debfoster
keep what you want, sometimes after you purge, still there are other libraries pertaining to the app removed, which are left behind. Example: emacsen, after removing emacs21. If you make a mistake press 'u', to change your selection. Do not get rid of libraries you don't what they are, leave them there, deborphan will give you a list of the obsolete ones.

#deborphan
it gives you a list of 'orphaned' libs, to get rid of them:

#deborphan | xargs apt-get -y remove --purge
#apt-get clean

it keeps me under 1 GB of used space in my hd.

Add to that:

#apt-get install localepurge

choose only your locales, choose your locale environment, say 'no' to localized man pages, and 'no' to new locales. It should save you 40-50 MB right there.

Still, like Dead Parrot says, fire up mc, and delete stuff like hidden files, you don't need. Example: i don't use gnome, so i nuke gconf, gnome2, etc

I do the debfoster/deborphan twice a week.

Last edited by macondo; 10-12-2004 at 09:08 PM.
 
Old 10-12-2004, 11:29 AM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
I used dpkg --purge cause apt-get --purge remove doesn't recognize packages I deleted earlier but didn't purge then.

debfoster is awesome Another 122 MB gone now let's see what I broke But well if you don't break anything you never learn anything either.
 
Old 10-12-2004, 03:49 PM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Wow under 1 GB? Where did I get all that stuff? I have this:

Quote:
philip@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb1 4.7G 2.0G 2.8G 42% /
tmpfs 62M 0 62M 0% /dev/shm
/dev/hdb5 9.2G 1009M 7.8G 12% /home
/dev/hda2 1.4G 189M 1.2G 15% /backup
I didn't make different /root (I have barely anything in that folder anyway) but maybe I'm just catching a lot of config and log files. Going to try apt-get clean as well
 
Old 10-12-2004, 04:11 PM   #8
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
It's down to 1.2 GB on /dev/hdb1 but it's the lowest I can get. Still that's like 800 MB of useless files.
 
Old 10-12-2004, 04:13 PM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
macondo@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 38G 986M 37G 3% /
tmpfs 62M 0 62M 0% /dev/shm

Last edited by macondo; 10-12-2004 at 04:14 PM.
 
  


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
uninstall question - how to clean up system? alsac Debian 9 11-12-2005 10:19 PM
blank screen at logon-file system not clean AbZu Mandriva 2 09-22-2005 06:50 AM
Installing a CLEAN Debian System questions terfy Debian 31 01-08-2005 03:16 PM
Keeping a clean system. dirk102 Linux - Software 19 09-09-2004 02:47 PM
Basic Clean System Questions? Boggit Linux - Newbie 1 06-30-2003 01:12 PM

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

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration