aboutsummaryrefslogtreecommitdiff
path: root/src/docs/Usage.html
blob: 65ade0dce90b66765a5735d1aa1265d7bdebbaa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2020 Cem Keylan

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free
Documentation License." -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Usage (Carbs Linux User Manual)</title>

<meta name="description" content="Usage (Carbs Linux User Manual)">
<meta name="keywords" content="Usage (Carbs Linux User Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Package-Manager.html" rel="up" title="Package Manager">
<link href="cpt_002dalternatives.html" rel="next" title="cpt-alternatives">
<link href="Package-Manager.html" rel="prev" title="Package Manager">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<span id="Usage"></span><div class="header">
<p>
Next: <a href="Environment-Variables.html" accesskey="n" rel="next">Environment Variables</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="Usage-1"></span><h3 class="section">2.1 Usage</h3>

<p><code>cpt</code> is formed of many tools combined in a single environment, similar
to <code>git</code>. When you run <code>cpt</code> without any arguments, it will show
all available tools and their explanations. Here is an example call with extra
scripts on my system:
</p>
<div class="example">
<pre class="example">-&gt; Carbs Packaging Tool
-&gt; add               Commit the current directory as a new package
-&gt; alternatives      List and swap to alternatives
-&gt; build             Build a package
-&gt; bump              Commit the current directory as a version bump
-&gt; cargo-urlgen      Create static cargo sources for Rust packages
-&gt; cargolock-urlgen  Convert the given Cargo.lock file to sources
-&gt; cat               Concatanate package files in the installed package database
-&gt; changelog         Print the git log of the specific package
-&gt; chbuild           Create/destroy temporary chroots
-&gt; checkmissing      Verify package manifests
-&gt; checksum          Generate checksums
-&gt; chroot            Enter a chroot
-&gt; commit            Commit a package without the prefix of 'package:'
-&gt; depends           Display a package's dependencies
-&gt; download          Download sources for the given package
-&gt; exec              Execute a command inside the alternatives system
-&gt; export            Turn an installed package into a CPT tarball
-&gt; fetch             Fetch repositories
-&gt; fork              Fork a package to the current directory
-&gt; getchoice         Prints the full path to a file in the alternatives system.
-&gt; install           Install a package
-&gt; link              Link a forked package's files to the other repository
-&gt; list              List installed packages
-&gt; maintainer        Find the maintainer of a package
-&gt; manifest          Display all files owned by a package
-&gt; manifest-tree     Display all files owned by a package with a tree view
-&gt; new               Create a boilerplate CPT package
-&gt; orphans           List orphaned packages
-&gt; owns              Check which package owns a file
-&gt; rel               Bump the release number of a package
-&gt; remove            Remove a package
-&gt; repodepends       Display a package's dependencies in the repository
-&gt; reporevdepends    Display packages on the repository which depend on package
-&gt; reset             Remove all packages except for the base
-&gt; revdepends        Display packages which depend on package
-&gt; search            Search for a package
-&gt; size              Show the size on disk for a package
-&gt; source            Extract sources of a given package to the current directory
-&gt; update            Check for updates
</pre></div>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">&bull; <a href="cpt_002dalternatives.html" accesskey="1"><code>cpt-alternatives</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dbuild.html" accesskey="2"><code>cpt-build</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dchecksum.html" accesskey="3"><code>cpt-checksum</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002ddownload.html" accesskey="4"><code>cpt-download</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dfetch.html" accesskey="5"><code>cpt-fetch</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dinstall.html" accesskey="6"><code>cpt-install</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dlist.html" accesskey="7"><code>cpt-list</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dremove.html" accesskey="8"><code>cpt-remove</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dsearch.html" accesskey="9"><code>cpt-search</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="cpt_002dupdate.html"><code>cpt-update</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
</table>



<hr>
<div class="header">
<p>
Next: <a href="Environment-Variables.html" accesskey="n" rel="next">Environment Variables</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>



</body>
</html>