Solved pkg install question

Hello,

How can I find out what are the default option that will be installed when using pkg install[I] [/I]packagename?

I am writing a jail flavor script for my ezjail webjail and need to know if the option that I need for example php56-exention is install by default or if i need to add it to the list of package to install..

Thank you
 
Something like this:

pkg rquery "%n-%v %Ok=%Ov"

That will use all active repositories for the query, if you want check only the official repo you can select which repository is queried with the -r reponame option:

pkg rquery -r FreeBSD "%n-%v %Ok=%Ov"

Edit: You can include the port/package name/origin on the command line to restrict the output to entries of that port/package:

pkg rquery "%n-%v %Ok=%Ov" php56-extensions
 
Hi kpa, thank you for the reply but I don't understand it sorry.
So How would I check what is included if for example i execute pkg install php56-extension?
 
Edit: I didn't understand your question at first but I think I know now what you're after.

You can use pkg-rquery(8) but query for the dependencies of the package instead:

Code:
firewall ~ % pkg rquery "%n-%v: %do" editors/vim                                               
vim-7.4.764: lang/python27
vim-7.4.764: lang/perl5.20
vim-7.4.764: lang/lua52
vim-7.4.764: devel/gettext-runtime
vim-7.4.764: devel/ctags
vim-7.4.764: devel/cscope

In some cases my previous advice about the options can be useful as well if the information you're after is in the options.
 
Thank you very much!
This is exactly what I needed :)

The First reply you sent me (now deleted) was what I needed
pkg rquery "%n-%v %Ok=%Ov" php56-extensions
 
Ok.. My last question,
When $ pkg rquery "%n-%v %Ok=%Ov" hiawatha return the following
Code:
hiawatha-9.13 CACHE=on
hiawatha-9.13 DOCS=on
hiawatha-9.13 IPV6=on
hiawatha-9.13 MONITOR=off
hiawatha-9.13 RPROXY=on
hiawatha-9.13 SSL=on
hiawatha-9.13 TOMAHAWK=off
hiawatha-9.13 TOOLKIT=on
hiawatha-9.13 XSLT=on

Is there a way to change the value to "on" ?
Code:
hiawatha-9.13 MONITOR=on
$ man pkg | grep option
Code:
<standard input>:171: environment stack underflow
<standard input>:171: cannot chop empty macro
  The following options are supported by pkg:
  any other action.  The -v option takes precedence over -l but -l
  -o <option=value>, --option <option=value>
  Set configuration option for pkg from the command line.  Options
  to specify this option multiple times.
  All configuration options from pkg.conf.5 can be passed as environment

I tried pkg install -o hiawatha-9.13 MONITOR=on hiawatha but as you guess ... computer says no
 
No, the options are "set to stone" at package creation time and can't be changed later. You can however recompile the port with your custom options after you've found out that the binary packages have unsuitable options for you.
 
No. Those options are set during build time. The only way to change them is to build from ports and create your own package. I highly recommend setting up your own repository with ports-mgmt/poudriere.
 
SirDice , yes this has been on my list of things to learn for a long time..
And the more I use FreeBSD, the more I think, ports-mgmt/poudriere is a must have in my toolbox.

How long will it take for me to grasp it do you think?
Have you got any good tutorial to share
 
Back
Top