LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 12-11-2006, 10:06 PM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
portupgrade -aPR after cvsup?


Is the above the right command to do a complete system upgrade using the Ports collection using Packages instead of ports whenever available?

I saw the ports manual in the handbook and it seems to be the command to use, but I'd like to make sure,

The manual says use

portupgrade -a

But I'd like to add some additional options as well (and yes, I did the cvsup thing and the pkgdb -F)
 
Old 12-11-2006, 10:20 PM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
I'm a bit confused. What's the difference between upgrading ports and this method?

http://www.freebsd.org/doc/en_US.ISO...makeworld.html
 
Old 12-11-2006, 11:24 PM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
Hm... I saw a thread on BSDForums which explains the difference between the two, but even then I would like somebody to confirm whether I can do both portupgrade and the "make buildworld" etc. etc. method and whether there is a recommended way to keep both packages and the system base updated.
 
Old 12-12-2006, 04:30 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Rebuilding world updates the FreeBSD system only. Software installed from ports isn't updated when you rebuild world. In the same way portupgrade doesn't update the system, only software installed from ports. You should update both FreeBSD and software installed from ports to keep your system uptodate.

Remember the BSDs make a much clearer distinction between the OS and application software, whereas Linux muddies the boundary between the two. So you need to use both methods to keep your entire system uptodate

My preferred way, because I'm lazy, is to wait until portaudit tells me a security problem has been found and addressed for a particular port, I then read /usr/ports/UPDATING just in case, then I manually update the port by
Code:
cd /usr/ports/foo/bar && make all deinstall reinstall clean
Similarly when I get an email from the freebsd-security mailing list I follow the instructions described in the "How to Fix" section

Last edited by phil.d.g; 12-12-2006 at 04:34 AM.
 
Old 12-12-2006, 04:44 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
So if I'm tracking either -STABLE or -CURRENT I need to be subscribed to the mailing list?

Thanks for the explanation. I understand the system now.

Just a doubt: I guess I need to use cvsup twice (one for updating the ports files and the other to update the stable file list)

Also: is it better to keep both the system and ports upgraded or just the ports?
 
Old 12-12-2006, 04:45 AM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by harishankar
But I'd like to add some additional options as well (and yes, I did the cvsup thing and the pkgdb -F)
What exactly do you mean by "additional options"?
 
Old 12-12-2006, 04:47 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
I meant as in portupgrade -aPR instead of just portupgrade -a
 
Old 12-12-2006, 04:48 AM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by harishankar
So if I'm tracking either -STABLE or -CURRENT I need to be subscribed to the mailing list?
You don't need to be, but its a good idea.

Quote:
Originally Posted by harishankar
Just a doubt: I guess I need to use cvsup twice (one for updating the ports files and the other to update the stable file list)
You can combine the two cvsup files, if you really want thusly:
Code:
*default host=cvsup.uk.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_1
*default delete use-rel-suffix
*default compress

src-all


*default release=cvs tag=.

ports-all
Or you can use cvsup for freebsd and portsnap for updating the ports tree
 
Old 12-12-2006, 04:50 AM   #9
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by harishankar
I meant as in portupgrade -aPR instead of just portupgrade -a
ah, OK. I thought you meant defining options for different ports for example WITH_OPENSSL="YES" for apache. In which case you can just put them in /etc/make.conf
 
Old 12-12-2006, 05:30 AM   #10
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
Thanks a lot phil, that cleared a few doubts for me.
 
  


Reply

Tags
difference, system, upgrade


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question about security during cvsup/portupgrade, etc. Geocritter *BSD 9 02-22-2006 09:22 PM
portupgrade will not upgrade anything Rhatlinux *BSD 3 04-30-2005 09:06 PM
Can't install portupgrade proton666 *BSD 2 11-14-2004 06:22 PM
cvsup vs portupgrade satimis *BSD 7 06-09-2004 10:54 AM
portupgrade proton666 *BSD 6 03-25-2004 11:05 PM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration