[Previous] [Contents] [Index] [Next]

pkgctl

Extract information from the package filesystem


Note: If you are not root, specify the full path: /usr/sbin/pkgctl.

Syntax:

pkgctl [-v] [-i|r|l|c|w] file [file ...]

Options:

-c file
Get the user configuration file for the package filesystem associated with the named file, which may be /dev/pkginfoXX.
-i file
Get information about the named file. This is the default option if no other options are used.
-l file
Reload the configuration for the package filesystem associated with the named file, which may be /dev/pkginfoXX.
Note: The spill and mountpoints don't change.

-r file
If the named file has been spilled, recover the file to the original contained in the package.
-v[v]...
Verbose output; more v characters cause more verbosity.
-w file
Output the path to the original file.

Description:

The pkgctl utility extracts information about a file from the package filesystem. You can also use it to recover the original version of a file if it has been spilled.

Examples:

Get information about /bin/echo and /bin/ls:

pkgctl -i /bin/echo /bin/ls

Or:

pkgctl /bin/echo /bin/ls

Recover (unspill) a change that was made to /bin/echo:

pkgctl -r /bin/echo

Get the user configuration file for the package filesystem that handles /bin/echo:

pkgctl -c /bin/echo

Get the user configuration file for all running package filesystems on the system:

pkgctl -c /dev/pkginfo*

Reload the configuration for the package filesystem that handles /bin/echo:

pkgctl -l /bin/echo

Restart all of the running package filesystems on the system:

pkgctl -l /dev/pkginfo*

Check the difference between a spilled file and its original unspilled version:

diff /etc/system/rc.d/rc.sysinit `pkgctl -w /etc/system/rc.d/rc.sysinit`

Files:

/dev/pkginfoXX
User configuration files for the package filesystem.
/usr/sbin/pkgctl
This utility is located in the /usr/sbin/ directory, which is not included in the default PATH of non-root users. If you are not root, specify the full path.

See also:

cl-installer, fs-pkg, qnxinstall

"Package filesystem" in the Working With Filesystems chapter of the User's Guide


[Previous] [Contents] [Index] [Next]