# ICUPKG - extract or modify an ICU .dat archive - man(8) - [phpMan]

[_ICUPKG_(8)](https://www.chedong.com/phpMan.php/man/ICUPKG/8/markdown)                                  ICU 74.2 Manual                                 [_ICUPKG_(8)](https://www.chedong.com/phpMan.php/man/ICUPKG/8/markdown)

## NAME
       **icupkg **- extract or modify an ICU **.dat **archive

## SYNOPSIS
       **icupkg **[ **-h**, **-?**, **--help **] [ **-tl**, **--type **l | **-tb**, **--type **b | **-te**, **--type **e ] [ **-c**, **--copyright**
       |  **-C**,  **--comment _**comment_ ] [ **-a**, **--add _**list_ ] [ **-r**, **--remove _**list_ ] [ **-x**, **--extract _**list_ ] [
### -l --list  -s --sourcedir _ -d --destdir _ -w --writepkg  
### -m --matchmode _

## DESCRIPTION
       **icupkg  **reads the input ICU **.dat **package file, modify it according to the options, swap it to
       the desired platform properties (charset & endianness), and optionally  write  the  resulting
       ICU  **.dat  **package  to  the  output  file.  Items are removed, then added, then extracted and
       listed.  An ICU **.dat **package is written if items are removed or added, or if  the  input  and
       output filenames differ, or if the **-w**, **--writepkg **option is set.

       If  the  input filename is "new" then an empty package is created.  If the output filename is
       missing, then it is automatically generated from the input filename. If  the  input  filename
       ends  with an l, b, or e matching its platform properties, then the output filename will con‐
       tain the letter from the **-t**, **--type **option.

       This tool can also be used to just swap a single ICU data file, replacing the former  icuswap
       tool.  For this mode, provide the infilename (and optional outfilename) for a non-package ICU
       data file.  Allowed options include **-t**, **-w**, **-s **and **-d **The filenames can be absolute, or rela‐
       tive to the source/dest dir paths.  Other options are not allowed in this mode.

## OPTIONS
### -h -? --help
              Print help about usage and exit.

### -tl --type _
              Output for little-endian/ASCII charset family.  The output type defaults to the  input
              type.

### -tb --type _
              Output  for  big-endian/ASCII  charset  family.  The output type defaults to the input
              type.

### -te --type _
              Output for big-endian/EBCDIC charset family.  The output type defaults  to  the  input
              type.

### -c --copyright
              Include the ICU copyright notice in the resulting data.

### -C --comment _
              Include  the  specified _comment_ in the resulting data instead of the ICU copyright no‐
              tice.

### -a --add _
              Add items from the _list_ to the package. The list can be a single filename with a  **.txt**
              file extension containing a list of item filenames, or an ICU **.dat **package filename.

### -r --remove _
              Remove  items from the _list_ from the package. The list can be a single filename with a
              **.txt **file extension containing a list of item filenames, or an ICU **.dat **package  file‐
              name.

### -x --extract _
              Extract items from the _list_ from the package. The list can be a single filename with a
              **.txt  **file extension containing a list of item filenames, or an ICU **.dat **package file‐
              name.

### -m --matchmode _
              Set the matching mode for item names with wildcards.

### -s --sourcedir _
              Set the source directory to _source_.  The default source directory is the  current  di‐
              rectory.

### -d --destdir _
              Set  the  destination  directory to _destination_.  The default destination directory is
              the current directory.

### -l --list
              List the package items to stdout (after modifying the package).

## LIST FILE SYNTAX
       Items are listed on one or more lines and separated by whitespace (space+tab).  Comments  be‐
       gin  with  **#  **and  are ignored. Empty lines are ignored. Lines where the first non-whitespace
       character is one of "%&'()*+,-./:;<=>?_ are also ignored to reserve for future syntax.

       Items for removal or extraction may contain a single *** **wildcard character. The *** **matches zero
       or more characters. If **-m**, **--matchmode _**noslash_ is set, then the *** **character  does  not  match
       the **/ **character.

       Items  must be listed relative to the package, and the **--sourcedir **or the **--destdir **path will
       be prepended. The paths are only prepended to  item  filenames  while  adding  or  extracting
       items, not to ICU .dat package or list filenames.

       Paths  may  contain **/ **instead of the platform's file separator character and are converted as
       appropriate.

## AUTHORS
       Markus Scherer
       George Rhoten

## VERSION
       1.0

## COPYRIGHT
       Copyright (C) 2006 IBM, Inc. and others.

## SEE ALSO
       [**pkgdata**(1)](https://www.chedong.com/phpMan.php/man/pkgdata/1/markdown) [**genrb**(1)](https://www.chedong.com/phpMan.php/man/genrb/1/markdown)


ICU MANPAGE                                18 August 2006                                  [_ICUPKG_(8)](https://www.chedong.com/phpMan.php/man/ICUPKG/8/markdown)
