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 1st February 2016
Amithapr Amithapr is offline
Fdisk Soldier
 
Join Date: Dec 2015
Posts: 69
Question YUM Like Tool

Hi,

I want to install Nfsen on my OpenBSD firewall. I was able to download the tar.gz Nfsen package and ran the
Code:
pkg_add -v nfsen-1.3.7.tar.gz
command

It gives
Code:
Can't find nfsen
output.

Is there any way to easily add packages to my OpenBSD firewall like in some Linux distributions by giving a command like
Code:
yum install nfsen
?
Reply With Quote
  #2   (View Single Post)  
Old 1st February 2016
e1-531g e1-531g is offline
VPN Cryptographer
 
Join Date: Mar 2014
Posts: 448
Default

tar.gz? What is inside? I suppose source code. In that case you should
extract and compile/build that. Better way will be prepare a package
and install it, even if you don't consider to add to ports tree.

If inside is Gnu/Linux binary then there is in i386 compatibility layer with Gnu/Linux
but this can be buggy solution.

The best way
nfsen exists inside OpenBSD ports tree and there is a package for it
http://ports.su/net/nfsen
http://openports.se/net/nfsen
The best way is to configure pkg_add according to FAQ 15.2.2 [1] or man pkg.conf(5) [2]
[1] http://www.openbsd.org/faq/faq15.html#Easy
[2] http://www.openbsd.org/cgi-bin/man.c...th=OpenBSD-5.8
Reply With Quote
  #3   (View Single Post)  
Old 1st February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,292
Default

OpenBSD uses the pkg_* tools for third party package management.

Are you still using OpenBSD 5.3?
If so, the version of nfsen for that release was 1.3.5. The packages are specific for each OpenBSD release, you cannot install a package designed for use with a different release. Your nearest package mirror stores the packages by individual release number.

You must use the proper $PKG_PATH environment variable, or the proper /etc/pkg.conf configuration file. Setting $PKG_PATH will override the configuration file, if used.

OpenBSD FAQ 15 gives package management guidance, however the FAQ is accurate for the last release, which was 5.8.

Last edited by jggimi; 1st February 2016 at 11:49 AM. Reason: typo
Reply With Quote
  #4   (View Single Post)  
Old 1st February 2016
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 324
Default

If you are using OpenBSD 5.8 and already downloaded the package (nfsen-1.3.7p3.tgz), you can just go in your download directory and type :

Code:
pkg_add -v ./nfsen
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
  #5   (View Single Post)  
Old 1st February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,292
Default

I will add that only a very few package mirrors still have 5.3 packages available. Most only have 5.7 and 5.8, since that is what the Project currently supports. Here is one that retains historical packages, and still has 5.3 packages available:

http://ftp.eu.openbsd.org/pub/OpenBSD/5.3/packages/
Reply With Quote
  #6   (View Single Post)  
Old 2nd February 2016
Amithapr Amithapr is offline
Fdisk Soldier
 
Join Date: Dec 2015
Posts: 69
Default

Dear All,

Thanks a lot for your valuable information.
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 monitoring tool alexander10bees FreeBSD General 8 22nd May 2014 01:38 PM
Snowden Used Low-Cost Tool to Best N.S.A. J65nko News 1 9th February 2014 09:24 PM
your favorite mirroring tool daemonfowl General software and network 11 10th June 2013 05:50 PM
What tool for dynamic I.P filtering unixjingleman OpenBSD Security 1 2nd March 2011 11:31 AM
New tool on the block - scrypt s0xxx FreeBSD Security 2 21st May 2009 07:48 AM


All times are GMT. The time now is 08:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick