Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2016 18:28:14 +0100
From:      Markus Edemalm <markus@edemalm.se>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Safe to delete old files in /usr/lib?
Message-ID:  <F4E4B196-36B4-40FE-A54B-FEA95DA96772@edemalm.se>
In-Reply-To: <20160104181211.76907a30.freebsd@edvax.de>
References:  <D6FAF4F3-EE48-4411-909D-9D13D8B9B620@edemalm.se> <20160104181211.76907a30.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> 4 jan. 2016 kl. 18:12 skrev Polytropon <freebsd@edvax.de>:
>=20
> On Mon, 4 Jan 2016 18:06:00 +0100, Markus Edemalm wrote:
>> Hello,
>>=20
>> My system was first installed as 10.0-RELEASE. I have since upgraded =
to 10.1, 10.1-STABLE, 10.2-RELEASE and is now at 10.2-RELEASE-p8.
>> I=E2=80=99ve rebuild from source and followed the steps in the =
handbook. Everything is fine=E2=80=A6 but:
>>=20
>> I see many files in /usr/lib with old dates, apparently they are no =
longer installed during upgrades.
>>=20
>> My /etc/make.conf looks like this:
>>=20
>> NO_PROFILE=3Dtrue
>> WITHOUT_X11=3Dyes
>>=20
>> Today, January the 4th, I upgraded to -p8. The newly installed files =
has todays date, i.e =E2=80=9DJan  4=E2=80=9D.
>> If I do:
>>=20
>> ls -lF /usr/lib | grep -v 'Jan  4' | awk {'print $9'}
>>=20
>> =E2=80=A6I get the following list of (obsolete?) files and folders =
with older dates.
>>=20
>> aout/
>> compat/
>> libBlocksRuntime.a
>> libalias.a
>> libalias_cuseeme.a

[long list cut]

>> liby.a
>> libypclnt.a
>> libz.a
>> libzfs.a
>> libzfs_core.a
>> libzpool.a
>>=20
>> Would it be safe to delete them?
>=20
> If you install from source, use the following targets:
>=20
> # check-old           - List obsolete directories/files/libraries.
> # check-old-dirs      - List obsolete directories.
> # check-old-files     - List obsolete files.
> # check-old-libs      - List obsolete libraries.

Sorry, no files in /usr/lib comes up. Just a few others I know about.

> And then:
>=20
> # delete-old          - Delete obsolete directories/files/libraries.
> # delete-old-dirs     - Delete obsolete directories.
> # delete-old-files    - Delete obsolete files.
> # delete-old-libs     - Delete obsolete libraries.
>=20
> See the comment header of /usr/src/Makefile for more information
> (and how those targets fit the recommended updating procedure,
> listed a few lines later).
>=20
> Generally speaking: As long as no program is linked against those
> files, and no program requires them, they can be deleted. This
> statement highly depends on which programs you have installed
> and what they are linked against. :-)

Thank you. Still wonder why they are so many and where the came from in =
the first place.
And, they are all .a files, except for libc++.so and libc.so.

I added NO_PROFILE=3Dtrue to /etc/make.conf a while back. Is that =
relevant?

>=20
> --=20
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, =E2=80=A6

Thanks again,

ME




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4E4B196-36B4-40FE-A54B-FEA95DA96772>