System Administration Guide: Devices and File Systems

ProcedureHow to Unpack Files or Packing Lists From the Cache

  1. Unpack files or packing lists from the cache.


    $ cachefspack -u filename | -U cache-directory
    
    -u

    Specifies that you want the file or files unpacked. You must specify a file name with this option.

    filename

    Specifies the name of the file or packing list that you want unpacked in the cache.

    -U

    Specifies that you want to unpack all files in the cache.

    For more information, see cachefspack(1M).


Example 19–12 Unpacking Files or Packing Lists From the Cache

The following example shows the file /data/abc/bin/big being unpacked from the cache.


$ cachefspack -u /data/abc/bin/big

The following example shows three files being unpacked from the cache.


$ cd /data/abc/bin/big
$ cachefspack -u big small medium

The following example shows how to unpack a packing list. A packing list is a file that contains the path to a directory of files:


$ cachefspack -uf list.pkg

The following example uses the -U option to specify that all files in a cache directory being unpacked.


$ cachefspack -U /local/mycache

You cannot unpack a cache that does not have at least one file system mounted. With the -U option, if you specify a cache that does not contain mounted file systems, output similar to the following is displayed:


$ cachefspack -U /local/mycache
cachefspack: Could not unpack cache /local/mycache, no mounted
filesystems in the cache.