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


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to