Re: 5.3: redundant libraries in /usr/lib after cvsup-ing and build world ?

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Mon, 4 Oct 2004 09:21:12 +0300
Hi there,

On Sun, Oct 03, 2004 at 10:29:30PM -0700, spam maps wrote:
> In /usr/lib I have libraries with dates of my latest
> world build, and with older dates. I consider the
> libraries with old dates to be redundant.
> A typical example is, when I do
> 
>  # ll /usr/lib/*libssh*
>  289008 Oct  3 17:28 /usr/lib/libssh.a
>      11 Oct  3 17:28 /usr/lib/libssh.so -> libssh.so.2
>  194148 Oct  3 17:28 /usr/lib/libssh.so.2
>  280822 Feb 24  2004 /usr/lib/libssh_p.a
> 
> "Oct 3" is when I did my last build world.
> Is /usr/lib/libssh_p.a (Feb. 24) indeed redundant?
> Can I remove it, without breaking the system?
> 
Yes.  It's a profiled library that was installed during the
initial install (from CD-ROM or FTP?), and now apparently
you have NOPROFILE set in your /etc/make.conf.

> There are many more seemingly redundant libraries
> with lib*_p.a :
> 
> libalias_p.a, libatm_p.a, libbluetooth_p.a,
[20 lines of *_p.a libraries removed]
> libgssapi_p.a, libcrypto_p.a, libssl_p.a, libssh_p.a
> 
> -----------------------
> 
> In addition, I have following libraries with
> old dates:
> 
> /usr/lib/libisc.a
> /usr/lib/libisc.so -> libisc.so.1
> /usr/lib/libisc.so.1
> 
> /usr/lib/libkse.a
> /usr/lib/libkse.so -> libkse.so.1
> /usr/lib/libkse.so.1
> 
> /lib/geom/geom_concat.so.1
> /lib/geom/geom_label.so.1
> /lib/geom/geom_nop.so.1
> /lib/geom/geom_stripe.so.1
> 
> /libexec/ld-elf.so.1
> 
> Can I remove all these as well?
> 
Yes for the above list, but generally one should be careful
with removing the .a libraries -- they are installed with -C.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Mon Oct 04 2004 - 04:21:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:15 UTC