blob: be05c3020b1466a1d8390a09045c36bc46e7aae8 (
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="Environment-Variables.html" accesskey="n" rel="next">Environment Variables</a>, Up: <a href="Package-Manager.html" accesskey="u" rel="up">Package Manager</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">-> Carbs Packaging Tool
-> add Commit the current directory as a new package
-> alternatives List and swap to alternatives
-> build Build a package
-> bump Commit the current directory as a version bump
-> cargo-urlgen Create static cargo sources for Rust packages
-> cargolock-urlgen Convert the given Cargo.lock file to sources
-> cat Concatanate package files in the installed package database
-> changelog Print the git log of the specific package
-> chbuild Create/destroy temporary chroots
-> checkmissing Verify package manifests
-> checksum Generate checksums
-> chroot Enter a chroot
-> commit Commit a package without the prefix of 'package:'
-> depends Display a package's dependencies
-> download Download sources for the given package
-> exec Execute a command inside the alternatives system
-> export Turn an installed package into a CPT tarball
-> fetch Fetch repositories
-> fork Fork a package to the current directory
-> getchoice Prints the full path to a file in the alternatives system.
-> install Install a package
-> link Link a forked package's files to the other repository
-> list List installed packages
-> maintainer Find the maintainer of a package
-> manifest Display all files owned by a package
-> manifest-tree Display all files owned by a package with a tree view
-> new Create a boilerplate CPT package
-> orphans List orphaned packages
-> owns Check which package owns a file
-> rel Bump the release number of a package
-> remove Remove a package
-> repodepends Display a package's dependencies in the repository
-> reporevdepends Display packages on the repository which depend on package
-> reset Remove all packages except for the base
-> revdepends Display packages which depend on package
-> search Search for a package
-> size Show the size on disk for a package
-> source Extract sources of a given package to the current directory
-> update Check for updates
</pre></div>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="cpt_002dalternatives.html" accesskey="1"><code>cpt-alternatives</code></a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="cpt_002dbuild.html" accesskey="2"><code>cpt-build</code></a></td><td> </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> </p>
</div>
</body>
</html>
|