Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st March 2018
vns3 vns3 is offline
Port Guard
Join Date: Sep 2017
Posts: 14
Default Updating the ports tree for a new version of OpenBSD

After upgrading the system to a new version of OpenBSD, do most people delete the old ports tree and checkout a new one?

Supposing I have the 6.2 tree currently. Can I just update the current tree with a new tag like:
cvs -q up -Pd -rOPENBSD_6_3
Or do I need to check out the new version first?

What is the most bandwidth friendly way to handle this?
Reply With Quote
  #2   (View Single Post)  
Old 1st April 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472

Does this answer your question ?
Updating an existing tree
If you are following -current:

$ cd /usr/src
$ cvs -q up -Pd -A

If you are following the 6.2 -stable branch:

$ cd /usr/src
$ cvs -q up -Pd -rOPENBSD_6_2

Every time you run this, cvs(1) synchronizes your /usr/src tree. It does not destroy any of your local changes; rather it attempts to merge changes in.
Seems clear enough to me :
""If you are following the 6.2 -stable branch:"" Or what ever branch you are following.IE: "If your following current"

For a lot of details on OpenBsd Ports

The best place to start though , is here: https://www.openbsd.org/faq/ports/ports.html
The ports tree is meant for advanced users. Everyone is encouraged to use the pre-compiled binary packages. If you have questions about the ports tree, it is assumed that you have read the manual pages and this FAQ, and that you are able to work with it.
Also there is a lot of info in :“man cvs” and “man ports” if you’re interested in learning more.
My best friends are parrots
Reply With Quote
  #3   (View Single Post)  
Old 1st April 2018
vns3 vns3 is offline
Port Guard
Join Date: Sep 2017
Posts: 14

Thank you for responding, your answer inspired me to do a little more poking around and now I think I understand.

I can just update the ports tree using the branch tag I am moving to.

In case others stumble on this post, this link explains it a little more clearly, under the "Accessing Branches" header:


Accessing branches

You can retrieve a branch in one of two ways: by checking it out fresh from the repository, or by switching an existing working copy over to the branch.

To check out a branch from the repository, invoke `checkout' with the `-r' flag, followed by the tag name of the branch (see section Creating a branch):

$ cvs checkout -r rel-1-0-patches tc

Or, if you already have a working copy, you can switch it to a given branch with `update -r':

$ cvs update -r rel-1-0-patches tc

or equivalently:

$ cd tc
$ cvs update -r rel-1-0-patches

It does not matter if the working copy was originally on the main trunk or on some other branch -- the above command will switch it to the named branch. And similarly to a regular `update' command, `update -r' merges any changes you have made, notifying you of conflicts where they occur.

Once you have a working copy tied to a particular branch, it remains there until you tell it otherwise. This means that changes checked in from the working copy will add new revisions on that branch, while leaving the main trunk and other branches unaffected.

To find out what branch a working copy is on, you can use the `status' command. In its output, look for the field named `Sticky tag' (see section Sticky tags) -- that's CVS's way of telling you the branch, if any, of the current working files:
Reply With Quote

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
Relation between pkgsrc and OpenBSD's ports tree e1-531g OpenBSD Packages and Ports 4 13th December 2015 10:29 PM
OpenBSD ports tree locked ocicat News 1 19th July 2012 10:48 PM
Write failed: Broken pipe .. while updating ports tree daemonfowl OpenBSD Packages and Ports 5 28th June 2012 12:58 AM
OpenBSD OpenBSD ports tree soft lock J65nko News 0 14th January 2010 01:06 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 08:49 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick