Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-12-2004, 11:45 AM
|
#1
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Rep:
|
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?
|
|
|
10-12-2004, 11:49 AM
|
#2
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
have a look at "deborphan"
sl mritch.
|
|
|
10-12-2004, 11:55 AM
|
#3
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Original Poster
Rep:
|
That's very useful! Thanks for the help!
|
|
|
10-12-2004, 12:15 PM
|
#4
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
"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.
|
|
|
10-12-2004, 12:21 PM
|
#5
|
Senior Member
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034
Rep:
|
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 10:08 PM.
|
|
|
10-12-2004, 12:29 PM
|
#6
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Original Poster
Rep:
|
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.
|
|
|
10-12-2004, 04:49 PM
|
#7
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Original Poster
Rep:
|
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
|
|
|
10-12-2004, 05:11 PM
|
#8
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Original Poster
Rep:
|
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.
|
|
|
10-12-2004, 05:13 PM
|
#9
|
Senior Member
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034
Rep:
|
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 05:14 PM.
|
|
|
All times are GMT -5. The time now is 12:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|