Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-27-2005, 07:39 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Removing .a libraries in /usr/lib/

I am really short of space on my system.

I believe that .a files in /usr/lib are for static compiles (i.e. gcc -static)

Since I will not be doing any compiles on this box (slackware) would it be safe to delete the .a files.
Old 08-27-2005, 11:44 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
yea seems like you could do that

you can also srip out debugging symbols on libs
strip --strip-debug /usr/lib/*

and for executables
strip --strip-unneeded /usr/{,s}bin/*

be carefull with the command you use though --strip-unneeded kills libs !
so you might want to go slow and deliberate rather than in a big swath

and i think don't try to strip kernel modules


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
libraries compiling into /usr/lib acidjuice Slackware 4 05-14-2005 05:53 AM
aim: error while loading shared libraries: /usr/lib/ undefined symbol dr_zayus69 Linux - Software 1 12-11-2004 09:10 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
g++ can't find libraries that are in /usr/lib williamtbranch Linux - Software 2 01-17-2004 01:28 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:25 AM.

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