Hello Everyone: I inherited a CentOS 4.x box that appears to have been installed with the everything installation option. I would like to strip the box down of all the unnecessary apps and streamline/secure it. Unfortunately, it is a production box and it would be quite inconvenient to burn down and rebuild. Does anyone have any suggestions on how to do this conveniently with yum and still leave the box in a production condition i.e. leave it's needed services up and running? Thanks, Ed
Ed Morrison wrote:> Hello Everyone: > > I inherited a CentOS 4.x box that appears to have been installed with > the everything installation option. I would like to strip the box down > of all the unnecessary apps and streamline/secure it. Unfortunately, it > is a production box and it would be quite inconvenient to burn down and > rebuild. Does anyone have any suggestions on how to do this > conveniently with yum and still leave the box in a production condition > i.e. leave it's needed services up and running? > > Thanks, > EdHi - I've seen this in the past, and I was fortunate enough for the person to have used the 'yum group*' commands. You might be able to get rid of software groups which might contain these pieces of software. Looking for the group* commands associated with Yum, and you might get lucky, in the same manner that I did. Thanks! -dant
Ed Morrison wrote:> Hello Everyone: > > I inherited a CentOS 4.x box that appears to have been installed with > the everything installation option. I would like to strip the box > down of all the unnecessary apps and streamline/secure it. > Unfortunately, it is a production box and it would be quite > inconvenient to burn down and rebuild. Does anyone have any > suggestions on how to do this conveniently with yum and still leave > the box in a production condition i.e. leave it's needed services up > and running? > > Thanks, > EdEd, I'd venture to guess, the first thing would be to identify what you don't need, stop the processes that you don't need to run, then use yum to remove the stuff, or just stop the processes and don't worry about the software being on the disk unless you really need the space. Determining what you don't really need or have to have would be the hardest task, I'm sure, but there might be some dependencies that bite you along the way as well. Sam --
> Hello Everyone: > > I inherited a CentOS 4.x box that appears to have been installed with > the everything installation option. I would like to strip > the box down > of all the unnecessary apps and streamline/secure it. > Unfortunately, it > is a production box and it would be quite inconvenient to > burn down and > rebuild. Does anyone have any suggestions on how to do this > conveniently with yum and still leave the box in a production > condition > i.e. leave it's needed services up and running? >Ed, I just had to do this with a couple of boxes. A tip I would offfer is the command "yum list extras" which helped immensely in finding any packages that had been installed by previous admin without the benefit of the whole yum/repository system. Other steps I used were to do a chkconfig --list | grep ":on" to see what was set to start and then examining the run scripts to determine whether all services were part of a package or not. Last, check the /etc/rc.local in case they compiled an app and installed it manually. Many times people will install their startup commands in it if they are unfamiliar with chkconfig etc. Good Luck, Alex Palenschat