Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-08-2013, 01:08 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Which packages to remove?

I have an existing system with ~1200 packages installed. I've been asked to review and remove any unnecessary ones. Is there a way to tell which packages are not being used? (and do not have tenacles to other used packages?)

IF this is the wrong forum please let me know and I will correct it. Thx.
Old 10-08-2013, 01:51 PM   #2
LQ Addict
Registered: Jan 2011
Posts: 8,563
Blog Entries: 13

Rep: Reputation: Disabled
what OS/flavor/architecture?
Old 10-08-2013, 02:42 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Centos 6/ 64 bit
Old 10-08-2013, 04:07 PM   #4
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
What is your system doing or what should it be doing?
You could try to set up another system to do everything your system needs to do, but based on a minimalized approach. This could be done even on a virtual machine if your system was a powerful production system. Once you set up your toy system you can compare the installed packages between both and remove any unwanted from the main system.

Another approach would be to go trough the list of all installed packages, find and line up all dependencies and deinstall any unneeded software.

Cleaning up a "grown" system with "history" is always an unthankful task, doesn't matter if it is physical (network) cabling or software system.
Old 10-08-2013, 04:20 PM   #5
Registered: Aug 2002
Posts: 16,034

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
You can list the installed packages via the following command:
rpm -qa

Any other software installed using source packages will not be listed. There is no way for us to know how the server is being used to say what applications / services are not required. I believe the basic server install has around 600 packages.
Old 10-10-2013, 02:01 AM   #6
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 263

Rep: Reputation: 41
Use rpmreaper. Not sure it is in distribution, but you can find it on net.
Almost sure, you can delete any -devel- packages, almost all .i386 packages
Then remove all packages, that you do not know what they do.

Rpmreaper follow dependecies and will not allow you to remove required packages.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installation of packages in RHEL-5.3 using X windows menu Add/Remove packages akluthra Linux - Newbie 2 09-21-2010 05:34 AM
Remove a package and all packages it depends on without breaking other packages? macroron Fedora 2 01-31-2010 05:49 PM
remove packages acrors Fedora 3 09-25-2004 07:08 AM
how to remove packages Longinus Linux - Newbie 6 04-25-2004 06:53 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration