- NetBSD Manual Pages
LINKFARM(1) NetBSD General Commands Manual LINKFARM(1)
Powered by man-cgi (2021-06-01).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
linkfarm -- manage symbolic links to package files
linkfarm [-cDnRVv] [-d stowdir] [-s subdir] [-t target] package
The linkfarm command is used to manage a "linkfarm", a directory tree of
symbolic links in target to the files in the package sub-directory of
stowdir. The default action is to create a linkfarm to a package.
The following command-line options are supported:
-c Check whether a package contains a linkfarm in target. If
package has no symbolic links in target that correspond to its
files, then return 0, otherwise return 1.
-D Delete the linkfarm for package.
Set stowdir as the directory in which package can be found. The
default stowdir is the packages sub-directory in the default
-n Don't actually execute the commands for removing and creating the
symbolic links and directories.
-R Delete and re-create the linkfarm for package.
The root of the package hierarchy for the linkfarm is the subdir
sub-directory in the package. By default, assume the root of the
package hierarchy is simply the package directory.
Set target as the directory in which to create and delete the
linkfarm for package. The default target directory is /usr/pkg
but may be overridden by the LOCALBASE environment variable.
-V Print version number and exit.
-v Turn on verbose output. Specifying -v multiple times increases
the level of verbosity.
The standard packages directory, /usr/pkg, can be overridden by
specifying an alternative directory in the LOCALBASE environment
variable. This affects the default target and stowdir directo-
This can be used to specify files in package that should ignored
when creating and deleting symbolic links in target.
PLIST_IGNORE_FILES is a space-separated list of shell glob pat-
terns that match files relative to the package directory, and it
defaults to "info/dir *[~#] *.OLD *.orig *,v".
The linkfarm utility was written by Alistair G. Crooks <agc@NetBSD.org>.
NetBSD 5.0 September 2, 2003 NetBSD 5.0