Quote:
Originally Posted by da1
...is there a way to get a list of all packages that have updates available ?
|
Look & experiment with
pkg_info(8)'s
"-e" switch. From the manpage:
Code:
-e pkg-name
This option allows you to test for the presence of another
(perhaps prerequisite) package from a script. If the package
identified by pkg-name is currently installed, return 0,
otherwise return 1. In addition, the names of any package(s)
found installed are printed to stdout unless turned off using the
-q option.
The given pkg-name is actually a package specification, as
described in packages-specs(7). For example, pkg_info -e
'name->=1.3' will match versions 1.3 and later of the name
package.
-e pkg-path
Another variant of this option that uses a package path instead.
A package path is a location within the ports tree, as described
in FULLPKGPATH in bsd.port.mk(5). For example, pkg_info -e
x11/kde/base3 will match any package that was compiled according
to ${PORTSDIR}/x11/kde/base3.