Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2013 12:48:11 +0200
From:      Leslie Jensen <leslie@eskk.nu>
To:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   pkg version -L howto?
Message-ID:  <51975C6B.1060305@eskk.nu>

next in thread | raw e-mail | index | archive | help

I ran into a little problem with my "old" crontab scripts.

I do the following:

portsnap -I cron update

/usr/local/sbin/portmaster -y --clean-distfiles

/usr/local/sbin/portmaster -aF

pkg version -vIL


After changing to pkg the check for outdated ports fails on the -L flag

pkg version -vIL
pkg: option requires an argument -- L
usage: pkg version [-IPR] [-hoqv] [-l limchar] [-L limchar] [[-X] -s string]
                    [-r reponame] [-O origin] [index]
        pkg version -t <version1> <version2>
        pkg version -T <pkgname> <pattern>



According to "pkg help version" the -l -L should be followed by limchar.

Unfortunately it is not clear what limchar can be. Looking at the 
examples in help I drew the conclusion that limchar can be one of the 
following:
= < > ? !


And in my case I would need the -L < to show which packages need to be 
updated. But that is not the case.

root@blj01~:pkg version -vIL=

root@blj01~:pkg version -vIL<
Missing name for redirect.

root@blj01~:pkg version -vIL>
Missing name for redirect.

root@blj01~:pkg version -vIL?
pkg: No match.

root@blj01~:pkg version -vIL!
Lists all installed packages


I would very much like a suggestion on how to get this right.

Thank you

/Leslie





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51975C6B.1060305>