aboutsummaryrefslogtreecommitdiff
path: root/src/docs/Usage.html
blob: 84c128362f77fb7a7dfbf3d9511deffa2bc70eb9 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2020 Cem Keylan

Licensed under 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="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="Packaging-System.html" accesskey="n" rel="next">Packaging System</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; </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>
</table>

<hr>
<div class="header">
<p>
Next: <a href="Packaging-System.html" accesskey="n" rel="next">Packaging System</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</a> &nbsp; </p>
</div>



</body>
</html>