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 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default Questions, Ports / current|stable

I was told to,

A. not worry about ports, it's a waste of time and slow.

B. not to go to -current/-stable and instead just install patches manually..


im kind of confused, i've used FBSD for almost 7 months (2 years ago) and gentoo for a little over a year (until this past november) and i always liked ports and thought it was a good addition.

can anyone give me some input, also.. i can't find specifically in the faq about updating from generic(release?) to -stable / -current.

any help?
Reply With Quote
  #2   (View Single Post)  
Old 14th April 2009
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by ax0 View Post
I was told to,

A. not worry about ports, it's a waste of time and slow.

B. not to go to -current/-stable and instead just install patches manually..


im kind of confused, i've used FBSD for almost 7 months (2 years ago) and gentoo for a little over a year (until this past november) and i always liked ports and thought it was a good addition.

can anyone give me some input, also.. i can't find specifically in the faq about updating from generic(release?) to -stable / -current.

any help?
FreeBSD and Gentoo are moving targets. For all practical purposes
those are rolling releases operating systems. In practical sense
they work only on i386 and amd64 and they are optimized for speed.
In both cases ports and portages have many knobs that you can turn
on or off to optimize packet to your specific purpose.

OpenBSD is security appliance. It is extremely portable and able to work across the range of different architectures. The coolest version of OpenBSD
IMHO is sparc64. It has cascade release cycle (six months like CentOS for instance).
Userland is complete unlike FreeBSD for instance and it is configured to be as safe as possible out of box.
Ports are add-ons. They are not carefully audited for security and they usually bring whole slue of security issues to the OpenBSD installation.
The ultimate goal of OpenBSD packaging system is reproducibility so that
system stays as safe as possible. Ports are compiled with very conservative options and there are only minor things that can be tuned.
Those are called flavors. Allowing them to be tweaked like on FreeBSD will completely undermine security.

One could argue that compiling things from source using ports on OpenBSD is safer than installing binary tarballs. That is fine. But unless
you back port new versions of the software or port it yourself the ports will compile on identical way for six months. There is no way that you can
use stable OpenBSD as a moving target. If you want that follow current.
Current is IMHO as stable as FreeBSD stable for about 3 months during the
release cycle. However usually in May, June or November and December things might break as the developers are making major changes to OpenBSD.

Last edited by Oko; 14th April 2009 at 03:05 AM.
Reply With Quote
  #3   (View Single Post)  
Old 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

Quote:
Originally Posted by Oko View Post
FreeBSD and Gentoo are moving targets. For all practical purposes
those are rolling releases operating systems. In practical sense
they work only on i386 and amd64 and they are optimized for speed.
In both cases ports and portages have many knobs that you can turn
on or off to optimize packet to your specific purpose.

OpenBSD is security appliance. It is extremely portable and able to work across the range of different architectures. The best architecture IMHO is sparc64.
It has cascade release cycle (six months like CentOS for instance).
Userland is complete unlike FreeBSD for instance and configure to be as safe as possible out of box.
Ports are add-ons. They are not carefully audited for security and then usually bring whole slue of security issues to the OpenBSD installation.
The ultimate goal of OpenBSD packaging system is reproducibility so that
system stays as safe as possible. Ports are compiled with very conservative options and there are only minor things that can be tuned.
Those are called flavors.

One could argue that compiling things from source using ports on OpenBSD is safer than installing binary tarballs. That is fine. But unless
you back port new versions of the software or port it yourself the ports will compile on identical way for six months. There is no way that you can
use stable OpenBSD as a moving target. If you want that follow current.
Current is IMHO as stable as FreeBSD stable for about 3 months during the
release cycle. However usually in May, June or November and December things might brake as the developers are making major changes to OpenBSD.
can anyone give me some input, also.. i can't find specifically in the faq about updating from generic(release?) to -stable / -current.

any help?



thanks for all the info. hopefully you or someone else can give me some info on updating to -curent branch..
Reply With Quote
  #4   (View Single Post)  
Old 14th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ax0 View Post
I was told to...
If you were aiming to post in one of the FreeBSD subforae, you ended up posting in one of the OpenBSD subforums instead. If these are questions specific for FreeBSD, please repost in the correct forum.
Quote:
not worry about ports, it's a waste of time and slow.
This is a subjective statement. Some may choose to patch because they do not want to go through the effort of compilation. On the other hand, going with -current means that the latest functionality committed to the source tree is available for testing/usage.
Reply With Quote
  #5   (View Single Post)  
Old 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

Quote:
Originally Posted by ocicat View Post
If you were aiming to post in one of the FreeBSD subforae, you ended up posting in one of the OpenBSD subforums instead. If these are questions specific for FreeBSD, please repost in the correct forum.

This is a subjective statement. Some may choose to patch because they do not want to go through the effort of compilation. On the other hand, going with -current means that the latest functionality committed to the source tree is available for testing/usage.

Nope, I'm using OpenBSD.
Reply With Quote
  #6   (View Single Post)  
Old 14th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ax0 View Post
can anyone give me some input, also.. i can't find specifically in the faq about updating from generic(release?) to -stable / -current.
If you are asking about OpenBSD, study Section 5.1 of the official FAQ:

http://openbsd.org/faq/faq5.html#Flavors

As for whether ports should be compiled, or simply installed, the project advocated simple installation unless there are specific reasons for compilation. More information the packages/ports system can be found in Section 15 of the FAQ:

http://openbsd.org/faq/faq15.html

Last edited by ocicat; 14th April 2009 at 03:18 AM.
Reply With Quote
  #7   (View Single Post)  
Old 14th April 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

If you're asking how to update ports/packages in OpenBSD, there isn't an official way to do that anymore.. the -STABLE ports tree was removed and is no longer maintained.

Lack of man power led to this.. it's unfortunate, but that's the state of things.

If you're asking how to apply errata patches to the base system, this is documented on the FAQ.

http://www.openbsd.org/faq/faq5.html
http://www.openbsd.org/errata44.html
Reply With Quote
  #8   (View Single Post)  
Old 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

maybe it wasn't gods will for me to update from release - current or even stable.
Reply With Quote
  #9   (View Single Post)  
Old 14th April 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't see what the will of some religious deity has to do with the upgrade process of OpenBSD.

-STABLE releases aren't made available in binary form, so you cannot directly upgrade from -RELEASE to -STABLE.. you must either apply errata patches to the source code of an OpenBSD release, or use cvs(1) to update your copy of the source to the -STABLE tree and recompile.

The same goes for -CURRENT, you cannot obtain that in binary form... but you can get something close to it by using snapshot releases that are created periodically for testing and from there you can compile and install -CURRENT, check a local FTP/HTTP mirror for more details.

As has been said, all this terminology and instructions for achieving what you want are on the FAQ.. reading it throughly is a simple requirement of using and understanding this operating system efficiently.
Reply With Quote
Old 14th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ax0 View Post
maybe it wasn't gods will for me to update from release - current or even stable.
As per the table presented in Section 5.3.2:

http://openbsd.org/faq/faq5.html#Bld

...you have two choice when it comes to moving from -release to -current:If you go with the compilation route, you need to be very familiar with the Section 5.3.3 onward.

As for -stable, along with following Section 5 of the FAQ, you should study the following:

http://openbsd.org/stable.html
Reply With Quote
Old 14th April 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Let me put in my two pence (cents, centavos, kopecks ... whatever).

  • OpenBSD has a steady release cycle -- two releases per year. These days, this is on or about May 1 and November 1.
  • Releases are very well tested, by large numbers of users. The cycle is approximately 4 months of development and 2 months of testing.
  • Releases get patches. These patches are for security, availability, or stability. All patches are added to the -stable branch. If the patch is deemed noteworthy enough, it is added to the errata web page.
  • The -current branch is always available. It is the development branch and is a constantly moving target, except during the -release window.
  • The user community is encouraged to keep their systems up-to-date. This means, users run -release+errata, -stable, or -current. Running -release, without any patches and connected to a network, is strongly discouraged.
The OS is source maintained. If you run -release+errata or -stable, you are updating source code (manually or automatically) and rebuilding some or all of the OS, respectively. Users who run -current can avoid building the OS, by installing a snapshot of -current, and upgrading from snapshot to snapshot on a frequent basis. However, they may still need to do some port building, when upgrading packages.

There is no need to build from ports, unless necessary, as has been mentioned already. This is because a port, on OpenBSD, builds the package, then installs it. A port you build and a package you install will be contain completely equivalent binary files.

Why would a -current user need to build from ports? Because ... ports (and packages) must be kept in sync with the OS. This is not the case with FreeBSD, but is a drop-dead requirement for OpenBSD. This is primarily due to library dependencies. One can usually upgrade the OS and leave the existing packages installed, because an upgrade will not delete any existing libraries. But when upgrading/installing packages, the package must have been built with the same OS.

Snapshots happen at various times -- quite frequently for the major architectures. And the project makes "snapshot packages" available for the major architectures, too ... but much less frequently. Since there is no guarantee that any snapshot (or, of course, a -current system the user builds themselves) will be in sync with snapshot packages, some manual building of ports may be expected by the snapshot user.

I know a number of -current users who build all their own packages. A friend of mine mentioned he can get the entire i386 package set built in only 55 hours.

-----------

Since there are no library changes between -release and -stable, one can mix and match -release and -stable packages/ports. Unfortunately, there are no longer any -stable packages, and very few -stable ports, though there is an unofficial repository at openbsd.rutgers.edu.
Reply With Quote
Old 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

did i do something wrong?

i ran

cd /usr
cvs -d$CVSROOT checkout -rOPENBSD_4_4 -P src

it ended with a bunch of weird characters and such and i had to exit the terminal and reopen it. then i cd'd into /usr/src and ran cvs -d$CVSROOT up -rOPENBSD_4_4 -Pd
but it came with like.. cvs unknown command -- 0 or something.

?
Reply With Quote
Old 14th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ax0 View Post
cvs -d$CVSROOT checkout -rOPENBSD_4_4 -P src
What is the output of the following command?

$ echo $CVSROOT
Reply With Quote
Old 14th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

i should i should have remembered to export it again... it's in ~/.profile and i guess i should have took the few seconds to trouble shoot it correctly. sorry.
Reply With Quote
Old 14th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Also note that the cvs command should be run as root:

http://openbsd.org/faq/faq5.html#BldGetSrc
Reply With Quote
Old 14th April 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default wsrc group?

Quote:
Originally Posted by ocicat View Post
Also note that the cvs command should be run as root:

http://openbsd.org/faq/faq5.html#BldGetSrc
The FAQ shows #, but ... if the user is a member of wsrc, then they have write access to /usr/src. My build system's general admin account is a member of wheel, operator, and wsrc.
Reply With Quote
Old 15th April 2009
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by jggimi View Post
The FAQ shows #, but ... if the user is a member of wsrc, then they have write access to /usr/src. My build system's general admin account is a member of wheel, operator, and wsrc.
+1
Reply With Quote
Old 15th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by jggimi View Post
The FAQ shows #, but ... if the user is a member of wsrc, then they have write access to /usr/src.
While we are on this subject, it should be clarified that while the kernel can be built with a non-root account which is a member of the wsrc group, building the userland still needs to be done as root.

An obvious consequence of building the kernel with a wsrc group account is that the log in message can be customized merely by building with an account which is a member of wsrc. ie.
Code:
OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
    joebob@hayseed.com:/usr/src/sys/arch/i386/compile/GENERIC
In this case, the joebob account can be used to build the kernel only if joebob is a member of the wsrc group, & as a result, joebob now shows up in the default log in message.

FWIW.
Reply With Quote
Old 15th April 2009
ax0 ax0 is offline
Port Guard
 
Join Date: Apr 2009
Posts: 22
Default

cvs [server aborted]: out of memory; can not reallocate 6291456 bytes.
Reply With Quote
Old 15th April 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by ax0 View Post
cvs [server aborted]: out of memory; can not reallocate 6291456 bytes.
Although you haven't stated which CVSync server you are using, I can only guess that you are connecting to one which is running on AMD64. I have run into a similar problem some time back which is chronicled in the misc@ archives:

http://marc.info/?l=openbsd-misc&m=119470113431785&w=2

The solution is to use a different server which isn't running on AMD64 hardware.

Likewise, one of the best sources to search for information on OpenBSD is the Mailing list ARChive found at:

http://marc.info

You can diagnose a number of problems simply by searching there.

Last edited by ocicat; 15th April 2009 at 03:54 AM.
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
STABLE ports tree has returned.. BSDfan666 OpenBSD Packages and Ports 2 26th July 2009 07:36 PM
Enlightenment e17 on OpenBSD (Question about current ports) uptonm OpenBSD Packages and Ports 2 17th June 2009 09:12 PM
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
ports: stable or current? schrodinger OpenBSD Packages and Ports 4 11th August 2008 01:18 PM


All times are GMT. The time now is 05:51 AM.


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