wpkg --extract | -x and wpkg --vextract | -X

Short Hand

wpkg -x
wpkg -X

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 Not used.
--root Define the installation root path.
--verbose Display filenames as files get extracted. Equivalent to using the --vextract command line option.

The --extract and --vextract commands allows you to extract files from the data.tar.gz archive present in a package.

The extract command must be followed by 2 parameters: the name of the package to extract from and the name of a directory where the files being extracted are saved.

By default, the --extract command is quiet. If you extract the files in a directory, then you can use the --verbose option to get the list of files being extracted. The --vextract is a contraction of the --verbose option and --exctract command, it automatically turns on the verbosity of the operation.

The --extract command can be shorten to -x (lower case.) The --vextract command can be shorten to -X (upper case.)

The extraction of files is safe even if the archive includes file names that start with / (i.e. file to be extracted in your root folder) or that include a "..". All the files will always appear under the specified output directory.

Note that only regular files and symbolic links are extracted. Other files are ignored.


The --extract command does not give you an option to extract the entire data.tar.gz archive as one file. Instead, use the --fsys-tarfile command for that purpose.

Syndicate content