LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-27-2005, 08:39 AM   #1
kunkie
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-28-2005, 12:44 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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
 
  


Reply


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 06:53 AM
aim: error while loading shared libraries: /usr/lib/libgdk-1.2.so.0: undefined symbol dr_zayus69 Linux - Software 1 12-11-2004 10:10 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM
g++ can't find libraries that are in /usr/lib williamtbranch Linux - Software 2 01-17-2004 02:28 PM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration