DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2008
ClaptonOrient ClaptonOrient is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Default Upgrading /usr/ports

Can anyone tell me how to renew my /usr/ports offline ?

portaudit tells me some packages are out-of-date. My FreeBSD box is on dial-up, so ...

- I downloaded ports.tgz from ftp.freebsd.org on another machine.
- mv'ed the old /usr/ports to .../portsOLD
- untarred the ports.tgz

But I get the same old ports ! Worse, when I try to install a port I'm told that particular version's gone.

Thanks for any help.
Reply With Quote
  #2   (View Single Post)  
Old 8th May 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

You need Internet connection for update or upgrade your port tree.
Reply With Quote
  #3   (View Single Post)  
Old 8th May 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Updating the ports tree won't update the applications you have installed. You can use "portmaster" or "portupgrade" to update a specific application.

Maybe I don't understand what you are trying to do exactly. Do you have the exact error messages?
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #4   (View Single Post)  
Old 8th May 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

If you want the latest ports.tgz, you obviously would need to check the dates.
Remember that there only is one ports tree, so it is OK to download the ports.tgz from the latest -current available, regardless of the OS version number. Or from a snapshot.

A ports.tgz from a -release is frozen for that release and will not change.

Also, you still will need an Internet connection, even for pkg_add'ing ports and the needed dependencies.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #5   (View Single Post)  
Old 8th May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

I'd recommend that next time you're dialed-up, run portsnap. It will update your ports tree and will save you tons of bandwidth (and time). Unfortunately the first time you run it, it will probably take a while as many ports have been updated/added/removed since -release.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2008
ClaptonOrient ClaptonOrient is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Default

thanks everyone


in the end, I followed cajun's route: 3 hours on portsnap fetch, but after ... extract I have a squeaky clean ports collection. definitely time for dsl!

(with hindsight, portsnap update might have been quicker ...)

Last edited by ClaptonOrient; 9th May 2008 at 07:27 AM.
Reply With Quote
  #7   (View Single Post)  
Old 9th May 2008
nniemeyer nniemeyer is offline
New User
 
Join Date: May 2008
Posts: 3
Default Portsnap

Portsnap is definitely the way to go. Here is a great PDF to read over if your interested, it may take you a bit to pull over 56k.
http://www.daemonology.net/papers/bsdcan07.pdf

Also, the general guideline from my understanding is:

First Run of Portsnap
portsnap fetch && portsnap extract

Updating the Ports Tree thereafter
portsnap fetch && portsnap update


Reply With Quote
  #8   (View Single Post)  
Old 9th May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

portsnap update is only after you have run portsnap fetch once. The first fetch you run downloads everything which is why it took a while. Future "fetch"'s should go much faster as you're only downloading what has changed since you last ran fetch.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #9   (View Single Post)  
Old 11th May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

portsnap fetch && portsnap extract can be reduced to portsnap fetch extract, and portsnap fetch && portsnap update can be reduced to portsnap fetch update.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 12th May 2008
schrodinger's Avatar
schrodinger schrodinger is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ireland
Posts: 69
Default

If you are using dial up to upgrade your ports let me suggest something.

Install /usr/ports/ports-mgmt/portupgrade and after running portsnap run

portupgrade -FrRa

This should fetch all the installation packages that you need to fully upgrade all the out of date ports. When they've finished downloading, I'd disconnect your dial-up and reconnect again when it's over
__________________
It was a new day yesterday, but it's an old day now.
Reply With Quote
Old 12th May 2008
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

For a dial-up user it would be easier to install portmaster because there is no plethora of dependencies to build ;-)
__________________
use UNIX or die :-)

Last edited by Oliver_H; 12th May 2008 at 09:08 AM.
Reply With Quote
Old 12th May 2008
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

make fetch-recursive
make fetch-url-list
wget -c -nd [some file]
..........................
I use those all the time when on dialup (once the ports
tree is upto date; another trick:
csup -g -L 2 -i ports/[CATEGORY/[PORT your-ports-supfile
runs real quickly if you know a port has an update (freshports org)
.........................
I have several ports-supfile (supfile-port.a supfile-port.b etc)
in /usr/ports so that if one update isnt at server A yet, it might
be on server B.
.....................

Last edited by jb_daefo; 12th May 2008 at 10:17 AM. Reason: space between L and 2
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
Upgrading CPU Calderon FreeBSD General 3 29th March 2009 06:22 PM
Upgrading from KDE 3.5 to KDE 4.1 ebzzry FreeBSD Ports and Packages 15 28th January 2009 05:03 AM
upgrading/new hardware from 4.0 knasbas OpenBSD Installation and Upgrading 1 7th January 2009 02:55 AM
Upgrading and rebuilding ALL packages/ports chill FreeBSD Ports and Packages 8 16th June 2008 04:55 AM
cvsup upgrading/updating ports tree Ofloo FreeBSD Ports and Packages 6 25th May 2008 01:32 AM


All times are GMT. The time now is 03:51 PM.


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