website annotate en/doc/manuals/tazpkg.en.html @ rev 543

tazpkg*: add hooks
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 17 12:21:01 2009 +0200 (2009-09-17)
parents 130803f2f1a5
children
rev   line source
paul@70 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
paul@70 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
paul@70 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
paul@70 4 <head>
paul@70 5 <title>Tazpkg Manual</title>
paul@70 6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
paul@70 7 <meta name="description" content="" />
paul@70 8 <meta name="expires" content="never" />
MikeDSmith25@117 9 <meta name="modified" content="2008-07-18 19:45:00" />
paul@70 10 <style type="text/css"><!--
paul@70 11 body { font: 90% sans-serif, vernada, arial; margin: 0; }
paul@70 12 #header { background: #f0ba08; color: black; height: 50px;
paul@70 13 border-top: 1px solid black; border-bottom: 1px solid black; }
paul@70 14 #content { margin: 0px 50px 26px 50px; }
paul@70 15 h1 { margin: 14px 0px 0px 16px; }
paul@70 16 li { line-height: 1.4em; }
paul@70 17 pre { padding: 5px; color: black; background: #e1e0b0; }
paul@70 18 pre.script { padding: 10px; color: black; background: #e8e8e8;
paul@70 19 border: 1px inset #333333; }
paul@70 20 code { font-size: 100%; color: #669900; background: transparent; }
paul@70 21 hr { color: white; background: white; height: 1px; border: 0; }
paul@70 22 --></style>
paul@70 23 </head>
paul@70 24 <body bgcolor="#ffffff">
paul@70 25 <div id="header">
paul@70 26 <h1><font color="#3e1220">Tazpkg Manual</font></h1>
paul@70 27 </div>
paul@70 28 <hr />
paul@70 29 <!-- Start content -->
paul@70 30 <div id="content">
paul@70 31
paul@70 32 <h2>NAME</h2>
paul@70 33 <p>
paul@70 34 Tazpkg - Tiny autonomous zone package manager
paul@70 35 </p>
paul@70 36
paul@70 37 <h2>SYNTAX</h2>
paul@70 38 <pre>
paul@70 39 tazpkg [command] [package|dir|pattern|list|cat|--opt] [dir|--opt]
paul@70 40 </pre>
paul@70 41
paul@70 42 <h2>DESCRIPTION</h2>
paul@70 43 <p>
paul@70 44 Tazpkg is an ultralightweight (~ 35KB) package manager to
paul@70 45 install, list, download, update or remove precompiled packages
paul@70 46 on a GNU/Linux system. Tazpkg offers commands for searching
paul@70 47 and creating packages and was created independently.
paul@70 48 The format of the packages using the *.tazpkg extension is a
paul@70 49 cpio archive containing a filesystem compressed with gzip,
MikeDSmith25@117 50 a receipt and an optional description. Tazpkg also manages
paul@71 51 dependencies based on package receipts. Each receipt contains
MikeDSmith25@117 52 all the information about a package and can also include
paul@70 53 pre and post installation functions. The same receipt is
paul@70 54 used by Tazwok to compile sources and generate a .tazpkg
paul@70 55 package.
paul@70 56 </p>
paul@70 57 <p>
paul@70 58 Tazpkg is entirely built from scratch using SHell script,
paul@70 59 compatible with Bash, it runs under Ash - part of the Busybox
paul@70 60 project. Tazpkg is distributed under the free GNU license GPL V3.
paul@70 61 </p>
paul@70 62
paul@70 63 <h2>COMMANDS</h2>
paul@70 64 <h3><font color="#6c0023">list</font></h3>
paul@70 65 <p>
paul@70 66 List packages installed on the system. This command displays
paul@70 67 a column list of all installed packages, It also allows you to list the
paul@70 68 categories, packages based on category and packages placed on hold.
paul@70 69 You can also use the 'search' command for a list based
paul@70 70 on a term or package name:
paul@70 71 </p>
paul@70 72 <pre>
paul@70 73 # tazpkg list
paul@70 74 # tazpkg list cat|categories
paul@70 75 # tazpkg list blocked
paul@70 76 </pre>
pascal@543 77 <a name="xhtml-list"></a>
paul@70 78 <h3><font color="#6c0023">xhtml-list</font></h3>
paul@70 79 <p>
paul@70 80 The 'xhtml-list' command can create a XHTML list
paul@70 81 of all the packages installed on the system which can be read
MikeDSmith25@117 82 with your preferred Web browser. It can be run as a normal
paul@126 83 user and creates a page 'installed-packages.html' in
paul@70 84 your current directory. Note that you can change the name of the
paul@70 85 generated list via the command line:
paul@70 86 </p>
paul@70 87 <pre>
paul@70 88 # tazpkg xhtml-list
paul@70 89 # tazpkg xhtml-list list-name.html
paul@70 90 </pre>
pascal@543 91 <a name="list-mirror"></a>
paul@70 92 <h3><font color="#6c0023">list-mirror</font></h3>
paul@70 93 <p>
paul@70 94 List packages available on the mirror. This command will
paul@70 95 display the 'packages.list' file recharged from the mirror.
paul@70 96 If this doesn't exist, you will be asked to launch
paul@70 97 'tazpkg recharge' as administrator (root) for a list of
paul@126 98 available packages . The --diff option is used to display
paul@70 99 the differences between the last and current list of packages:
paul@70 100 </p>
paul@70 101 <pre>
paul@70 102 # tazpkg list-mirror
paul@70 103 # tazpkg list-mirror --diff
paul@70 104 </pre>
pascal@543 105 <a name="info"></a>
paul@70 106 <h3><font color="#6c0023">info</font></h3>
paul@70 107 <p>
paul@70 108 Display any information available in the receipt for the
MikeDSmith25@117 109 package in question - its version, category, maintainer,
paul@70 110 Web site and any dependencies (see also Tazwok for more
paul@70 111 information on receipts):
paul@70 112 </p>
paul@70 113 <pre>
paul@70 114 # tazpkg info busybox
paul@70 115 </pre>
pascal@543 116 <a name="desc"></a>
paul@70 117 <h3><font color="#6c0023">desc</font></h3>
paul@70 118 <p>
paul@70 119 Description of the package (if it exists). This command
paul@70 120 displays the 'description.txt' file of each package (a simple
paul@138 121 text file, justified to 80 characters to fit in a standard terminal):
paul@70 122 </p>
paul@70 123 <pre>
paul@70 124 # tazpkg desc busybox
paul@70 125 </pre>
pascal@543 126 <a name="list-config"></a>
paul@185 127 <h3><font color="#6c0023">list-config</font></h3>
paul@185 128 <p>
paul@185 129 Lists the system configuration files. The --box option displays
paul@185 130 in table format:
paul@185 131 </p>
paul@185 132 <pre> # tazpkg list-config
paul@185 133 # tazpkg list-config --box
paul@185 134 </pre>
pascal@543 135 <a name="list-files"></a>
paul@70 136 <h3><font color="#6c0023">list-files</font></h3>
paul@70 137 <p>
paul@70 138 List all files installed with a package. This command will
MikeDSmith25@117 139 simply read and display the 'files.list' of each package which is
paul@70 140 automatically generated when the package is created and is
paul@70 141 also used to remove files when uninstalling a package.
paul@70 142 To list the files installed with the package bc:
paul@70 143 </p>
paul@70 144 <pre>
paul@70 145 # tazpkg list-files bc
paul@70 146 </pre>
pascal@543 147 <a name="search"></a>
paul@70 148 <h3><font color="#6c0023">search</font></h3>
paul@70 149 <p>
MikeDSmith25@117 150 Search for packages by owner or package name. This command
paul@70 151 will search for the term wanted in the installed packages and the
paul@70 152 list of available packages on the mirror. To obtain the
paul@70 153 latest list of installable packages on the mirror, just
paul@70 154 run 'tazpkg recharge' before conducting a search:
paul@70 155 </p>
paul@70 156 <pre>
paul@70 157 # tazpkg search gcc
paul@70 158 </pre>
pascal@543 159 <a name="search-file"></a>
paul@70 160 <h3><font color="#6c0023">search-file</font></h3>
paul@70 161 <p>
paul@70 162 The 'search-file' command allows you to search for a file
paul@70 163 among the files installed by the packages. This command is very
MikeDSmith25@117 164 useful to find the full path to a file and determine if
paul@70 165 a file is present on the system. Example:
paul@70 166 </p>
paul@70 167 <pre>
paul@70 168 $ tazpkg search-file libnss
paul@70 169 </pre>
pascal@543 170 <a name="install"></a>
paul@70 171 <h3><font color="#6c0023">install</font></h3>
paul@70 172 <p>
paul@70 173 This command allows the installation of a local package with
paul@70 174 the .tazpkg extension. See 'get-install' to install a
paul@70 175 package from the internet. Note that you can force the
paul@138 176 installation via the --forced, uninstall and reinstall options
paul@138 177 or specify the root system where you want to install the
paul@70 178 packages via the -root= option:
paul@70 179 </p>
paul@70 180 <pre>
paul@70 181 # tazpkg install package-1.0.tazpkg
paul@70 182 Or :
paul@70 183 # tazpkg install path/to/package-1.0.tazpkg --forced
paul@70 184 Or :
paul@70 185 # tazpkg install path/to/package-1.0.tazpkg --root=/mnt/rootfs
paul@70 186 </pre>
paul@185 187 <h3><font color="#6c0023">install-list or get-install-list</font></h3>
paul@70 188 <p>
paul@70 189 Install a set of packages listed in a file. This command
paul@185 190 allows you to (download and) install several packages with a single command
MikeDSmith25@117 191 and can also be forced:
paul@70 192 </p>
paul@185 193 <pre> # tazpkg install-list my-packages.list
paul@185 194 # tazpkg get-install-list my-packages.list --forced
paul@70 195 </pre>
pascal@543 196 <a name="link"></a>
paul@538 197 <h3><font color="#6c0023">link</font></h3>
paul@538 198 <p>
paul@538 199 This command allows the installation of a package from another media
paul@538 200 device. The set up is done through symbolic links and consumes very little
paul@538 201 memory. It is generally used within the system RAM to install add-ons
paul@538 202 from an USB key:
paul@538 203 </p>
paul@538 204 <pre>
paul@538 205 # tazpkg link openoffice /media/usbdisk
paul@538 206 </pre>
pascal@543 207 <a name="remove"></a>
paul@70 208 <h3><font color="#6c0023">remove</font></h3>
paul@70 209 <p>
MikeDSmith25@117 210 Remove a package. You will be asked for confirmation (y/N).
MikeDSmith25@117 211 This command will delete all files installed with the package.
MikeDSmith25@117 212 To view the list of files, use the 'list-files' command
paul@70 213 followed by the name of the package. Example
paul@70 214 with the package bc:
paul@70 215 </p>
paul@70 216 <pre>
paul@70 217 # tazpkg remove bc
paul@70 218 </pre>
pascal@543 219 <a name="extract"></a>
paul@70 220 <h3><font color="#6c0023">extract</font></h3>
paul@70 221 <p>
paul@70 222 Extract a package into a directory. If you do not specify
paul@70 223 the destination directory, the package will be extracted
paul@70 224 in the current directory using the name package-version:
paul@70 225 </p>
paul@70 226 <pre>
paul@70 227 # tazpkg extract package.tazpkg
paul@70 228 # tazpkg extract package.tazpkg target/dir
paul@70 229 </pre>
pascal@543 230 <a name="pack"></a>
paul@70 231 <h3><font color="#6c0023">pack</font></h3>
paul@70 232 <p>
paul@70 233 The 'pack' command will create a package from a directory
paul@70 234 prepared in advance or from an unpacked package. It can
paul@70 235 also manually create a .tazpkg package (see the Tazwok documentation
paul@70 236 for the automatic creation of packages). To pack a package:
paul@70 237 </p>
paul@70 238 <pre>
paul@70 239 # tazpkg pack package-version
paul@70 240 </pre>
pascal@543 241 <a name="repack"></a>
paul@70 242 <h3><font color="#6c0023">repack</font></h3>
paul@70 243 <p>
paul@171 244 The 'repack' command allows you to recreate a package from
paul@70 245 the files on a system where it was previously installed.
paul@70 246 To repack a package:
paul@70 247 </p>
paul@70 248 <pre>
paul@70 249 # tazpkg repack package
paul@70 250 </pre>
pascal@543 251 <a name="repack-config"></a>
paul@185 252 <h3><font color="#6c0023">repack-config</font></h3>
paul@185 253 <p>
paul@185 254 The 'repack-config' command recreates a package
paul@185 255 of the system configuration files (see list-config). It is enough
paul@185 256 to install the package to find the current configuration. To repack
paul@185 257 the configuration files:
paul@185 258 </p>
paul@185 259 <pre> # tazpkg repack-config
paul@185 260 </pre>
pascal@543 261 <a name="recharge"></a>
paul@70 262 <h3><font color="#6c0023">recharge</font></h3>
paul@70 263 <p>
paul@70 264 Recharge the list of available packages on the mirror.
paul@70 265 This command will download the most recent 'packages.list'
paul@70 266 of installable packages on the mirror and before starting
paul@70 267 will save the old list. Once the list is updated
paul@70 268 you can then use the 'list' and 'search' commands. To view
paul@164 269 and list the differences, you can use 'list-mirror --diff', and to view
paul@164 270 and update packages, you can simply 'upgrade'. To recharge the
paul@70 271 latest list of packages:
paul@70 272 </p>
paul@70 273 <pre>
paul@70 274 # tazpkg recharge
paul@70 275 </pre>
pascal@543 276 <a name="upgrade"></a>
paul@70 277 <h3><font color="#6c0023">upgrade</font></h3>
paul@70 278 <p>
paul@70 279 Upgrade allows you to update all installed packages available
paul@70 280 on the current mirror. Upgrading packages is an important
paul@126 281 part of system security, it helps to keep you secure with
paul@70 282 the latest updates and fixes. The SliTaz project,
paul@70 283 although tiny, provides regular updates on security and generally
paul@70 284 offers the latest versions of software. Note that this
paul@70 285 function is aimed at people with SliTaz installed on a
paul@70 286 hard drive. Updated packages in LiveCD mode will be lost on
paul@70 287 system shutdown. To upgrade:
paul@70 288 </p>
paul@70 289 <pre>
paul@70 290 # tazpkg upgrade
paul@70 291 </pre>
pascal@543 292 <a name="check"></a>
paul@70 293 <h3><font color="#6c0023">check</font></h3>
paul@70 294 <p>
paul@70 295 The 'check' command can check dependencies on installed
MikeDSmith25@117 296 packages and determine whether all the files needed for the
paul@70 297 repacking of packages are present:
paul@70 298 </p>
paul@70 299 <pre>
paul@70 300 # tazpkg check package
paul@70 301 </pre>
pascal@543 302 <a name="block"></a>
paul@70 303 <h3><font color="#6c0023">block or unblock</font></h3>
paul@70 304 <p>
paul@70 305 The 'block' and 'unblock' commands permit you to block
paul@70 306 installed package versions so that they are not maintained
paul@70 307 by an 'upgrade'. The list of packages on hold are contained
paul@164 308 in the /var/lib/tazpkg/blocked-packages.list. This file can also
paul@70 309 be edited by hand. To block or unblock a package such as
paul@70 310 Grub:
paul@70 311 </p>
paul@70 312 <pre>
paul@70 313 # tazpkg block grub
paul@70 314 Or :
paul@70 315 # tazpkg unblock grub
paul@70 316 </pre>
pascal@543 317 <a name="get"></a>
paul@70 318 <h3><font color="#6c0023">get</font></h3>
paul@70 319 <p>
paul@70 320 Get a package from the mirror (if it exists). The downloaded
MikeDSmith25@117 321 package is stored in the current directory. To find the path
paul@70 322 you can use 'pwd'. To get the Grub package:
paul@70 323 </p>
paul@70 324 <pre>
paul@70 325 # tazpkg get grub
paul@70 326 </pre>
pascal@543 327 <a name="get-install"></a>
paul@70 328 <h3><font color="#6c0023">get-install</font></h3>
paul@70 329 <p>
paul@70 330 Get and install a package from a mirror on the internet.
paul@70 331 The 'get-install' command begins by checking whether the
paul@70 332 package exists on the mirror and if it has been already downloaded.
paul@70 333 For a list of packages on the mirror, we must
paul@70 334 use the 'list-mirror' command. To install the package Grub:
paul@70 335 </p>
paul@70 336 <pre>
paul@70 337 # tazpkg get-install grub
paul@70 338 </pre>
pascal@543 339 <a name="clean-cache"></a>
paul@70 340 <h3><font color="#6c0023">clean-cache</font></h3>
paul@70 341 <p>
paul@71 342 Remove *.tazpkg packages downloaded to the cache. During
paul@70 343 installation, Tazpkg keeps a copy of packages downloaded
MikeDSmith25@117 344 from the web. This is done to save bandwidth in case of
MikeDSmith25@117 345 reinstallation, but you may want to free up space on the hard
paul@71 346 drive or re-download the packages:
paul@70 347 </p>
paul@70 348 <pre>
paul@70 349 # tazpkg clean-cache
paul@70 350 </pre>
pascal@543 351 <a name="setup-mirror"></a>
paul@70 352 <h3><font color="#6c0023">setup-mirror</font></h3>
paul@70 353 <p>
paul@70 354 Setup the URL for the mirror. The 'setup-mirror' command
paul@164 355 will ask for the URL of the new mirror. You can specify
MikeDSmith25@117 356 multiple URLs separated by spaces. Note that you can also
paul@70 357 modify the main /var/lib/tazpkg/mirror file. The URL must
paul@70 358 point to the directory containing the 'packages.list' and
paul@70 359 packages:
paul@70 360 </p>
paul@70 361 <pre>
paul@70 362 # tazpkg setup-mirror
paul@70 363 </pre>
pascal@543 364 <a name="reconfigure"></a>
paul@185 365 <h3><font color="#6c0023">reconfigure</font></h3>
paul@185 366 <p>
paul@185 367 Replays the post-install script from the package.
paul@185 368 Example using gcc:
paul@185 369 </p>
paul@185 370 <pre> # tazpkg reconfigure gcc
paul@185 371 </pre>
pascal@543 372 <a name="depends"></a>
paul@285 373 <h3><font color="#6c0023">depends or rdepends</font></h3>
paul@285 374 <p>
paul@285 375 Displays a dependency tree or reverse dependency tree for a package.
paul@285 376 Examples using mpd:
paul@285 377 </p>
paul@285 378 <pre> # tazpkg depends mpd
paul@285 379 # tazpkg rdepends mpd
paul@285 380 </pre>
pascal@543 381 <a name="add-undigest"></a>
paul@538 382 <h3><font color="#6c0023">add-undigest or setup-undigest</font></h3>
paul@538 383 <p>
paul@538 384 Set the URL of an additional unofficial mirror to test packages that
paul@538 385 are not yet present on the official mirrors. Note, you can also
paul@538 386 manually edit the file in /var/lib/tazpkg/undigest/'repository'. The URL
paul@538 387 must point to the directory containing the packages and 'packages.list':
paul@538 388 </p>
paul@538 389 <pre>
paul@538 390 # tazpkg add-undigest public-repository http://my.home.org/slitaz
paul@538 391 # tazpkg setup-undigest local-repository /home/slitaz/packages
paul@538 392 </pre>
pascal@543 393 <a name="remove-undigest"></a>
paul@538 394 <h3><font color="#6c0023">remove-undigest</font></h3>
paul@538 395 <p>
paul@538 396 Removes the URL of an undigest mirror:
paul@538 397 </p>
paul@538 398 <pre>
paul@538 399 # tazpkg remove-undigest my-repository
paul@538 400 </pre>
pascal@543 401 <a name="list-undigest"></a>
paul@538 402 <h3><font color="#6c0023">list-undigest</font></h3>
paul@538 403 <p>
paul@538 404 Lists additional undigest mirrors:
paul@538 405 </p>
paul@538 406 <pre>
paul@538 407 # tazpkg list-undigest
paul@538 408 </pre>
pascal@543 409 <a name="convert"></a>
paul@538 410 <h3><font color="#6c0023">convert</font></h3>
paul@538 411 <p>
paul@538 412 Converts a Debian package (.deb), Redhat (.rpm), Slackware (.tgz) or
paul@538 413 Archlinux (.pkg.tar.gz) package into a SliTaz package (.tazpkg):
paul@538 414 </p>
paul@538 415 <pre>
paul@538 416 # tazpkg convert alien-package
paul@538 417 </pre>
pascal@543 418 <a name="set-release"></a>
paul@185 419 <h3><font color="#6c0023">set-release</font></h3>
paul@185 420 <p>
paul@185 421 The 'set-release' command changes the current version and
paul@185 422 upgrades the packages to the latest release:
paul@185 423 </p>
paul@185 424 <pre> # tazpkg set-release cooking
paul@185 425 </pre>
pascal@543 426 <a name="bugs"></a>
paul@185 427 <h3><font color="#6c0023">bugs</font></h3>
paul@185 428 <p>
paul@185 429 Generates a list of known bugs in the packages:
paul@185 430 </p>
paul@185 431 <pre> # tazpkg bugs
paul@185 432 </pre>
paul@70 433
paul@70 434 <h2>MAINTAINER</h2>
paul@70 435 <p>
paul@70 436 Christophe Lincoln &lt;pankso at slitaz.org&gt;
paul@70 437 </p>
paul@70 438
paul@70 439 </div>
paul@70 440 <!-- End content -->
paul@70 441 </body>
paul@70 442 </html>
paul@70 443