FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 02-15-2012, 07:30 PM
Craig Thompson
Default question on unused directories in /usr/lib and /usr/lib64

I was working on archiving an old virtual server today and was reminded of how much space is wasted by some of the default installations on CentOS. I think this was a 5.x box.

Anyway, in /usr/lib/64 (and probably /usr/lib on non-64 systems), there were a lot of directories which have no bearing on a basic server. I saw firefox, openoffice and many, many other directories -- replete with enough files to seriously affect backup space over time.

Does anyone have an available script or list of commands for removing most or all of these "generally unused" directories, packages or whatever they are?

I found something a while back for shutting off unused services, but this seems to be a gaping hole in available archives.


CentOS mailing list
Old 02-15-2012, 09:19 PM
Benjamin Hackl
Default question on unused directories in /usr/lib and /usr/lib64

Dear Craig,

On Wed, 15 Feb 2012 16:58:40 -0500
Craig Thompson <cthompson@loganthompsonlaw.com> wrote:

> My goal is to develop my own list, put it in a basic shell script and
> remove them wholesale. I've done this for generally unused services
> which I run upon installation of a basic system, and it works well.

Why don't you go the other way around: Create a kickstart file with
only the exact packages you need?

-- snip --

%packages --excludedocs --nobase

Above example will give you a minimal system with 5 extra packages. You
can do a lot more with kickstart. See
http://fedoraproject.org/wiki/Anaconda/Kickstart for full documentation.


Freundliche Gruesse/Best Regards
Benjamin Hackl

Media FOCUS Research Ges.m.b.H.
Maculangasse 8, 1220 Wien Austria
Tel: +43 1 258 97 01-295
CentOS mailing list

Thread Tools

All times are GMT. The time now is 02:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org