pkg info -dx <partial name>
. This will show the dependencies (-d). You can also check if there are any other packages depending on this one, and well.. tons of stuff. See the manual page. a: autoremove,
r: remove,
u: upgrade,
up: update,
in: install,
i: info,
s: search,
S: set,
c: create,
w: which,
l: info -l,
# pkg in package
, to mark package as automatically installed — # pkg S -A 1 package
, etc. pkg alias
ALIAS ARGUMENTS
all-depends 'query %dn-%dv'
annotations 'info -A'
build-depends 'info -qd'
cinfo 'info -Cx'
comment 'query -i "%c"'
csearch 'search -Cx'
desc 'query -i "%e"'
download 'fetch'
iinfo 'info -ix'
isearch 'search -ix'
prime-list 'query -e '%a = 0' '%n''
prime-origins 'query -e '%a = 0' '%o''
leaf 'query -e '%#r == 0' '%n-%v''
list 'info -ql'
noauto 'query -e '%a == 0' '%n-%v''
options 'query -i "%n - %Ok: %Ov"'
origin 'info -qo'
provided-depends 'info -qb'
raw 'info -R'
required-depends 'info -qr'
roptions 'rquery -i "%n - %Ok: %Ov"'
shared-depends 'info -qB'
show 'info -f -k'
size 'info -sq'
All of them are listed in /usr/local/etc/pkg.conf.Code:ALIAS ARGUMENTS all-depends 'query %dn-%dv' annotations 'info -A' build-depends 'info -qd' cinfo 'info -Cx' comment 'query -i "%c"' csearch 'search -Cx' desc 'query -i "%e"' download 'fetch' iinfo 'info -ix' isearch 'search -ix' prime-list 'query -e '%a = 0' '%n'' prime-origins 'query -e '%a = 0' '%o'' leaf 'query -e '%#r == 0' '%n-%v'' list 'info -ql' noauto 'query -e '%a == 0' '%n-%v'' options 'query -i "%n - %Ok: %Ov"' origin 'info -qo' provided-depends 'info -qb' raw 'info -R' required-depends 'info -qr' roptions 'rquery -i "%n - %Ok: %Ov"' shared-depends 'info -qB' show 'info -f -k' size 'info -sq'
# Sample alias settings
ALIAS : {
all-depends: query %dn-%dv,
annotations: info -A,
build-depends: info -qd,
cinfo: info -Cx,
comment: query -i "%c",
csearch: search -Cx,
desc: query -i "%e",
download: fetch,
iinfo: info -ix,
isearch: search -ix,
prime-list: "query -e '%a = 0' '%n'",
prime-origins: "query -e '%a = 0' '%o'",
leaf: "query -e '%#r == 0' '%n-%v'",
list: info -ql,
noauto = "query -e '%a == 0' '%n-%v'",
options: query -i "%n - %Ok: %Ov",
origin: info -qo,
provided-depends: info -qb,
raw: info -R,
required-depends: info -qr,
roptions: rquery -i "%n - %Ok: %Ov",
shared-depends: info -qB,
show: info -f -k,
size: info -sq,
}
# pkg info -r package
than # pkg required-depends package
.# pkg install $(pkg build-depends package)
I agree with you there, but for some it is much easier to remember required-depends than -qr, especially if you don't use pkg too often.Some of default aliases are not very useful, IMO, it is much easier to use
# pkg info -r package
than# pkg required-depends package
.
Ayups, using pkg-info(8).pkg info -dx <partial name>
. This will show the dependencies (-d). You can also check if there are any other packages depending on this one, and well.. tons of stuff. See the manual page.
pkg info -dx mc | sed "s/\\t//"
Yes, useNow I have a list of pkgs but some are listed with a tab which I'm trying to remove usind sed...but that doesn't work... Any ideas?Code:pkg info -dx mc | sed "s/\\t//"
pkg query '%dn-%dv' mc
instead. That way you don't have to cleanup pkg-info(8)'s output. pkg fetch -d mc