DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default How to know if the system is in sync

Today i upgraded to snapshot OpenBSD 5.0 using the CD and used CVS to sync my system.I think the upgarde was succesfull since

Code:
 sysctl -n kern.version 
OpenBSD 5.0 (GENERIC.MP) #59: Wed Aug 17 10:19:44 MDT 2011
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
To sync my system i used as shown on the FAQ.
Code:
cvs checkout -P src
My question is how can i check that the synch was succesfull?
Reply With Quote
  #2   (View Single Post)  
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by sepuku View Post
To sync my system i used as shown on the FAQ.
Code:
cvs checkout -P src
If your goal was to update an existing source, the command above does not do this; it downloads a new tree.

If the source tree has already been downloaded, the correct commands to be used to update are:

# cd /usr/src
# cvs -d$CVSROOT up -Pd

Likewise, you have not mentioned anything about X or ports.

Reviewing Section 5.3.3 is in order.
Reply With Quote
  #3   (View Single Post)  
Old 4th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
Likewise, you have not mentioned anything about X or ports.

Reviewing Section 5.3.3 is in order.
I'm a little confused; i have read this section and the -current part but i still cannot understand what to do about X and the ports.And even for the src i used wrong command until you corrected me.It might be my idea but it really is messy to find what you want sometimes in the FAQ.
Reply With Quote
  #4   (View Single Post)  
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by sepuku View Post
It might be my idea but it really is messy to find what you want sometimes in the FAQ.
You are not the first to make this observation.

I can only speak for myself, & the way I approach the FAQ is pro-active, not reactive. If I have a problem which needs to be researched, having a baseline understanding of "what" is addressed with "where" is better than coming at the documentation with no prior experience at all. Yes, I understand this doesn't necessarily help newcomers, but my recommendation to you would be to approach the FAQ as a book -- read it from beginning to end at least once. Sure, it may not all make sense or be pertinent to your immediate needs the first time, but with repeated searching, you will find some clarity. Despite its faults, the FAQ covers a lot of ground in only sixteen sections. I can't say that other non-BSD projects do better.
Reply With Quote
  #5   (View Single Post)  
Old 4th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
Despite its faults, the FAQ covers a lot of ground in only sixteen sections. I can't say that other non-BSD projects do better.
Totally agree with that,the non-BSD projects i've seen so far had more parts and as a new user at that time were even more difficult to find out a solution to a problem.

About the problem now;

First of all people sorry i confused you with my post but i find confused myself too.I had no intention to confuse you bad i'm kinda lost at the moment.

@ocicat,bsdfan


I did cvs checkout to get the source tree in synch with the snapshot i upgraded earlier using a cd.And i'm trying to to do the same about ports and xenocara and i still can't find what to do in the FAQ. If i'm reading correctly all these hours.


Quote:
Originally Posted by BSDfan666 View Post
you do realize that you have to compile it if you want to stay updated that way, right?
Nope,i had not realized such thing. :/
Reply With Quote
  #6   (View Single Post)  
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by sepuku View Post
I did cvs checkout to get the source tree in synch with the snapshot i upgraded earlier using a cd.
Actually, you haven't.
  • Why are you compiling at all? Why is a snapshot not sufficient?
  • If you want the source to be synchronized with the snapshot installed, the chance to have done so has passed. Source for the August 17 snapshot was synchronized at the time the snapshot was compiled. Since then, other developers have added changes daily.
If you want source merely for the sake of study, downloading source today will not be identical to the snapshot, but it will be close.

While you can continue to compile your own system, I would recommend spending more time with the documentation & asking questions first. Attempting to compile while confused & unclear of the process is a recipe for disaster.
Reply With Quote
  #7   (View Single Post)  
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by ocicat View Post
Likewise, you have not mentioned anything about X or ports.
I raise the question only for thoroughness. Since you haven't stated why you are wanting to "synch" source, I assume you are wanting it available for study reasons as most people don't compile the kernel, userland, or ports. Snapshots & packages are sufficient in many cases.

Installing the ports tree is also good for searching -- especially when the OpenPorts third-party site has been offline for nearly a week now.
Reply With Quote
  #8   (View Single Post)  
Old 4th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

You have installed the August 17 snapshot for i386. If you installed the X filesets at the same time, you have an X Windows system that is currently in sync with that snapshot.

As a convenience
, from time to time the Project builds "snapshot packages" of ports for the major architectures. These are located at most mirrors in /pub/OpenBSD/snapshots/packages/<arch>/. They will never be exactly in-synch with a snapshot, nor with -current (which is always beyond the latest snapshot.) Some rebuilding of individual ports by -current users is to be expected, from time to time.

This is about binary synchronicity only, and has nothing to do with source code. -current source code changes constantly, except for brief windows twice per year as -releases are prepared. That window has already passed for 5.0-release, -current is beyond that point.

The source code is stored in three separate CVS repositories:

"src" -- the kernel and userland sources
"xenocara" -- the OpenBSD packaging of the X.Org source code
"ports" -- the ports tree, scaffolding for ported third party applications.

If you are a -current user, you have two choices:

Install a snapshot, and upgrade to a new snapshot whenever you feel the need.

Or, install a snapshot, then build -current from source.

For any source code building, keep your source repositories in sync with each other. That means, updated with the same tag (such as for -stable), or, if -current, updated from CVS within an hour or two of each other.
Reply With Quote
  #9   (View Single Post)  
Old 4th September 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Just out of curiosity, when you used cvs to checkout the latest source tree.. you do realize that you have to compile it if you want to stay updated that way, right?

Doing it that way is technically not supported, upgrading to new snapshots is the preferred method.. keep using the snapshot you installed until another is available.
Reply With Quote
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
Just out of curiosity, when you used cvs to checkout the latest source tree.. you do realize that you have to compile it if you want to stay updated that way, right?
This raises the question which is confusing all of us, sepuku. Why are you wanting source?
Reply With Quote
Old 4th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
Doing it that way is technically not supported, upgrading to new snapshots is the preferred method.. keep using the snapshot you installed until another is available.
If sepuku installed the August 17 snapshot build, & downloaded source (even if done today...), building is supported according to the table in Section 5.3.2. The August 17 snapshots (for i386 & amd64...) are the latest made available for these platforms.
Reply With Quote
Old 4th September 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

If you're just looking to run bleeding edge on some port, installing a snapshot is usually sufficient. Really, you don't need /usr/{src,ports,xenocara} unless you're *compiling* -CURRENT, as has already been pointed out.

To get the latest xxxterm pkg, all you have to do is upgrade to the latest snapshot, then point your PKG_PATH to pub/OpenBSD/snapshots/packages/`machine`/ on your favorite mirror, and pkg_add -ui. The only way to run more bleeding edge than that is to use uncommitted port updates that are published on ports@ (which requires /usr/ports to be installed, but not src or xenocara).
__________________
Linux Admin by Profession. OpenBSD user by choice.
Reply With Quote
Old 5th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by rocket357 View Post
If you're just looking to run bleeding edge on some port, installing a snapshot is usually sufficient. Really, you don't need /usr/{src,ports,xenocara} unless you're *compiling* -CURRENT, as has already been pointed out.

To get the latest xxxterm pkg, all you have to do is upgrade to the latest snapshot, then point your PKG_PATH to pub/OpenBSD/snapshots/packages/`machine`/ on your favorite mirror, and pkg_add -ui.
Ahhhh the part i never thought was changing the pkg_path.That's why pkg_add -ui would not work for me so far. :/
Reply With Quote
Old 5th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

Just to help clarify the use of the the ports tree in OpenBSD, Sepuku.

The ports tree is a collection of compilation and build instructions to create packages for each 3rd party application. It is not the source code for each application; instead, the tree has links to where the source code is stored. Packages are the binary code built when using the ports tree.

The term "ports" may be used to refer to installed packages, since the ports tree is used to create them.
Reply With Quote
Old 5th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by sepuku
i get Can't install "package" because of libraries for a lot of packages such as python.
There could be many reasons, but ... since we haven't seen the messages, we cannot tell you why this is occurring.

It is possible that you are pointing to the correct package path and there is a library out-of-sync; it happens from time to time as changes are made in -current to /usr/lib. But it is more likely that you were pointing to the wrong path -- attempting to install 4.9-release packages on a clean -current will fail due to the many library changes that have occurred since those packages were built in February.

But that is just a guess -- we have not seen the error messages.

If you want us to see the error messages, you'll find a tool like script(1) to be very helpful. In addition, filtering the output of script (usually the "typescript" file) through col(1) using the -b option will improve its readability.
Reply With Quote
Old 6th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

You are running a -current kernel, userland, and X. But you have not finished your upgrade. You must upgrade your architectural components to -current; they are still at 4.9-stable.

There have been many changes to OpenBSD's operational controls since 4.9. In particular, the rc(8) system has been significantly revised, the rc.d subsystem is now used by default for daemon management, both built-in and third party packages. The major changes you have missed are listed in the Following -current FAQ.

The sysmerge(8) program will help you merge the changes in /etc and /var that you have missed. It will automatically merge what it can, and ask you for guidance where needed.

If you don't use it, you will have to make these changes manually.

If you don't make these changes, either manually or with sysmerge, you are not running -current.

---------

Edited to add: using the 4.9-release version of the ramdisk kernel to install or upgrade to -current is neither supported nor advised -- the installation scripts change over time; and an important change may have been missed.

You have the ramdisk kernel installed on hard drive, by the way. Booting the -release CD was not necessary. It is in your root directory -- /bsd.rd.
Reply With Quote
Old 6th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

Sepuku:

The Following -current FAQ is mandatory for those of us who keep -current by building from source, and highly recommended for those of us who upgrade from snapshot to snapshot. It lists major changes to /etc and /var, and other key changes admins should be aware of to keep -current, and extra steps that might be needed to maintain -current from source.

You will find a link to it in the sidebar on the left side of the main FAQ page.
Reply With Quote
Old 6th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by jggimi View Post
The Following -current FAQ is mandatory for those of us who keep -current by building from source, and highly recommended for those of us who upgrade from snapshot to snapshot.
There is another option sepuku can take if it is necessary to run -current.

Back up whatever personal files have been added to your 4.9-stable system, & simply install (not upgrade...) a recent snapshot. Running sysmerge(8) is only required when upgrading.

FWIW.
Reply With Quote
Old 8th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
There is another option sepuku can take if it is necessary to run -current.

Back up whatever personal files have been added to your 4.9-stable system, & simply install (not upgrade...) a recent snapshot. Running sysmerge(8) is only required when upgrading.

I would have already done that but i want to upgrade i order to learn how it's done.Sooner or later i must learn how to do it.But since i made some wrong choices so far and maybe some changes too that might affect the system in the future,i might reinstall the -stable and then try to upgrade it.It's a good chance to dual boot with a linux since i need it too.
Reply With Quote
Reply

Tags
system sync, update, upgrade

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
Create MS/XP file system so it will be recognized on a XP system. FBSD Guides 0 1st May 2010 06:49 AM
Best Way to sync web sites roundkat OpenBSD General 2 14th September 2008 01:48 PM
How to sync files over ftp graudeejs FreeBSD General 4 4th August 2008 10:18 PM
Best fit BSD for legacy system EvilGardenGnome Off-Topic 14 12th June 2008 02:03 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM


All times are GMT. The time now is 12:39 PM.


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