LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-08-2013, 01:08 PM   #1
whc1886
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
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,314
Blog Entries: 5

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

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

Rep: Reputation: 18
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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,890

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat
Posts: 145

Rep: Reputation: 5
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.

BACKUP BEFORE ANY CHANGES !!!!!
 
  


Reply


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


All times are GMT -5. The time now is 03:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration