DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default New to OpenBSD ...How to update system ?

New to OpenBSD ...What is equivalent of apt-get update and apt-get upgrade in OpenBSD?
Reply With Quote
  #2   (View Single Post)  
Old 6th October 2017
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 307
Default

EDIT: I see 6.2 in your sig, are you following snapshots? Then read my upgrading section.

For release and stable:

Understand that OpenBSD does not do rolling releases like Linux distros. The focus is on a stable release plus security patches. Also OpenBSD does not package the abse OS in the same way as 3rd part ports applications. Unlike Linux where everything is available as package.

So you have two processes to learn. Security updates to your running system, and updating to a new release. And within that, you have the base system and ports which are maintained separately.

To start off simply, apply security updates to the base system with syspatch.
'man syspatch' and
https://www.openbsd.org/faq/faq10.html#Patches

OpenBSD does not have the resources to package security updates to ports. You can either build them yourself or use a 3rd party such as m:tier.
https://stable.mtier.org/

Upgrading to a new releaes is a similar process as the installation. The easist way to download the new release's bsd.rd file to /, reboot and at the boot> prompt, type 'b bsd.rd' to boot the new installer and choose [U]pgrade. Then 'sysmerge' if needed and 'pkg_add -u'.

The 6.2 release is right around the corner so we can get into those details if you need them then.

Meanwhile, read the man pages for pkg_add, pkg_delete, pkg_info.
Reply With Quote
  #3   (View Single Post)  
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Thanks for replying.

What if I never install anything from ports ?

Then I am left with the base system and binary packages.

Kindly give me the commands which will update the base

system and the binary packages.
Reply With Quote
  #4   (View Single Post)  
Old 6th October 2017
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 375
Default

Quote:
Originally Posted by bsd007 View Post
Kindly give me the commands which will update the base
Once you have set-up /etc/installurl you can update the base by running:

doas syspatch

You can run doas syspatch as a regular user ( see man doas).
__________________
hitest
Reply With Quote
  #5   (View Single Post)  
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by hitest View Post
Once you have set-up /etc/installurl you can update the base by running:

doas syspatch

You can run doas syspatch as a regular user ( see man doas).
I am getting this.

Code:
$ doas syspatch 
doas: doas is not enabled, /etc/doas.conf: No such file or directory
Reply With Quote
  #6   (View Single Post)  
Old 6th October 2017
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 375
Default

Quote:
Originally Posted by bsd007 View Post
I am getting this.

Code:
$ doas syspatch 
doas: doas is not enabled, /etc/doas.conf: No such file or directory
You need to create /etc/doas.conf

The contents of /etc/doas.conf should be:

permit yourusername

For example my /etc/doas.conf is:

permit hitest

Save and exit. Then when you run doas syspatch with a properly configured /etc/installurl it will update your system.
__________________
hitest
Reply With Quote
  #7   (View Single Post)  
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

I just added https://mirrors.sonic.net/pub/OpenBSD but same thing

Code:
$ doas syspatch 
doas (open@open.my.domain) password: 
$
Reply With Quote
  #8   (View Single Post)  
Old 6th October 2017
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 375
Default

Quote:
Originally Posted by bsd007 View Post
I just added https://mirrors.sonic.net/pub/OpenBSD but same thing

Code:
$ doas syspatch 
doas (open@open.my.domain) password: 
$
After you run doas syspatch it will prompt you for your regular user password. Type in your user password and press enter. That should run syspatch

P.S. Do you have a working internet connection on your openbsd unit?
__________________
hitest

Last edited by hitest; 6th October 2017 at 01:58 AM. Reason: addition
Reply With Quote
  #9   (View Single Post)  
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by hitest View Post
After you run doas syspatch it will prompt you for your regular user password. Type in your user password and press enter. That should run syspatch

P.S. Do you have a working internet connection on your openbsd unit?
Yes my Internet is working fine. Do you think because I am using 6.2 there are no updates available yet ?
Reply With Quote
Old 6th October 2017
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 307
Default

Quote:
Originally Posted by bsd007 View Post
Yes my Internet is working fine. Do you think because I am using 6.2 there are no updates available yet ?
Yes. syspatch will not output anything if there was nothing to do. 6.2 is not released yet, you are running a snapshot. syspatch is for applying security patches to an installation of a release.

If you want to track snapshots, it's a different process as I stated in my first post.
Reply With Quote
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by TronDD View Post
Yes. syspatch will not output anything if there was nothing to do. 6.2 is not released yet, you are running a snapshot. syspatch is for applying security patches to an installation of a release.

If you want to track snapshots, it's a different process as I stated in my first post.
So my question is like in Linux if you are running a beta and keep on updating you will end up with a stable system when the release day arrives.

Is it same with OpenBSD ?
Reply With Quote
Old 6th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Welcome back.

No, OpenBSD's development and release process is not the same as Linux. The process is outlined in the OpenBSD FAQ, here.

The OpenBSD FAQ is a key resource for new users. Spending time with it will help you understand more about this OS.
Reply With Quote
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by jggimi View Post
Hello, and welcome.

No, OpenBSD's development and release process is not the same as Linux. The process is outlined in the OpenBSD FAQ, here.

The OpenBSD FAQ is a key resource for new users. Spending time with it will help you understand more about this OS.
From the link you gave me

Quote:
-current: The -current branch is where active development work is done. Every six months, -current is tagged and becomes the next -release.
That is what I wanted to know. If I continue with the current it will become the next -release within six months.
Reply With Quote
Old 6th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

No. OpenBSD -current is a constantly moving target, as *ALL* development occurs on -current, including the preparation for -release, which, for simplicity, can be considered a very carefully prepared snapshot, that is published separately from -current, and once published never changes.


As it happens, 6.2-release has been "tagged" in CVS just this week. So, any particular snapshot of -current you might be running right now is either older than -release, or newer than -release. Not -release, as it is unpublished and will be published separately.

And as you update from snapshot to snapshot, your system will be newer and newer than 6.2-release.
Reply With Quote
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by jggimi View Post
No. OpenBSD -current is a constantly moving target, as *ALL* development occurs on -current, including the preparation for -release, which, for simplicity, can be considered a very carefully prepared snapshot, that is published separately from -current, and once published never changes.


As it happens, 6.2-release has been "tagged" in CVS just this week. So, any particular snapshot of -current you might be running right now is either older than -release, or newer than -release. Not -release, as it is unpublished and will be published separately.

And as you update from snapshot to snapshot, your system will be newer and newer than 6.2-release.
Got it.

So if I use 6.2 and do snapshot to snapshot is security an issue ?
The main reason I am using OpenBSD is security.
Reply With Quote
Old 6th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

I have no answer, because the word "security" here is undefined, and even if you try to define it you will likely have multiple definitions.

So instead of answering an unanswerable question, I'll try to provide you with some context.

---

As oft repeated, -current is the development branch. It is where new features are added, new functionality tested, and therefore it is where risks are taken. And as any software developer will tell you, any development effort can introduce flaws or bugs. And as any OpenBSD developer will tell you, a design flaw or a bug may have unintended consequences.

-current is where development and testing of the OS and of ports occur. But there are additional users who run -current, and some may do so because they want access to the latest/greatest versions of ports or packages. (But as noted above, development introduces flaws and bugs. So a higher version number isn't always better.)

The project will publish a -release twice per year. It is never changed after publication. A -release is maintained and supported for 1 year, through the publication of errata patches, or through the syspatch(8) binary patch management subsystem for i386 and amd64, and additionally through the -stable branch of CVS.

---

I run both -current and patched -release systems. I use -current on a workstation, as I am a port maintainer and occasional port tester, and -current is a requirement for this. I use patched -release on all of my production servers.[1] I do so because it eliminates introducing any new features which might disrupt stability, and it is also a much lower workload to maintain than a -current system, which requires frequent updates in order to stay relatively up-to-date with the constantly churning -current developments.

[1] Prior to syspatch, I maintained -stable branches on all my servers as it was operationally simpler than applying individual errata patches across them. The -stable branch will occasionally have patches committed that are not published as errata, and in the years I ran -stable I did once have the need for a patch from that category of committed patches.

Last edited by jggimi; 6th October 2017 at 03:58 AM. Reason: clarity
Reply With Quote
Old 6th October 2017
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 377
Default

If only openBSD had some sort of documentation for all this.
__________________
Want to bash FreeBSD and promote Linux? Go to https://forums.freebsd.org! It's allowed. Even encouraged by the mods!
Reply With Quote
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Just one more question. When 6.2 reaches its EOL will I get a notification ?

Asking to upgrade ?
Reply With Quote
Old 6th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by drhowarddrfine View Post
If only openBSD had some sort of documentation for all this.
The scope of the FAQ has been reduced in recent years. This included removal of a number of general questions, such as the operational comparison of -current with -release/-stable. Otherwise, I'd just have linked to that.

Quote:
Originally Posted by bsd007 View Post
Just one more question. When 6.2 reaches its EOL will I get a notification ?
No. It is the admin's responsibility to maintain and update their systems.
  • Only the two most recent releases are supported with break/fix patches.
  • The FAQ is specific only for the most recent release. After six months, the older release is supported for break/fix only.
Reply With Quote
Old 6th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 242
Default

Quote:
Originally Posted by jggimi View Post
No. It is the admin's responsibility to maintain and update their systems.
  • Only the two most recent releases are supported with break/fix patches.
  • The FAQ is specific only for the most recent release. After six months, the older release is supported for break/fix only.
So please make this a little easy for me. Since I am running 6.2 when should I do a clean/fresh install (The exact date)?

I dont want to upgrade instead I want to do a fresh install when 6.2 reaches its EOL.

Thanks a lot for replying.

Last edited by bsd007; 6th October 2017 at 02:12 PM.
Reply With Quote
Reply


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
Most software already has a “golden key” backdoor: the system update J65nko News 0 27th February 2016 10:31 PM
Installed OpenBSD 5.7.Need update help Itproman OpenBSD Installation and Upgrading 18 19th August 2015 02:57 PM
Ran make update and the system decided to install Gnome? sparky NetBSD Package System (pkgsrc) 6 22nd April 2013 02:53 PM
Clonezilla Live clone system update J65nko News 0 28th September 2011 05:53 PM
how update openbsd 4.8 craze OpenBSD Installation and Upgrading 6 6th March 2011 03:20 PM


All times are GMT. The time now is 10:03 PM.


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