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 22nd September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default Auto-YES?

I just ran portupgrade -rRPy in the
# cd /usr/ports/x11/kde4

directory


It keeps hanging on these annoying blue screens which need user intervention and input...

I keep selecting the DEFAULT compile time options...

because I doubt me being the stupid user I am should (break) mess with anything that isn't a default configuration option...

anywho, how do I tell my machine to simply select the defaults?

while using the portupgrade "if package found use it" feature that is -P! (if this is my best move)

It's not that I don't like having those options to mess with compile time stuff...it's just that it shouldn't take me two days because of hangups to install KDE4! lol
Reply With Quote
  #2   (View Single Post)  
Old 22nd September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

set 'BATCH=yes' as an environment variable.

man portupgrade:

--batch Run an upgrading process in a batch mode (with
BATCH=yes).

Last edited by DutchDaemon; 22nd September 2008 at 01:52 PM.
Reply With Quote
  #3   (View Single Post)  
Old 22nd September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default

so the command would be

portupgrade -rRPy --batch Run "BATCH=yes"

how do I set an environmental variable in portupgrade?
Reply With Quote
  #4   (View Single Post)  
Old 22nd September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Either

portupgrade -rRPy --batch

or
(bash example)

export BATCH=yes
portupgrade -rRPy
Reply With Quote
  #5   (View Single Post)  
Old 22nd September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default

so JUST portupgrade -rRPy --batch will work

no export command to the shell??
Reply With Quote
  #6   (View Single Post)  
Old 22nd September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

The easists way is to just pass the --batch switch to portupgrade, if that is the program you use for doing everything.


Set the BATCH environment variable if you just want everything that understands it, to obey. The handbook and wikipedia give good overviews of environment variables. Reading the documentation for ports, also explains $BATCH, which basically means, don't ask me questions !!!


The handbooks page noted above also gives examples of setting the environment variable in both Bourne and C style shells --- check your shells manual page for details.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 24th September 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

You can also use portupgrade's -c flag to run all the blue screens BEFORE the rest of the compiles, or use ports-mgmt/portmaster which imho is way better than portupgrade and assumes you want to run the configs before the compiles, so you don't come back hours later to a stopped compile.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #8   (View Single Post)  
Old 24th September 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

portupgrade -m BATCH=yes <portname> also works
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
auto restart an app within wine hamba General software and network 3 25th November 2008 11:56 AM
Auto backup cwhitmore FreeBSD General 6 19th August 2008 05:17 PM
DSL auto login Weaseal FreeBSD General 3 17th June 2008 03:26 PM
Customizeable FTP auto-fetch script (OpenBSD snapshot download as example) J65nko Guides 2 1st June 2008 03:29 AM


All times are GMT. The time now is 03:02 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