LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-31-2005, 09:44 AM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
OpenBSD Updates


I was reading the docs at openbsd.org and I was wondering about the install process. It seems that packages are the recommended way to install applications. The ftp example given is:

sudo pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3....reen-4.0.2.tgz

So, do you have to download every package one at a time to get the stable release? Is their an equivlant to 'emerge sync' or 'apt-get update'?

Perhaps I should read on but I figured somebody could answer this quickly.

How do you update/install packages in openbsd?
 
Old 04-04-2005, 03:01 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Okay 65 people viewed this thread and not one response. I guess the bsd community is not as vast or not has helpfull as the linux community. I'll just stick with Linux then.
 
Old 04-04-2005, 04:35 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Or maybe... just maybe... this answer is so very basic that we all figured you had solved the problem by the time we got around to answering it. You see... it is actually far easier to read the page that talks about packages than it is for us to type it all out for you.

http://www.openbsd.org/ports.html
Quote:
Adding a package is as easy as pkg_add pkgname.tgz. If you are grabbing packages from a single source (a package repository), set PKG_PATH to that repository URL, in order to grab dependencies.

For instance, to install the Gimp package for the 3.6 release on an i386 machine off the ftp site (including dependencies), do:
Code:
# setenv PKG_PATH ftp://ftp.openbsd.org/pub/OpenBSD/3.6/packages/i386/
# pkg_add ${PKG_PATH}gimp-1.2.5.tgz
I mean, come on... it's not something that only a rocket scientist could figure out. You'll also note -- by reading the page -- that an update requires you to delete the packages first. It admits this is inconvienient (with dependancies and all) but it is the current method.

EDIT (to add):
Quote:
As of OpenBSD 2.8, to update a package you must:

* Remove the old package using pkg_delete(1)
* Add the new package using pkg_add(1)

This is slightly inconvenient, as packages may trigger dependencies, and you may have to remove a large subset of packages for an update.

Last edited by frob23; 04-04-2005 at 04:41 PM.
 
Old 04-04-2005, 04:55 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
http://openbechede.sourceforge.net/en/

And less than five minutes with google turned up this project. Which automates the whole process of upgrading and provides "apt-like" functionality.

Quote:
What is openbechede?
Openbechede is a package (installer/removal/updater) tool for OpenBSD systems. It aims to manage your packages in a faster and a more simple way.

With openbechede you can fetch the lists of packages according to your OBSD version, search for packages, install them (and automatically the dependencies they require), remove packages (asking if you want to remove also the packages that depend on them) and I think the best of the features: you can automatically upgrade your system's packages. A simple cron job could run openbechede, and you would be sure that you have your packages up to date. Also, it reflects its activity in a log file (/var/log/openbechede.log by default).
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting to OpenBSD klemen *BSD 7 05-15-2005 01:02 PM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 5 04-08-2005 07:09 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 08:46 AM
help with OpenBSD?? dsantamassino *BSD 6 06-16-2003 10:53 PM
OpenBSD help.. sancho5 Linux - General 0 11-19-2001 09:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration