wpkg --package-status

Options Comments
--admindir Define the administration directory, where the database of the installed packages resides.
--debug Define a set of flags of things to print out for debug purposes.
--instdir Define the installation directory, where the data files are installed on the target.
--quiet Unused.
--root Define the installation root path.
--verbose Unused.

The --package-status command prints out the status of the specified packages as it appears in the database. The status may be installed, removed, purged, etc. as defined in the table below.

Note that a seemingly valid status (i.e. "installed") does not mean that the package is 100% properly installed. To make sure of that, use the --audit command.

The currently supported output format is:

status: <package name>: [error:] <status>

Where <package name> is the name of the package as it appeared on the command line.

Where <status> is the current status of the package. Note that some statuses are viewed as erroneous in which case we print an error: label too.

The possible statuses are listed in the table below. Note that in case of an error the status becomes an error message.

Status Comment
not-installed The package is not currently installed (in most cases it was purged.)
config-files The package was installed and has been removed. Its configuration files are still present.
installing The package is being installed. (Should never appear as the database lock prevents access while installing.)
upgrading The package is being upgraded which means a newer version is being installed (Should never appear as the database lock prevents access while installing.)
half-installed The package installation failed while extracting the package files. The system is in an invalid state.
unpacked The package was unpacked. (See --unpack)
half-configured The package configuration failed while configuring the package. The system is in an invalid state.
installed The package is currently installed. (See --install)
removing The package is being removed. (Should never appear as the database lock prevents access while removing.)
purging The package is being removed and deconfigured. (Should never appear as the database lock prevents access while removing.)
listing Not currently used.
verifying The system is verifying the database.
ready The database is ready.
error: ... happens when the package cannot be accessed or the current status is unknown.

IMPORTANT NOTE

After a purge the package should not exist in the database anymore. However, at this time wpkg doesn't completely remove a package from the database. This way you have a track record that the package has, at some point in the past, been installed on your system.

 
Syndicate content