DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd October 2011
xmorg xmorg is offline
Real Name: Tim Cooper
Fdisk Soldier
 
Join Date: Sep 2010
Location: San Diego
Posts: 56
Default upgrade all ports while i sleep, dont bug me

IS there such a command? I tried portupgrade -ra, when then when i wake up im looking at a menu! I don't want to have to babysit a ports rebuild.
Reply With Quote
  #2   (View Single Post)  
Old 23rd October 2011
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Code:
 portmaster -d -B -P -i /var/db/pkg/port... /var/db/pkg/port... /var/db/pkg/port...
should solve that problem, but only seventy percent of the time (unforseen dependencies later, only sometimes, still a worthwhile almost-solution if you answer "Y" to the list it shows after about a half-minute or so).
Code:
 pkg_version -voL "=" | tee -a /usr/ports/UPGRADE.fil
should show a list to feed to the first portmaster command, maybe a few large ports one night, all the small ones the next (excluding if they were upgraded in the previous one...)
__________________
FreeBSD 13-STABLE
Reply With Quote
  #3   (View Single Post)  
Old 23rd October 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

portmaster(8) has a -y option:

Quote:
-y answer yes to all user prompts for the features below
@jb_daefo:
Why do you use -i? This seems the exact opposite of what the OP wants?
Quote:
-i interactive update mode -- ask whether to rebuild ports
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 23rd October 2011
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Scenarios...
A port may have unexpectedly pulled in a new dependency, without the -i there is a greater chance that it will be downloaded, (tying up all the other upgrades), if not installed without asking (I recall gcc upgrades as typical..., IOW relies on a changed version of gcc... or newly requires QT4...)
__________________
FreeBSD 13-STABLE
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
8.1 -> 8.2: do I need to upgrade my ports first? Broodjegehaktmetmayo FreeBSD Installation and Upgrading 10 19th March 2011 08:26 AM
FreeBSD Complete ports thaw after ports freeze for 7.3 Release J65nko News 0 24th March 2010 11:46 PM
Printer dont take rights mururoa FreeBSD General 3 5th October 2009 12:54 PM
Broken ports in /usr/ports/x11 DNAeon FreeBSD Ports and Packages 3 5th July 2009 08:20 PM
sendmail dont boot dejabu18 FreeBSD Ports and Packages 0 8th October 2008 02:07 PM


All times are GMT. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick