a47b Updating with freebsd-update and portsnap - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2012, 17:56
Itproman's Avatar
Itproman Itproman is offline
Junior Member
 
Join Date: Dec 2011
Location: Hastings,Ontario,Canada
Posts: 23
Thanks: 33
Thanked 1 Time in 1 Post
Default Updating with freebsd-update and portsnap

Speaking of updating, this is a little off topic, but is it ok after installing FreeBSD 9.0, Gnome2, Xorg, Firefox, Samba 3.6, to do a # freebsd-update fetch install and # portsnap fetch extract, or will that mess up the system?

Last edited by wblock@; November 5th, 2012 at 00:01. Reason: please keep threads to one topic. see http://forums.freebsd.org/showthread.php?t=8816 for use of cmd tags
Reply With Quote
  #2  
Old November 5th, 2012, 01:44
Trihexagonal's Avatar
Trihexagonal Trihexagonal is offline
Member
 
Join Date: Mar 2012
Posts: 156
Thanks: 19
Thanked 18 Times in 12 Posts
Default

You only run

# portsnap fetch extract

to initially populate your ports tree. To update it anytime thereafter run

# portsnap fetch update

It won't hurt anything and you want to keep it up to date as you install programs. I run

# freebsd-update fetch
# freebsd-update install


after I've installed everything, but am already up to date at FreeBSD 9.0-RELEASE-p3 if I run it now. As to whether or not it could cause a problem there is at least one thread addressing problems that it has caused lately , but it's never caused one for me.

On the subject of updating ports, just in case you weren't aware of it, it's essential to install /ports-mgmt/portaudit and to run

# portaudit -Fda

on a daily basis to stay current on any vulnerabilities, then use /ports-mgmt/portupgrade to upgrade any ports that it lists as having a vulnerability to the newest version, making sure to update your ports tree before you do so.

Last edited by Trihexagonal; November 5th, 2012 at 05:23.
Reply With Quote
  #3  
Old November 5th, 2012, 14:10
Sfynx Sfynx is offline
Member
 
Join Date: Nov 2008
Location: Rotterdam, The Netherlands
Posts: 114
Thanks: 0
Thanked 13 Times in 10 Posts
Default

Updating FreeBSD using freebsd-update should not mess up existing userland software when you stay within the same FreeBSD major version (e.g. 9.0 -> 9.1 will be fine, but 8.3 -> 9.0 will require you to rebuild all ports to fix library version bumps).
In case you do need to do extra steps after an upgrade, freebsd-update will tell you about it.

With security updates within a release branch a single # freebsd-update fetch install will do the trick (+ a reboot in case /boot/kernel/kernel has been updated).
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
9.0 release - freebsd-update and updating src-all sigo Installing & Upgrading 3 July 16th, 2012 10:27
stuck in portsnap fetch update panjiesw Installation and Maintenance of FreeBSD Ports or Packages 0 November 13th, 2011 14:46
FreeBSD update, portsnap, UPDATING all in one derekschrock Installing & Upgrading 3 August 19th, 2011 00:02
[Solved] Portsnap not updating amule port Psychokiller Installation and Maintenance of FreeBSD Ports or Packages 1 September 22nd, 2010 13:14
[Solved] FreeBSD 8.1 (amd64) update confusing after portsnap fetch extract ahavatar Installation and Maintenance of FreeBSD Ports or Packages 10 September 8th, 2010 14:40


All times are GMT +1. The time now is 13:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0