Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-06-2012, 04:52 PM   #1
LQ Newbie
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
redhat packages I can safely remove


I'm mostly a Windows admin (don't hate), and I recently inherited management of a RedHat 5.x server that provides sftp and https services. I'd like to rip out everything that's not needed to support these two functions, especially things that may have vulnerabilites.

Can I remove cups, samba and nfs related packages without affecting the two services this box provides?

Got any suggestions for other superfluous packages that could/should be removed? DHCP? DNS?


Last edited by vacantstare; 08-06-2012 at 05:06 PM.
Old 08-06-2012, 05:18 PM   #2
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
You can start out by stopping the services that you wish to remove to see if anything else failes to function properly.

For instance disable cups and see if anything goes wrong, who knows, maybe some user somewhere prints through the server.

The startup scripts are in /etc/init.d and can be stopped like so
/etc/init.d/smb stop
Or disabled with:
/sbin/chkconfig smb off
smb is the samba server in the above examples.

Almost forgot, to change firewall rules from terminal
or in x from graphical display

Last edited by spazticclown; 08-06-2012 at 05:20 PM.
Old 08-06-2012, 06:53 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
As root
service <service name> stop
repeat for each candidate and let it run for a week, in case there are eg end of week special jobs.
Get the service name from chkconfig/ntsysv below.

chkconfig <service name> off
permanently turns it off, even after a reboot.

You can get a list of all services
chkconfig --list
For a pseudo GUI, try ntsysv

You'll want to bookmark this

You're going to want to understand the yum cmd to keep the system updated.
Try to avoid using rpm cmd for updating, as this does NOT handle dependencies; that's what yum is for

PS: you might want to get a copy of Centos (a free rebuild of RHEL) at home to familiarize yourself.

Welcome to LQ

Last edited by chrism01; 08-06-2012 at 06:57 PM.
1 members found this post helpful.


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
Safely remove SD cards mfdarwin Ubuntu 12 08-21-2010 04:42 AM
safely remove hardware bhanuma_nagadeep Linux - Hardware 4 08-20-2008 04:12 PM
How to safely remove device? shame VectorLinux 6 09-06-2006 09:23 PM
how do I (safely) remove gnome? sunpascal Linux - Newbie 1 02-12-2006 10:24 AM
How to safely remove linux :( TRUSTpunk Linux - Newbie 11 01-07-2005 01:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 PM.

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
Open Source Consulting | Domain Registration