openpkg.1 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. .\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sh \" Subsection heading
  6. .br
  7. .if t .Sp
  8. .ne 5
  9. .PP
  10. \fB\\$1\fR
  11. .PP
  12. ..
  13. .de Sp \" Vertical space (when we can't use .PP)
  14. .if t .sp .5v
  15. .if n .sp
  16. ..
  17. .de Vb \" Begin verbatim text
  18. .ft CW
  19. .nf
  20. .ne \\$1
  21. ..
  22. .de Ve \" End verbatim text
  23. .ft R
  24. .fi
  25. ..
  26. .\" Set up some character translations and predefined strings. \*(-- will
  27. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  28. .\" double quote, and \*(R" will give a right double quote. | will give a
  29. .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
  30. .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
  31. .\" expand to `' in nroff, nothing in troff, for use with C<>.
  32. .tr \(*W-|\(bv\*(Tr
  33. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  34. .ie n \{\
  35. . ds -- \(*W-
  36. . ds PI pi
  37. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  38. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  39. . ds L" ""
  40. . ds R" ""
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .el\{\
  45. . ds -- \|\(em\|
  46. . ds PI \(*p
  47. . ds L" ``
  48. . ds R" ''
  49. 'br\}
  50. .\"
  51. .\" If the F register is turned on, we'll generate index entries on stderr for
  52. .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
  53. .\" entries marked with X<> in POD. Of course, you'll have to process the
  54. .\" output yourself in some meaningful fashion.
  55. .if \nF \{\
  56. . de IX
  57. . tm Index:\\$1\t\\n%\t"\\$2"
  58. ..
  59. . nr % 0
  60. . rr F
  61. .\}
  62. .\"
  63. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  64. .\" way too many mistakes in technical documents.
  65. .hy 0
  66. .if n .na
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "OPENPKG 1"
  132. .TH OPENPKG 1 "2002-11-26" "openpkg-tool" "OpenPKG Maintainance"
  133. .SH "NAME"
  134. \&\fBopenpkg\fR \- \fBOpenPKG\fR maintainance utility
  135. .SH "VERSION"
  136. .IX Header "VERSION"
  137. openpkg-tool \f(CW@version\fR@
  138. .SH "SYNOPSIS"
  139. .IX Header "SYNOPSIS"
  140. \&\fBopenpkg\fR
  141. \&\fBindex\fR
  142. [\fB\-r\fR \fIresource\fR]
  143. [\fB\-p\fR \fIplatform\fR]
  144. [\fB\-C\fR \fIcache.db\fR]
  145. [\fB\-o\fR \fIindex.rdf\fR]
  146. [\fB\-c\fR]
  147. [\fB\-i\fR]
  148. \&\fIdir\fR ...
  149. .PP
  150. \&\fBopenpkg\fR
  151. \&\fBbuild\fR
  152. [\fB\-R\fR \fIrpm\fR]
  153. [\fB\-r\fR \fIrepository\fR]
  154. [\fB\-f\fR \fIindex.rdf\fR]
  155. [\fB\-u\fR]
  156. [\fB\-U\fR]
  157. [\fB\-z\fR]
  158. [\fB\-Z\fR]
  159. [\fB\-i\fR]
  160. [\fB\-q\fR]
  161. [\fB\-P\fR \fIpriv-cmd\fR]
  162. [\fB\-N\fR \fInon-priv-cmd\fR]
  163. [\fB\-p\fR \fIplatform\fR]
  164. [\fB\-D\fR\fIvar\fR=\fIval\fR ...]
  165. [\fB\-E\fR \fIname\fR ...]
  166. ([\fB\-a\fR] [\fB\-A\fR] | \fIpatternlist\fR)
  167. .SH "DESCRIPTION"
  168. .IX Header "DESCRIPTION"
  169. \&\fBopenpkg\fR is a frontend utility for maintaining an \fBOpenPKG\fR instance.
  170. It currenty provides indexing of \s-1RPM\s0 files (\fBopenpkg index\fR) and
  171. automated recursive from-scratch installation and updating of existing
  172. \&\s-1RPM\s0 packages (\fBopenpkg build\fR).
  173. .SH "COMMANDS"
  174. .IX Header "COMMANDS"
  175. .Sh "\s-1OPENPKG\s0 \s-1INDEX\s0"
  176. .IX Subsection "OPENPKG INDEX"
  177. \&\fBopenpkg-index\fR creates an \s-1XML/RDF\s0 based resource index for \s-1RPM\s0
  178. \&\fI.spec\fR files in a source tree or from an \s-1RPM\s0 package repository. The
  179. index holds enough information to support an automated build process by
  180. \&\fBopenpkg build\fR.
  181. .PP
  182. The following command line options exist:
  183. .IP "\fB\-r\fR \fIresource\fR" 4
  184. .IX Item "-r resource"
  185. The name of the resource stored in the index. The default is
  186. "\f(CW\*(C`OpenPKG\-CURRENT/Source/\*(C'\fR".
  187. .IP "\fB\-p\fR \fIplatform\fR" 4
  188. .IX Item "-p platform"
  189. \&\fBopenpkg index\fR adds a platform attribute for binary RPMs. The
  190. attribute is built as \fI%{arch}\fR\f(CW\*(C`\-\*(C'\fR\fIplatform\fR\f(CW\*(C`\-\*(C'\fR\fI%{os}\fR where
  191. \&\fI%{arch}\fR and \fI%{os}\fR are taken from the \s-1RPM\s0 header and \fIplatform\fR is
  192. the value of the \fB\-p\fR option. The default value is "\f(CW\*(C`unkown\*(C'\fR". This
  193. must be used to distinguish between platforms that support the same
  194. Architecture and \s-1OS\s0 name like various Linux distributions.
  195. .IP "\fB\-C\fR \fIcache.db\fR" 4
  196. .IX Item "-C cache.db"
  197. Cache all \fI.spec\fR files into this Berkeley-DB file when indexing source
  198. RPMs. The cache is refreshed automatically when the source RPMs are more
  199. recent than the cache entry.
  200. .IP "\fB\-o\fR \fIindex.rdf\fR" 4
  201. .IX Item "-o index.rdf"
  202. Name of the output \s-1XML/RDF\s0 file, default is to write to \fIstdout\fR.
  203. .IP "\fB\-c\fR" 4
  204. .IX Item "-c"
  205. Compress output with \f(CW\*(C`bzip2\*(C'\fR. Use the \fB\-o\fR option to specify a \fI.bz2\fR
  206. suffix.
  207. .IP "\fB\-i\fR" 4
  208. .IX Item "-i"
  209. The specified directories are \s-1RPM\s0 repositories. Build index over
  210. all \fI.rpm\fR files in these directories and all subdirectories.
  211. If a subdirectory already contains a \f(CW\*(C`00INDEX.rdf\*(C'\fR or \f(CW\*(C`00INDEX.rdf.*\*(C'\fR
  212. file then skip scanning the subdirectory, instead add a reference
  213. to the index file into the new index.
  214. .Sp
  215. Without this option the directories are source trees with a subdirectory
  216. per package and a \fIpackage\fR\f(CW\*(C`.spec\*(C'\fR file inside each subdirectory.
  217. .Sh "\s-1OPENPKG\s0 \s-1BUILD\s0"
  218. .IX Subsection "OPENPKG BUILD"
  219. \&\fBopenpkg build\fR writes a shell script to standard output that installs
  220. or upgrades software packages including all dependencies. Packages that
  221. are upgraded automatically trigger rebuilds of all packages that depend
  222. on the upgraded package (\*(L"reverse dependencies\*(R"). The dependency
  223. information is read from an index generated by \fBopenpkg index\fR.
  224. .PP
  225. The following command line options exist:
  226. .IP "\fB\-R\fR \fIrpm\fR" 4
  227. .IX Item "-R rpm"
  228. Specify a path to the installed \fBOpenPKG\fR \f(CW\*(C`rpm\*(C'\fR executable. Several
  229. other internal paths are deduced from the \fIrpm\fR path, so this should be
  230. something like \fI%{l_prefix}\fR\f(CW\*(C`/bin/rpm\*(C'\fR.
  231. .IP "\fB\-r\fR \fIrepository\fR" 4
  232. .IX Item "-r repository"
  233. Specify a path to an \s-1RPM\s0 repository, this can be a \s-1URL\s0 or a directory
  234. path. The name of the package file is appended to this path.
  235. The default is to use a \s-1URL\s0 pointing to the \fBOpenPKG\fR \s-1FTP\s0 server.
  236. .IP "\fB\-f\fR \fIindex.rdf\fR" 4
  237. .IX Item "-f index.rdf"
  238. Specify a path to the primary \s-1XML/RDF\s0 index, this can be a \s-1URL\s0 or a
  239. file path. If the index contains references to aother indexes these are
  240. included automatically. The default is to use a \s-1URL\s0 pointing to the
  241. \&\fBOpenPKG\fR \s-1FTP\s0 server for the \fBOpenPKG\fR release you are using.
  242. .IP "\fB\-u\fR" 4
  243. .IX Item "-u"
  244. The generated script will ignore binary RPMs that are stored on
  245. your system. Instead it will either fetch binary RPMs or rebuild
  246. from source RPMs fetched from the repository.
  247. .IP "\fB\-U\fR" 4
  248. .IX Item "-U"
  249. The generated script will try to upgrade all selected packages
  250. including their dependencies to the most recent version.
  251. .IP "\fB\-z\fR" 4
  252. .IX Item "-z"
  253. The generated script will rebuild all selected packages
  254. including their dependencies even when the most recent version
  255. is already installed.
  256. .IP "\fB\-Z\fR" 4
  257. .IX Item "-Z"
  258. \&\fBopenpkg build\fR ignores a installed packages, the
  259. script will rebuild all selected packages from scratch.
  260. Note that this doesn't work together with the \fB\-a\fR option.
  261. .IP "\fB\-i\fR" 4
  262. .IX Item "-i"
  263. The generated script will ignore errors. However, if a build
  264. phase fails the install phase is still skipped.
  265. .IP "\fB\-q\fR" 4
  266. .IX Item "-q"
  267. Ignore all reverse dependencies.
  268. \&\fI\s-1ATTENTION:\s0 this might break already installed packages!\fR
  269. .IP "\fB\-P\fR \fIpriv-cmd\fR" 4
  270. .IX Item "-P priv-cmd"
  271. Command prefix to use for install commands that require elevated
  272. privileges. The most common tool for this is \fIsudo\fR\|(1).
  273. .IP "\fB\-N\fR \fInon-priv-cmd\fR" 4
  274. .IX Item "-N non-priv-cmd"
  275. Command prefix to use for install commands that do not require elevated
  276. privileges. The most common tool for this is \fIsudo\fR\|(1).
  277. .IP "\fB\-p\fR \fIplatform\fR" 4
  278. .IX Item "-p platform"
  279. The platform string that is matched against the index for binary
  280. packages. Default is to use the \fI%{_target_platform}\fR variable.
  281. .IP "\fB\-D\fR\fIvar\fR=\fIval\fR" 4
  282. .IX Item "-Dvar=val"
  283. Specify configuration options for all selected packages. This can be
  284. either \fB\-D\fR\f(CW\*(C`with_\*(C'\fR\fIxxx\fR\f(CW\*(C`=\*(C'\fR\fIyyy\fR or just \fB\-D\fR\f(CW\*(C`with_\*(C'\fR\fIxxx\fR, the
  285. latter is equivalent to a \fB\-D\fR\f(CW\*(C`with_\*(C'\fR\fIxxx\fR\f(CW\*(C`=\*(C'\fR\f(CW\*(C`yes\*(C'\fR. The parameters
  286. are matched against selected packages that are already installed. If
  287. they do indicate a change the package is rebuild. There can be multiple
  288. \&\fB\-D\fR options.
  289. .IP "\fB\-E\fR \fIname\fR" 4
  290. .IX Item "-E name"
  291. Ignore a package with the specified \fIname\fR. This can be used to avoid
  292. upgrading to a broken package in the repository. There can be multiple
  293. \&\fB\-E\fR options.
  294. .IP "\fB\-a\fR" 4
  295. .IX Item "-a"
  296. Select all installed packages. Do not specify a pattern list together
  297. with the \fB\-a\fR option.
  298. .IP "\fB\-A\fR" 4
  299. .IX Item "-A"
  300. Select all packages in the repository. Do not specify a pattern list together
  301. with the \fB\-a\fR option.
  302. .SH "CONFIGURATION"
  303. .IX Header "CONFIGURATION"
  304. \&\fBopenpkg build\fR reads the configuration file \fI$HOME/.openpkg/build\fR.
  305. The file lists default options, one option per line and section tags
  306. of the form \f(CW\*(C`[\*(C'\fR\fIprefix\fR\f(CW\*(C`]\*(C'\fR. Options following such a tag are only
  307. evaluated if the selected \s-1RPM\s0 path matches the prefix so that you can
  308. define default options for multiple \fBOpenPKG\fR hierarchies.
  309. .SH "CAVEATS"
  310. .IX Header "CAVEATS"
  311. Parallel execution of \fBopenpkg build\fR causes undefined effects.
  312. .SH "SEE ALSO"
  313. .IX Header "SEE ALSO"
  314. \&\fIrpm\fR\|(1), \fIsudo\fR\|(1)
  315. .SH "HISTORY"
  316. .IX Header "HISTORY"
  317. The \fBopenpkg index\fR and \fBopenpkg build\fR command
  318. was invented in November 2002 by \fIMichael van Elst\fR
  319. <mlelstv@dev.de.cw.net> under contract with \fICable & Wireless
  320. Germany\fR <http://www.cw.com/de> for use inside the \fBOpenPKG\fR
  321. project <http://www.openpkg.org/>.
  322. .SH "AUTHORS"
  323. .IX Header "AUTHORS"
  324. .Vb 2
  325. \& Michael van Elst
  326. \& mlelstv@dev.de.cw.net
  327. .Ve