1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
\r
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
\r
6 <meta name="generator" content="AsciiDoc 8.2.2" />
\r
7 <style type="text/css">
\r
9 p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
\r
11 border: 1px solid red;
\r
16 margin: 1em 5% 1em 5%;
\r
21 text-decoration: underline;
\r
39 h1, h2, h3, h4, h5, h6 {
\r
41 font-family: sans-serif;
\r
43 margin-bottom: 0.5em;
\r
48 border-bottom: 2px solid silver;
\r
51 border-bottom: 2px solid silver;
\r
61 border: 1px solid silver;
\r
66 margin-bottom: 0.5em;
\r
76 font-family: sans-serif;
\r
83 font-family: sans-serif;
\r
87 font-family: sans-serif;
\r
89 border-top: 2px solid silver;
\r
95 padding-bottom: 0.5em;
\r
99 padding-bottom: 0.5em;
\r
103 div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
\r
104 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
\r
105 div.admonitionblock {
\r
108 margin-bottom: 1.5em;
\r
110 div.admonitionblock {
\r
112 margin-bottom: 2.5em;
\r
115 div.content { /* Block element content. */
\r
119 /* Block element titles. */
\r
120 div.title, caption.title {
\r
121 font-family: sans-serif;
\r
125 margin-bottom: 0.5em;
\r
131 td div.title:first-child {
\r
134 div.content div.title:first-child {
\r
137 div.content + div.title {
\r
141 div.sidebarblock > div.content {
\r
142 background: #ffffee;
\r
143 border: 1px solid silver;
\r
150 div.listingblock > div.content {
\r
151 border: 1px solid silver;
\r
152 background: #f4f4f4;
\r
156 div.quoteblock > div.content {
\r
157 padding-left: 2.0em;
\r
163 div.verseblock + div.attribution {
\r
167 div.admonitionblock .icon {
\r
168 vertical-align: top;
\r
171 text-decoration: underline;
\r
173 padding-right: 0.5em;
\r
175 div.admonitionblock td.content {
\r
176 padding-left: 0.5em;
\r
177 border-left: 2px solid silver;
\r
180 div.exampleblock > div.content {
\r
181 border-left: 2px solid silver;
\r
185 div.verseblock div.content {
\r
189 div.imageblock div.content { padding-left: 0; }
\r
190 div.imageblock img { border: 1px solid silver; }
\r
191 span.image img { border-style: none; }
\r
195 margin-bottom: 0.8em;
\r
200 font-style: italic;
\r
202 dd > *:first-child {
\r
207 list-style-position: outside;
\r
210 list-style-type: lower-alpha;
\r
213 div.tableblock > table {
\r
214 border: 3px solid #527bbd;
\r
217 font-family: sans-serif;
\r
226 margin-bottom: 0.8em;
\r
229 padding-bottom: 5px;
\r
232 vertical-align: top;
\r
233 font-style: italic;
\r
234 padding-right: 0.8em;
\r
237 vertical-align: top;
\r
241 div#footer-badges { display: none; }
\r
246 font-family: sans-serif;
\r
250 margin-bottom: 0.1em;
\r
253 div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
\r
269 /* Workarounds for IE6's broken and incomplete CSS2. */
\r
271 div.sidebar-content {
\r
272 background: #ffffee;
\r
273 border: 1px solid silver;
\r
276 div.sidebar-title, div.image-title {
\r
277 font-family: sans-serif;
\r
280 margin-bottom: 0.5em;
\r
283 div.listingblock div.content {
\r
284 border: 1px solid silver;
\r
285 background: #f4f4f4;
\r
289 div.quoteblock-content {
\r
290 padding-left: 2.0em;
\r
293 div.exampleblock-content {
\r
294 border-left: 2px solid silver;
\r
295 padding-left: 0.5em;
\r
298 /* IE6 sets dynamically generated links as visited. */
\r
299 div#toc a:visited { color: blue; }
\r
301 <script type="text/javascript">
\r
303 window.onload = function(){generateToc(2)}
\r
304 /* Author: Mihai Bazon, September 2002
\r
305 * http://students.infoiasi.ro/~mishoo
\r
307 * Table Of Content generator
\r
310 * Feel free to use this script under the terms of the GNU General Public
\r
311 * License, as long as you do not remove or alter this notice.
\r
314 /* modified by Troy D. Hanson, September 2006. License: GPL */
\r
315 /* modified by Stuart Rackham, October 2006. License: GPL */
\r
317 function getText(el) {
\r
319 for (var i = el.firstChild; i != null; i = i.nextSibling) {
\r
320 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
\r
322 else if (i.firstChild != null)
\r
323 text += getText(i);
\r
328 function TocEntry(el, text, toclevel) {
\r
331 this.toclevel = toclevel;
\r
334 function tocEntries(el, toclevels) {
\r
335 var result = new Array;
\r
336 var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
\r
337 // Function that scans the DOM tree for header elements (the DOM2
\r
338 // nodeIterator API would be a better technique but not supported by all
\r
340 var iterate = function (el) {
\r
341 for (var i = el.firstChild; i != null; i = i.nextSibling) {
\r
342 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
\r
343 var mo = re.exec(i.tagName)
\r
345 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
\r
354 // This function does the work. toclevels = 1..4.
\r
355 function generateToc(toclevels) {
\r
356 var toc = document.getElementById("toc");
\r
357 var entries = tocEntries(document.getElementsByTagName("body")[0], toclevels);
\r
358 for (var i = 0; i < entries.length; ++i) {
\r
359 var entry = entries[i];
\r
360 if (entry.element.id == "")
\r
361 entry.element.id = "toc" + i;
\r
362 var a = document.createElement("a");
\r
363 a.href = "#" + entry.element.id;
\r
364 a.appendChild(document.createTextNode(entry.text));
\r
365 var div = document.createElement("div");
\r
366 div.appendChild(a);
\r
367 div.className = "toclevel" + entry.toclevel;
\r
368 toc.appendChild(div);
\r
373 <title>Cookbook for the grml repository software</title>
\r
377 <h1>Cookbook for the grml repository software</h1>
\r
379 <div id="toctitle">Table of Contents</div>
\r
380 <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
\r
383 <h2>1. Preface</h2>
\r
384 <div class="sectionbody">
\r
385 <p>This is a short documentation for common tasks with the grml repository.
\r
386 Notice: reprepro actions have to take place in ~/grml-repo/archive.</p>
\r
388 <h2>2. Recipes</h2>
\r
389 <div class="sectionbody">
\r
390 <p>Here are some common tasks:</p>
\r
391 <div class="listingblock">
\r
392 <div class="title">Example: Add a single deb to a distribution</div>
\r
393 <div class="content">
\r
394 <pre><tt>#insert the deb
\r
395 reprepro includedeb `<suite>` `<foo.deb>`
\r
397 reprepro list `<suite>` `<packagename>`</tt></pre>
\r
399 <div class="listingblock">
\r
400 <div class="title">Example: Copy all packages from one repo to another</div>
\r
401 <div class="content">
\r
402 <pre><tt>reprepro dumptracks grml-testing | \
\r
403 awk '/ pool\/.*\/.*\.deb/ {print $1}' | \
\r
404 xargs -n 1 basename | cut -d _ -f 1 | \
\r
405 sort -u | xargs reprepro copy \
\r
406 grml-test grml-testing</tt></pre>
\r
408 <div class="listingblock">
\r
409 <div class="title">Example: Move a package from one distribution to another</div>
\r
410 <div class="content">
\r
411 <pre><tt>#move the package
\r
412 reprepro copy `<source distribution>` `<target distribution>` `<packagename>`
\r
414 reprepro list `<target distribution>`</tt></pre>
\r
416 <div class="exampleblock">
\r
417 <div class="title">Example: Adding users</div>
\r
418 <div class="exampleblock-content">
\r
419 <p>Prerequsites:</p>
\r
423 GPG Key ID of the new user
\r
428 ssh public-key of the new user
\r
432 <p>Steps to follow to allow uploading for a new user:</p>
\r
436 Add the public-key to /home/incoming/.ssh/authorized_keys
\r
441 As user archive do: ~/grml-repo/bin/importkey.sh <tt>GPGKeyid</tt>
\r
447 <h2>3. About this document</h2>
\r
448 <div class="sectionbody">
\r
449 <p>(c) Michael Prokop <mika@grml.org> and Alexander Wirt <formorer@grml.org>; HTML version powered by <a href="http://www.methods.co.nz/asciidoc/">asciidoc</a>.</p>
\r
452 <div id="footer-text">
\r
453 Last updated 29-Feb-2008 04:31:59 CEST
\r