1 .TH 0STORE 1 "2005" "Thomas Leonard" ""
3 0store \- manage the implementation cache
14 (\fBDIGEST\fP | \fBDIRECTORY\fP)
17 \fBDIGEST\fP \fBDIRECTORY\fP
20 (\fBDIGEST\fP | \fBDIRECTORY\fP)
24 0store provides access to the low-level implementation cache. Normally, the
25 cache updated automatically using 0launch(1).
30 See the list of implementation caches currently configured:
36 To generate the manifest for a directory structure:
38 .B 0store manifest DIRECTORY
41 The manifest lists every file and directory in the tree, along with the SHA1
42 digest of each file, thus uniquely identifying that particular set of files.
43 After the manifest, the last line gives the SHA1 digest of the manifest itself.
44 This value is needed when creating interface files. See the packager's guide on
45 the Zero Install web site for details.
49 To find the path of a stored item:
51 .B 0store find sha1=XXX
55 To add a directory to the store (makes a copy):
57 .B 0store add sha1=XXX directory
60 To add an archive to the store:
62 .B 0store add sha1=XXX archive.tgz
65 To add a subdirectory of an archive to the store:
67 .B 0store add sha1=XXX archive.tgz subdir
70 The actual digest is calculated and compared to the given one. If they don't
71 match, the operation is rejected.
75 To check that an item is stored correctly:
77 .B 0store verify /path/to/sha1=XXX
79 This calculates the manifest of the directory and checks that its digest matches
80 the directory's name. It also checks that it matches the digest of the .manifest
81 file inside the directory. If the .manifest doesn't correspond to the current
82 tree, it displays a list of the differences (in unified diff format).
84 .SH COMMAND-LINE OPTIONS
87 \fB-h\fP, \fB--help\fP
88 Show the built-in help text.
91 \fB-v\fP, \fB--verbose\fP
92 More verbose output. Use twice for even more verbose output.
95 \fB-V\fP, \fB--version\fP
96 Display version information.
100 .IP "~/.cache/0install.net/implementations"
101 Cached implementations, indexed by manifest digest.
105 Copyright (C) 2005 Thomas Leonard.
108 You may redistribute copies of this program under the terms of the GNU General Public License.
112 Please report bugs to the developer mailing list:
114 http://0install.net/support.html
118 The Zero Install Injector was created by Thomas Leonard.
121 0alias(1), 0launch(1)
123 The Zero Install web-site:
125 .B http://0install.net