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 13th February 2018
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
Default "pkg_info -W" in OpenBSD?

Hi everyone, please forgive my lameness. But I just want to know a way around this.

I have been reading the "BSD UNIX 1000 Plus Commands..." book and I came across this command in the command examples in Chapter 1 of the book.

$ pkg_info -W convert
/usr/local/bin/convert was
installed by package
ImageMagick-6.3.6.9

Description of the command:
Find which package the convert command is from.


My problem is I'm running OpenBSD 6.2 current, and there seems to be no "-W" option in OpenBSD pkg_info. I tried looking at the man page but cannot seem to find the -W switch/option.

Is there a way around this in OpenBSD?

Thank you very much in advance guys/gals, Again please forgive my lameness.

SINcerely,
Reply With Quote
  #2   (View Single Post)  
Old 13th February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I don't know the book, but there are different pkg_add(1) tools on different BSDs, which have different options.

What you're looking for on OpenBSD is the -E option. Review the man page.
Code:
$ pkg_info -E $(which convert)
/usr/local/bin/convert: ImageMagick-6.9.9.30
ImageMagick-6.9.9.30 image processing tools
$
Reply With Quote
  #3   (View Single Post)  
Old 13th February 2018
yezster yezster is offline
Port Guard
 
Join Date: Jan 2014
Posts: 17
Default

Woh!!!

Thanks jggimi
Reply With Quote
  #4   (View Single Post)  
Old 13th February 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

For future passers-by: that book was written in 2008, actually FreeBSD-specific (despite the title), and refers to a package system that no longer exists in FreeBSD. So I wouldn't use it to learn how to work with packages.
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
Difference between"arp info overwritten" and " duplicate IP address " varag OpenBSD Security 1 6th April 2015 02:57 PM
OpenBSD bcallah@ on "Cleaning up software older than me" and an introduction to OpenBSD jggimi News 7 23rd March 2015 11:31 PM
How to replace "ectags" with "ctags"? fender0107401 OpenBSD Packages and Ports 5 16th April 2013 10:01 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
Newbie-friendly "printing in OpenBSD" guide wanted Shagbag OpenBSD Packages and Ports 5 7th July 2008 09:26 PM


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


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