Date: Sat, 23 Feb 2019 07:03:35 +0100 From: Polytropon <freebsd@edvax.de> To: Robert Huff <roberthuff@rcn.com> Cc: FreeBSD Questions List <questions@freebsd.org> Subject: Re: size of debug symbols Message-ID: <20190223070335.2bf5fe5e.freebsd@edvax.de> In-Reply-To: <23664.20373.538652.760207@jerusalem.litteratus.org> References: <46040D79-BA05-43F5-9213-67094355B68A@cretaforce.gr> <20190222162801.aa891c03.freebsd@edvax.de> <23664.7343.854264.787515@jerusalem.litteratus.org> <10f6f59f-364e-20bc-0e15-cdb28f1f8d26@qeng-ho.org> <23664.20373.538652.760207@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Feb 2019 14:37:57 -0500, Robert Huff wrote: > > Me: > > > > When I run "make delete-old", I get asked about each individual file. > > > There are a _lot_ of files. > > > Is there a way to say "y" to everything? I know this - > > > technically - incurs a certain amount of risk. But considering Ican't > > > remember any reports of someone getting bit by this it seems like a > > > risk worth taking. > > Two people suggested: > > > Add -DBATCH_DELETE_OLD_FILES to your make invocation. > > Hot dang - it worked! Of course it did, the documentation says so. For reference: 24.8 Deleting obsolete files, directories and libraries [...] We assume you are following the steps outlined in Section 24.7.1. After the make installworld and the subsequent mergemaster commands have finished successfully, you should check for obsolete files and libraries as follows: # cd /usr/src # make check-old If any obsolete files are found, they can be deleted using the following commands: # make delete-old Tip: See /usr/src/Makefile for more targets of interest. A prompt is displayed before deleting each obsolete file. You can skip the prompt and let the system remove these files automatically by using the BATCH_DELETE_OLD_FILES make-variable as follows: # make -DBATCH_DELETE_OLD_FILES delete-old You can also achieve the same goal by piping these commands through yes like this: # yes|make delete-old [...] After you've made sure that all ports are rebuilt and do not use the old libraries anymore, you can delete them using the following command: # make delete-old-libs As I mentioned, the comment header of /usr/src/Makefile is full of paths toward enlightenment. ;-) https://docs.freebsd.org/doc/7.4-RELEASE/usr/share/doc/handbook/make-delete-old.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190223070335.2bf5fe5e.freebsd>