after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
Hi! Now that 10.1 is released, I re-built all the ports relevant to me via poudriere bulk -f ~/pkg/all -j 10x and then had a nice new repo to pkg update. But: If I upgrade a 10.0 box to 10.1 and then ask them to use the new repo, how can I enforce a complete reinstall of all packages built on 10.1 instead of having a mix of old and new pkgs ? -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
On 16/11/2014 08:25, Kurt Jaeger wrote: Now that 10.1 is released, I re-built all the ports relevant to me via poudriere bulk -f ~/pkg/all -j 10x and then had a nice new repo to pkg update. But: If I upgrade a 10.0 box to 10.1 and then ask them to use the new repo, how can I enforce a complete reinstall of all packages built on 10.1 instead of having a mix of old and new pkgs ? For a 10.0 to 10.1 upgrade, reinstalling everything is not generally required. However I assume you have your own reasons to want to do so. You can force a re-install of all installed packages by: # pkg upgrade -f If you want to selectively update just the packages installed from a particular repo, or installed before a specific date, there isn't a handy built-in way to do that. You'll have to generate a list of appropriate packages and feed it to pkg install -f using xargs(1) -- eg. # pkg query %n-%v %An %Av | grep repository $reponame \ | cut -d' ' -f 1 | xargs pkg install -f # date=$( date -j -f %Y-%m-%d %H:%M:%S 2014-10-16 00:00:00 +%s ) # pkg query %n-%v %t | awk { if (\$2 $date ) print \$1; } \ | xargs pkg install -f The business with 'date -j -f ...' is to convert a date specified in the usual way (year, month, day, hour, minutes, seconds) into the unix epoch time, which can then be compared as an integer to the timestamp pkg(8) produces. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
On 11/16/14 09:25, Kurt Jaeger wrote: Hi! Now that 10.1 is released, I re-built all the ports relevant to me via poudriere bulk -f ~/pkg/all -j 10x and then had a nice new repo to pkg update. But: If I upgrade a 10.0 box to 10.1 and then ask them to use the new repo, how can I enforce a complete reinstall of all packages built on 10.1 instead of having a mix of old and new pkgs ? pkg upgrade -f worked fine for me. -- Guido Falsi m...@madpilot.net ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
Hi! pkg upgrade -f worked fine for me. Thanks, works! -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
+--On 16 novembre 2014 10:50:48 +0100 Kurt Jaeger li...@opsec.eu wrote: | Hi! | | pkg upgrade -f worked fine for me. | | Thanks, works! Note, for the record, that you're reinstalling the *exact* same packages. -- Mathieu Arnold ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
On 11/16/14 12:25, Mathieu Arnold wrote: +--On 16 novembre 2014 10:50:48 +0100 Kurt Jaeger li...@opsec.eu wrote: | Hi! | | pkg upgrade -f worked fine for me. | | Thanks, works! Note, for the record, that you're reinstalling the *exact* same packages. For me, that's exactly what I wanted to perform with that command. I admit with my answer I assumed he wanted to do the same I did. -- Guido Falsi m...@madpilot.net ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
Hi! | pkg upgrade -f worked fine for me. | Thanks, works! Note, for the record, that you're reinstalling the *exact* same packages. Thanks for the hint. I'll compare them at the next opportunity. -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
+--On 16 novembre 2014 14:36:56 +0100 Kurt Jaeger li...@opsec.eu wrote: | Hi! | | | pkg upgrade -f worked fine for me. | | | Thanks, works! | | Note, for the record, that you're reinstalling the *exact* same packages. | | Thanks for the hint. I'll compare them at the next opportunity. Well, you don't need to compare them, we build packages for branches on the oldest supported release, so 8.4 built on 8.4, the packages for 9.1, 9.2 and 9.3 built on 9.1, and the packages for 10.0 and 10.1 built on 10.0 :-) -- Mathieu Arnold ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: after 10.0 - 10.1 rebuild: how to force pkg reinstall ?
Hi! | Thanks for the hint. I'll compare them at the next opportunity. Well, you don't need to compare them, we build packages for branches on the oldest supported release, so 8.4 built on 8.4, the packages for 9.1, 9.2 and 9.3 built on 9.1, and the packages for 10.0 and 10.1 built on 10.0 :-) I build on 10.1 for repo.opsec.eu. And that's why I wanted to force the upgrade. I *guess* if I build a package in a 10.0 poudriere and in a 10.1 poudriere, they differ ? -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Deleting ports distfiles
I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. Regards, Peter ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. Yes. Missing distfiles will be redownloaded when/if you rebuild a port. Regards Andrew ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
On Sun, Nov 16, 2014 at 1:55 PM, andrew clarke m...@ozzmosis.com wrote: On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. Yes. Missing distfiles will be redownloaded when/if you rebuild a port. You can also delete just the unused ones, if you're using portmaster or portupgrade ('portsclean' command). See the bottom of the Using the Ports Collection docs page: https://www.freebsd.org/doc/handbook/ports-using.html Even if you don't use portmaster for anything else, using it for this purpose is worth the install, IMO. Royce ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
On Sun, Nov 16, 2014 at 4:29 PM, Dr. Peter Voigt pvo...@uos.de wrote: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. It is not necessarily a safe operation to preform depending on the details. The downloads in that location may be the last known copy of that particular port/version at least as a copy available to you. Deleting those files could prevent you from rebuilding a certain port/version if needed. Nearly all the time this isn't a problem or easily worked around, but not universally so IME. After doing a ports upgrade, and ensuring fully correct operation of the system it's generally safe to run something like portmaster -t--clean-distfiles to remove stale distfiles. -- Adam ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
В Sun, 16 Nov 2014 23:29:37 +0100 Dr. Peter Voigt pvo...@uos.de пишет: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. You can clean up, but if you'll rebuild the ports that the source will be downloaded again. Therefore it is better to do like this: portmaster -y --clean-distfiles ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
On Sun, 16 Nov 2014 14:10:00 -0900 Royce Williams ro...@tycho.org wrote: On Sun, Nov 16, 2014 at 1:55 PM, andrew clarke m...@ozzmosis.com wrote: On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. Yes. Missing distfiles will be redownloaded when/if you rebuild a port. You can also delete just the unused ones, if you're using portmaster or portupgrade ('portsclean' command). See the bottom of the Using the Ports Collection docs page: https://www.freebsd.org/doc/handbook/ports-using.html Even if you don't use portmaster for anything else, using it for this purpose is worth the install, IMO. Royce Yeah, that's nice. I have just executed: # portmaster --clean-distfiles -y Which freed up 8 GiB of disk space. Thanks, Peter ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Deleting ports distfiles
On Mon, 17 Nov 2014 09:55:01 +1100 andrew clarke m...@ozzmosis.com wrote: On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote: I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My hopefully not too stupid question is: Can I safely delete all files under /usr/ports/distfiles, e.g. # rm -rf /usr/ports/distfiles/* I strongly suppose so but I am not sure. Thanks for any feedback. Yes. Missing distfiles will be redownloaded when/if you rebuild a port. Regards Andrew ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org Thanks for your confirmation. I would like to clean up before I am going to rebuild all installed ports after the upgrade to 10.1-RELEASE. Regards, Peter ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org