Openbsd update ports




















This post is about me trying to get a hang of the OpenBSD ports system by making a newer version of one of the existing ports. This is more a bunch of notes to myself coz I attempted something, and probably not very interesting to anyone else…. I have subscribed to the Gitea releases and noted that as of date they are on version 1. The -current ports version is only a version behind at 1. I figure if there were any critical security vulnerabilities between 1.

Anyways, I decided to download -stable ports and get it to use the latest version of Gitea instead. This would probably work well for something simple like Gitea but might not for more complex packages that might have version dependencies for packages not present in -stable ports.

I figured this would be a good way to dip my toes into ports too; I could see what the Gitea port maintainer has done and work my way backwards. The bsd. And the Porting Guide is a good intro on how to get started submitting ports. Everything I am doing below is based on what I picked up from these. As a first step I downloaded a zip of the ports tree and then updated it to -stable. Ports have various flavours.

The zip file that I download is the -release flavour, which is the ports tree as the release date of my current OpenBSD install. Next I installed a package called portslist to let me find where the Gitea port is located. I changed to this directory above and edited Makefile to change the Gitea version to 1. Then I ran the following which downloaded the new version and created checksums in distinfo :. It is also possible to do make checksum after this to verify the checksums will work fine if you are actually making this change to the real ports tree — which I am not.

To utilize the ports collection on an OpenBSD server, you will first need to retrieve the ports. To retrieve the ports. After the tar archive is extracted, the cvs utility can be used to update the individual packages in the ports collection.

Since the ports are frequently updated to address security and reliability issues, you will need to periodically refresh the ports to ensure that your ports contains the latest stable set of software. Viewed 37k times. Improve this question. Sildoreth 1, 7 7 gold badges 22 22 silver badges 39 39 bronze badges. While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.

Link-only answers can become invalid if the linked page changes. Add a comment. Active Oldest Votes. Improve this answer. Community Bot 1. Use -U when installing a single package or set of packages if you want to update packages that this these depend on. OpenBSD lacks the developer resources for providing updates to packages on versions other than 'current' Does that also apply to security updates? So if a critical security hole is found in a binary package I use, I have to reinstall it from Stable ports?

OpenBSD will not rebuild packages for -stable. Holu Holu 31 1 1 bronze badge. Old answer, relevant to OpenBSD releases before 6. I'm using! RedScourge RedScourge 4 4 bronze badges. Vinz 1, 11 11 silver badges 16 16 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000