On Sat, Dec 11, 2010 at 04:09:46PM +0200, Fady Fawzy wrote: > I have a small question , how i can remove installed package from the distro. > ... > 'man rm' - of course, you will need to know what got installed. How you identify what got installed is up to you - for the pedantic (and using a lot of space) approach, you could tar up the install between packages, then untar the 'before' and 'after' tarballs for a package to see exactly what got installed or altered.
For a more simplistic approach, touch a file just before the install, do the install, then something based on 'find -newer' : that will miss some headers and documentation, and may pick up other files which changed (particularly in a running system), but is mostly adequate - once you have completed the build and removed gcc, you can remove all the docs and headers so it doesn't really matter which package installed them. To get maximal shrinkage of the completed system, be prepared to try removing things, only to have to restore them after testing. I used to follow fedora in removing libtool archives from the development system, until I got too much breakage on x86_64 and ppc64. But once the system is complete, you can certainly remove all '.la' files as well as all '.a'. If you care about security, keep a copy of the full system (plus notes on how you removed things) so that you can update any of the installed packages and then ship an updated version. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
