Re: portupgrade + make_ports.sh: Fixing everything in one go

2005-09-25 Thread Chris

Micah wrote:



Fafa Hafiz Krantz wrote:


Hello!

I thought I'd ask you all if my make_ports.sh is as convenient as I think
it is, or if it's totally off track or what not:

# cat make_ports.sh

cvsup -g -L 2 /etc/cvsupfile
cd /usr/ports
make fetchindex
portupgrade -raP
portsdb -uU


Not the answer to your main question but you only need portsdb -u after 
you use make fetchindex. -U rebuilds the index which takes a _long_ time 
on a slow computer and is not necessary if you've just fetched it.


Also I'm not clear if one needs the ports tree and INDEX up to date to 
upgrade using packages, but the portsdb command should be before the 
portupgrade command (and after make fetchindex).


A good read of man pages and the handbook helped me.


pkgdb -F
portsclean -CDLP


Which version of FreeBSD are you running?  Seems that pre-compiled 
packages are only available for the latest release (5.4 right now).


You can get packages which are about as current as the ports by setting 
PACKAGESITE. Eg in csh


setenv PACKAGESITE 
ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/packages/Latest/


then pkg_add -r whatever

works pretty well for me (it needs the trailing forward slash). I've 
just discovered this so am pretty happy :)


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portupgrade + make_ports.sh: Fixing everything in one go

2005-09-24 Thread Fafa Hafiz Krantz

Hello!

I thought I'd ask you all if my make_ports.sh is as convenient as I think
it is, or if it's totally off track or what not:

# cat make_ports.sh

cvsup -g -L 2 /etc/cvsupfile
cd /usr/ports
make fetchindex
portupgrade -raP
portsdb -uU
pkgdb -F
portsclean -CDLP

As for portupgrade -raP I want it to only use packages since my system
is very slow, and recompiling all my ports is not an option. This command,
however, doesn't seem to work at all.

I get a lot of:

** The command returned a non-zero exit status: 1
** Failed to fetch ...

And it ends up compiling my ports instead ...

I truly hope anyone can help.
Thanks!

--
Fafa Hafiz Krantz
  Research Designer @ http://www.bleed.com


-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade + make_ports.sh: Fixing everything in one go

2005-09-24 Thread Micah



Fafa Hafiz Krantz wrote:

Hello!

I thought I'd ask you all if my make_ports.sh is as convenient as I think
it is, or if it's totally off track or what not:

# cat make_ports.sh

cvsup -g -L 2 /etc/cvsupfile
cd /usr/ports
make fetchindex
portupgrade -raP
portsdb -uU
pkgdb -F
portsclean -CDLP


Personally I broke my updating script into two stages.  One updates the 
ports tree and generates a report on what's out of date (via 
port_version).  The second stage runs a script that was generated by the 
first stage that actually does the portupgrade.  This gives me a chance 
to review the updates and postpone any major ones (openoffice, KDE) 
until it's convenient.



As for portupgrade -raP I want it to only use packages since my system
is very slow, and recompiling all my ports is not an option. This command,
however, doesn't seem to work at all.

I get a lot of:

** The command returned a non-zero exit status: 1
** Failed to fetch ...

And it ends up compiling my ports instead ...

I truly hope anyone can help.
Thanks!


Which version of FreeBSD are you running?  Seems that pre-compiled 
packages are only available for the latest release (5.4 right now).


Later,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade + make_ports.sh: Fixing everything in one go

2005-09-24 Thread martinko

Fafa Hafiz Krantz wrote:

Hello!

I thought I'd ask you all if my make_ports.sh is as convenient as I think
it is, or if it's totally off track or what not:

# cat make_ports.sh

cvsup -g -L 2 /etc/cvsupfile
cd /usr/ports
make fetchindex
portupgrade -raP
portsdb -uU
pkgdb -F
portsclean -CDLP

As for portupgrade -raP I want it to only use packages since my system
is very slow, and recompiling all my ports is not an option. This command,
however, doesn't seem to work at all.

I get a lot of:

** The command returned a non-zero exit status: 1
** Failed to fetch ...

And it ends up compiling my ports instead ...

I truly hope anyone can help.
Thanks!

--
Fafa Hafiz Krantz
  Research Designer @ http://www.bleed.com




fafa,

try to use 'portupgrade -raPP'

martin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]