LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2009, 08:30 PM   #1
jlb0057
LQ Newbie
 
Registered: Feb 2009
Location: Tennessee
Distribution: Debian, Ubuntu, Linux Mint
Posts: 10

Rep: Reputation: 0
Cleaning up packages in Debian


I believe I have a bloated software library on my Debian testing system due to administering the box with too little knowledge and too much reliance on the GUI, e.g. Synaptic Package Mgr. This box is a PIII with 256MB RAM, so my goal is to trim unwanted packages and learn some CMI in the process.

I would like suggestions of packages, bash commands and/or scripts to help me identify and remove unnecessary packages.

After searches and review of debian.org HOWTO, I removed some orphaned libraries with the following:

Code:
# apt-get update
# apt-get remove --purge $(deborphan)
# apt-get autoremove
I also installed cruft and received a HUGE amount of data from the report:
Code:
# cruft -N
Is it safe to run cruft on my system?
 
Old 02-15-2009, 08:45 PM   #2
r1d3r
Member
 
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146

Rep: Reputation: 22
It should be safe, it mostly works with the dpkg database.
But be careful, its still experimental!
 
Old 02-15-2009, 09:39 PM   #3
anurag_bhd
Member
 
Registered: Nov 2006
Location: Jalandhar, India
Distribution: openSuSE 11.0, Granular 1.0, Mandriva One 2009, Fedora 11
Posts: 60

Rep: Reputation: 18
Try this:

Code:
sudo apt-get clean
This command will remove all the deb packages in the apt-get cache - /var/cache/apt/archives
 
Old 02-15-2009, 10:52 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
apt-get clean

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

and after that I would run debfoster just pay attention to what it wants to remove before you say yes.
 
Old 02-16-2009, 04:59 PM   #5
jlb0057
LQ Newbie
 
Registered: Feb 2009
Location: Tennessee
Distribution: Debian, Ubuntu, Linux Mint
Posts: 10

Original Poster
Rep: Reputation: 0
Muchas gracias for the helpful responses here. A couple corollary questions:

1. Is there a command or package that will tell me software that has not been used for a given amount of time? Or am I better to go through packages one by one in aptitude or or GUI pkg manager?

2. What are some recommended minimal size, but functional desktop environments? Will I cause any unexpected problems by removing Gnome and KDE or by switching GUI's while shopping around?
 
Old 02-17-2009, 03:29 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
I like LXDE, I use it on my Eee pC, my install is only 1.4gb.
 
Old 02-17-2009, 04:50 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by jlb0057 View Post
Muchas gracias for the helpful responses here. A couple corollary questions:

1. Is there a command or package that will tell me software that has not been used for a given amount of time? Or am I better to go through packages one by one in aptitude or or GUI pkg manager?
Hi jlb,
There are an awful lot of packages to go through 1 by 1! I hope you are quite young and have no other obligations in your life . aptitude may be a better bet as a package manager than apt-get. You might go through your menus and see what software apps you can't imagine ever using and then removing them. Usually the package name is obvious from the application but not always. You can use the handy debian package site:
http://www.debian.org/distrib/packages
If you know what the binary is, then just do a search on "Search the contents of packages" for that file and you will find what package contains it. aptitude will usually warn you if removing that package will cause many other packages to be removed.
Cheers,
jdk
 
Old 02-17-2009, 11:33 PM   #8
jlb0057
LQ Newbie
 
Registered: Feb 2009
Location: Tennessee
Distribution: Debian, Ubuntu, Linux Mint
Posts: 10

Original Poster
Rep: Reputation: 0
jdk, you're right, of course. I decided to start by removing gnome and did not catch that I was also removing gdm. The system was glitchy for a moment until I went to the terminal and put gdm back on.
 
  


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
Program for cleaning packages Lobais Linux - Software 1 04-23-2006 03:01 PM
cleaning up my system of unneeded packages with apt-get Michael_aust Debian 13 04-04-2006 02:23 AM
cleaning up. Removing packages that are unnecessary. microsoft/linux Debian 6 10-20-2005 10:35 AM
Getting Debian packages Tylerious Linux - Newbie 6 08-21-2005 10:41 PM
Packages on Debian? sridharinfinity Linux - Distributions 7 06-12-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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