Updating your system

Article contributed by kallisti5 on Mon, 2014-08-18 13:11

With the introduction of package management you can now upgrade your system in place using the pkgman command. The update process is straightforward, requires an internet connection, and requires a single reboot. pkgman will handle obtaining the latest updates and applying them to your system.

Bleeding edge

Warning: Bleeding edge updates may occasionally fail if major ABI updates have taken place since the last update was performed. While problems are rare, having backups is recommended before updating.

Update process

To update your system to packages in the repositories, there are a few simple steps to perform.

  • All you have to do is add the current repositories:
    pkgman add http://packages.haiku-os.org/haiku/master/$(getarch)/current
    pkgman add http://packages.haiku-os.org/haikuports/master/repo/$(getarch)/current
  • Update to the latest packages:
    pkgman update
  • Reboot once complete:
    shutdown -r

Comments

Re: Updating your system

Cool...that will save some time :-)

Re: Updating your system

Just tried it...worked perfectly.

No more downloading Images and running the installer....unless I want to create a boot media :-)

Re: Updating your system

Or, even better, create boot media from your current install. Then your preferences will become part of your boot media :-) Why re-configure from scratch, when Haiku does it better? :D

Re: Updating your system

Installer app is pure awesome.

Re: Updating your system

http://haiku.uwolke.ru/repo/#En

1. pkgman add-repo http://haiku.uwolke.ru/repo/binaries-x86_gcc2

2. pkgman add-repo http://haiku.uwolke.ru/repo/java-ports
NOTE
You'll probably need openjdk_x86_aliases package to run applications from this repo on x86_gcc2 Haiku builds

Re: Updating your system

What about gcc2/gcc4 hybrids? Do you add both?

Re: Updating your system

I have just updated my system using the above instructions. Thanks for the info!

Re: Updating your system

I have just updated my system using the above instructions. Thanks for the info!

Re: Updating your system

Re: Updating your system

This looked like the kind of thing that can be scripted for ease of use, until I clicked the link above from Kim1963, which shows just that, and gives a URL for the script I think.

A couple of notes for those following along manually:

1) When you do repo-add, it says it already has that repo, and asks if you want to replace it, which if you're not sure, sounds scary. As long as you don't mind the latest nightly, say "Yes".

2) It appears you need both the base and package repo updated to make it work, I updated only the base repo and there was no visible difference, the About Haiku app. showed the same version as before, as did "uname -a" in terminal.

3) At the end it says "Old activation state backed up..." This sounds like it should be possible to roll back. Any documentation on that?

P.S. If it isn't already (it may be) it should be stickied in the forums or made very obvious, to save people the trouble of downloading ISOs once the have a working Haiku with Package Manager. I found it mostly because of this other forum thread: http://www.haiku-os.org/community/forum/first_time_user_what_are_my_best...

Re: Updating your system

I tried the above two commands. After typing the first one, I'm getting the error:

[...]
Activating repository config from http://packages.haiku-os.org/master/$(getarch)/current
*** failed! Bad data

Any idea ?

Btw, the Terminal seems to be very unstable. Using it during 2 minutes I was able to crash it by:

- resizing the window
- selecting settings->settings menu (already reported a bug about this one)

Re: Updating your system

Is pkgman broken ATM? Not getting any further than "Downloading repochecksum-1..." on any of my installations (hrev48513).

Re: Updating your system

Could be related to this? https://dev.haiku-os.org/ticket/11708

Re: Updating your system

It appears to be working just fine for a newer nightly.

Upgraded a minute ago form hrev48585 to hrev48655 without any problems, but fails with the "bad data" error mention above on a hrev47223.

Re: Updating your system

OK formatted over the old Haiku on its partition then installed the latest nightly about a week ago, then rebooted into Haiku (I have to use the Haiku CD to boot Haiku for some reason even before that), and then did the teminal thing as shown. Everything seemed fine until reboot, and then the CD shows two Haiku choices on the drive to boot into, and neither one boots. What to do, that doesn't involve explosives. Maybe just try a reinstall over it??

OK I reloaded over it and could boot using the live CD after I did and there was only one Haiku listed. On the next boot there were many, and I choose the latest one, and while that doesn't seem to take me off and running and booting into it I did figure out how to boot into it by clicking it and then getting back to the screen that says continue booting on it.

Using the package management I tried downloading two old browser to install them, and one did fine but the other failed. I had the zip package for the failed one on another drive, and transfer it and unzipped it in home, and it worked then, and I then made a link to the desktop for it.

Not a lot in package mangement, and I have yet to figure out where the latest webpositive package is. My nightly didn't have it period that I used as my base. Tracker crashed once, but then rebooted itself on its own, which was good. Some software crashed and I had to give it the 3 fingered Vulcan death click, but I am use to that from years ago using BeOS. All seemed pretty stable fr a few hours. I am also wondering if I have I to install bootman to boot again properly, so my computer can boot directly from the drive without the live CD trick. For all I know it is installed, and just not working properly for some reason. Oh well, at least no more having to erase and reinstall for now just to run the latest version.