Skip to content

Updating Haiku or switch from nightly to beta or visa versa

Schrijvers Luc edited this page Mar 24, 2024 · 4 revisions

Update system

In Terminal type:

pkgman full-sync

CAUTION! Look at the list presented that will be updated, sometimes packages will be removed for unresolved dependencies, if you like to keep them, make backups for those if you proceed or abort the update!

If you are ok with the update: Confirm with Enter

List used repositories

In Terminal type:

pkgman list-repos

32bit:

Beta 4

~> pkgman list-repos
        Haiku
                base-url: https://eu.hpkg.haiku-os.org/haiku/r1beta4/x86_gcc2/current
                identifier: tag:haiku-os.org,2001:repositories/haiku/r1beta4/x86_gcc2
                priority: 1
        HaikuPorts
                base-url: https://eu.hpkg.haiku-os.org/haikuports/r1beta4/x86_gcc2/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_gcc2
                priority: 1

Nightly

~> pkgman list-repos
        Haiku
                base-url: https://eu.hpkg.haiku-os.org/haiku/master/x86_gcc2/current
                identifier: tag:haiku-os.org,2001:repositories/haiku/master/x86_gcc2
                priority: 1
        HaikuPorts
                base-url: https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_gcc2
                priority: 1

64bit:

Beta4

~> pkgman list-repos
        Haiku
                base-url:  https://eu.hpkg.haiku-os.org/haiku/r1beta4/x86_64/current
                identifier: tag:haiku-os.org,2001:repositories/haiku/r1beta4/x86_64
                priority:  1
        HaikuPorts
                base-url:  https://eu.hpkg.haiku-os.org/haikuports/r1beta4/x86_64/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_64
                priority:  1

Nightly:

~> pkgman list-repos
        Haiku
                base-url:  https://eu.hpkg.haiku-os.org/haiku/master/x86_64/current
                identifier: tag:haiku-os.org,2001:repositories/haiku/master/x86_64
                priority:  1
        HaikuPorts
                base-url:  https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current
                identifier: tag:haikuports.org,2013:repositories/haikuports/master/x86_64
                priority:  1

Switch from beta4 to nightly (this works on 32bit and 64bit):

pkgman drop-repo Haiku
pkgman add-repo https://eu.hpkg.haiku-os.org/haiku/master/$(getarch)/current
pkgman drop-repo HaikuPorts
pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/master/$(getarch)/current

Switch from nightly to beta4 (this works on 32bit and 64bit):

pkgman drop-repo Haiku
pkgman add-repo https://eu.hpkg.haiku-os.org/haiku/r1beta4/$(getarch)/current
pkgman drop-repo HaikuPorts
pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/r1beta4/$(getarch)/current

Troubleshooting: nightlies tend to brake sometimes, reverting to a previous state is easy with:

pkgman install /system/packages/administrative/{date}/*.hpkg