aboutsummaryrefslogtreecommitdiff
path: root/man/cpt-contrib.1
blob: 8a34364b34cc64f14ea831abd5a7a53f2c5507f6 (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
.TH CPT-CONTRIB 1 2020-04-04 "CARBS LINUX" "General Commands Manual"
.SH NAME
cpt utilities
.SH DESCRIPTION
This manual page is not for a single program, but for multiple
utilities. Programs are explained in their own sections. They
are listed alphabetically.
.SH CPT-CAT
.B cpt-cat
<pkg> [file] [file]

Concatanates a package's files inside the system database. If no file is
specified, it looks for \fBbuild\fR, \fBdepends\fR, \fBsources\fR, and
\fBversion\fR.
.SH CPT-CHBUILD
.B cpt-chbuild

cpt-chbuild, creates a temporary rootfs, and chroots into it.

If it doesn't already exist, cpt-chbuild downloads the rootfs tarball to
your cache directory and extracts it into a \fBcarbs-chroot\fR directory.

It then copies the chroot to a temporary directory, and runs cpt-chroot
to it. It removes the temporary chroot after the user exits.
.SH CPT-CHROOT
.B cpt-chroot
<directory>

Mounts the required devices to the given directory, copies /etc/resolv.conf
from host, and chroots into the given directory. Cleans up after exit.
.SH CPT-DEPENDS
.B cpt-depends
<pkg>

Checks the dependencies of an installed package.
.SH CPT-EXPORT
.B cpt-export
<pkg>

Exports a package tarball of an installed package.
.SH CPT-FORK
.B cpt-fork
<pkg>

Copies the repository directory of the given package to the current working
directory.
.SH CPT-LINK
.B cpt-link
[file] [file]

Links files from a package in the repository. It looks for the package by
the directory name, but this can be overriden by getting a PKG environment
value.

.IP \fBExample:\fR
.nf
$ cpt-fork git
forked package to /home/cem/.local/repositories/overrides/git
$ cd git
$ cpt-link checksums version sources
linked /home/cem/.local/repositories/main/core/git/version to /home/cem/.local/repositories/overrides/git/version
linked /home/cem/.local/repositories/main/core/git/sources to /home/cem/.local/repositories/overrides/git/sources
linked /home/cem/.local/repositories/main/core/git/checksums to /home/cem/.local/repositories/overrides/git/checksums
.fi
.PP
.SH CPT-MANIFEST
.B cpt-manifest
<pkg>

Prints the manifest file.
.SH CPT-MANIFEST-TREE
.B cpt-manifest-tree
<pkg>

Prints the manifest file in a tree view.
.SH CPT-NEW
.B cpt-new
<name> [version] [sources]

Creates a boilerplate CPT package.
.SH CPT-OUTDATED
.B cpt-outdated

Checks \fIrepology.org\fR to see if any installed packages are outdated. This
can be used to check if personal packages are outdated.
.SH CPT-OWNS
.B cpt-owns
<file>

Checks which package has installed the given file.
.SH CPT-READLINK
.B cpt-readlink
<file>

A 'readlink -f' replacement to be used inside the package manager.
.SH CPT-REPODEPENDS
.B cpt-repodepends
<pkg>

Prints the dependencies of the given package as they are defined in the repository.
.SH CPT-RESET
.B cpt-reset

Removes all packages except the base packages.
.SH CPT-REVDEPENDS
.B cpt-revdepends
<pkg>

Prints the packages that depend on the given package. (Reverse dependencies)
.SH CPT-SIZE
.B cpt-size
<pkg>

Prints the given package's size, and its individual files.
.SH CPT-STAT
.B cpt-stat
<file>

Outputs the owner name of a file/directory
.SH CPT-WHICH
.B cpt-which
<pkg>

A \fIwhich\fR-like utility for CPT packages.
.SH SEE ALSO
cpt(1)