DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th January 2014
chessmaster chessmaster is offline
Port Guard
 
Join Date: Feb 2012
Posts: 17
Default pkgng

Hello, I will be trying OpenBSD for the first time soon and very excited. My question is it possible to run pkgng repository on OpenBSD?
Reply With Quote
  #2   (View Single Post)  
Old 28th January 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

You mean the FreeBSD pkgng ?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 28th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

Like the other BSDs, OpenBSD has its own packaging system for 3rd party applications, which is described in detail in OpenBSD FAQ 15. Some of the history of the various porting and packaging systems used by the BSDs, with developer interviews, can be found on the NetBSD website beginning here.

Here's the intro from the FAQ mentioned above.:
Quote:
There are a lot of third party applications available which one might want to use on an OpenBSD system. To make this software easier to install and manage, plus to help it comply with OpenBSD's policy and goals, the third party software is ported to OpenBSD. This porting effort can involve many different things. Examples are: making the software use the standard OpenBSD directory layout (e.g. configuration files go into /etc), conforming to OpenBSD's shared library specifications, making the software more secure whenever possible, etc.

The end result of the porting effort are ready-to-install binary packages. The aim of the package system is to keep track of which software gets installed, so that it may at any time be updated or removed very easily. This way, no unnecessary files are left behind, and users can keep their systems clean. The package system also helps ensure nothing is deleted by accident, causing software to stop functioning properly. Another advantage is that users rarely need to compile software from source, as packages have already been compiled and are available and ready to be used on an OpenBSD system. In minutes, a large number of packages can be fetched and installed, with everything in the right place.
Reply With Quote
  #4   (View Single Post)  
Old 28th January 2014
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 373
Default

I think it is grand that we can compile programs from source, but, I rarely if ever do that on my OpenBSD systems. I prefer using the binary packages that are available for us.
__________________
hitest
Reply With Quote
  #5   (View Single Post)  
Old 29th January 2014
chessmaster chessmaster is offline
Port Guard
 
Join Date: Feb 2012
Posts: 17
Default

I'm curious why would one want to use binary instead of ports? @J65nko yeah the pkgng from FreeBSD.
Reply With Quote
  #6   (View Single Post)  
Old 29th January 2014
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by chessmaster View Post
I'm curious why would one want to use binary instead of ports?
  • When using the OpenBSD package system, there is no difference between what will be built locally & what is available on the mirrors unless custom options are being used.
  • Building can also significantly tax resource limited systems.
Section 15.1 of the project's FAQ covers this very topic.
Reply With Quote
  #7   (View Single Post)  
Old 29th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by chessmaster View Post
I'm curious why would one want to use binary instead of ports?
Another reason is convenience. We don't mix and match -current ports with -release or -stable systems, so there isn't a common need for users of those flavors of the OS to build their own packages.
On OpenBSD, the ports tree is required to be kept in sync with with the OS, primarily to ensure correct library functions.


Last edited by jggimi; 29th January 2014 at 02:11 PM. Reason: clarity
Reply With Quote
  #8   (View Single Post)  
Old 30th January 2014
chessmaster chessmaster is offline
Port Guard
 
Join Date: Feb 2012
Posts: 17
Default

That's great informaton knowing the flavors of the ports(in OpenBSD) match the flavor of the build running. To ensure rock solid stability. In the excellent documentation provided on the site. I see that pkg_add is used on OpenBSD. "Sorry got spolied with the pkg autoremove feature on FreeBSD".
Reply With Quote
  #9   (View Single Post)  
Old 30th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

See the -a option of the pkg_delete(1) man page.
Reply With Quote
Reply

Thread Tools
Display Modes

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
FreeBSD Official FreeBSD Binary Packages now available for pkgng J65nko News 0 31st October 2013 08:49 PM


All times are GMT. The time now is 08:57 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