Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:handbook:packages [2016/03/31 17:36] – [Tazpkg - Package manager] genesis | en:handbook:packages [2022/08/13 15:12] (current) – linea | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Tazpkg - Package manager ===== | ===== Tazpkg - Package manager ===== | ||
| - | SliTaz provides a tiny package manager which can easily install more software on the system. Tazpkg is a lightweight package manager for .tazpkg files. Completely written in SHell script, it works well with Busybox ash shell and bash. Tazpkg lets you list, install, remove, download, extract, pack, search, or get information about available or installed packages. You can also repack an installed package and automatically upgrade all installed packages. | + | SliTaz provides a tiny package manager which can easily install more software on the system. Tazpkg is a lightweight package manager for .tazpkg files. Completely written in SHell script, it works well with Busybox ash shell and bash. Tazpkg lets you list, install, remove, download, extract, pack, search, or get information about available or installed packages. You can also repack an installed package and automatically upgrade all installed packages. |
| + | With | ||
| + | < | ||
| + | you get a list of all the commands with a short description in English. | ||
| === List of packages === | === List of packages === | ||
| - | Tazpkg lets you list all installed packages, installed packages by category or it can display the list of available | + | Tazpkg lets you list all installed packages, installed packages by category or it can display the list of all packages |
| + | To display a single list of all installed packages on the system: | ||
| < | < | ||
| + | To display all categories or packages sorted by category, you must specify '' | ||
| - | To display all categories or packages sorted by category, you must specify cat or category. | + | Examples: |
| < | < | ||
| $ tazpkg list cat | $ tazpkg list cat | ||
| Line 20: | Line 24: | ||
| Tazpkg can also generate a xHTML list (default: installed-packages.html) in the local directory of all installed packages on the system: | Tazpkg can also generate a xHTML list (default: installed-packages.html) in the local directory of all installed packages on the system: | ||
| - | < | + | < |
| - | To get a single list of all available | + | <note warning> |
| + | |||
| + | To get a single list of all packages | ||
| + | You can then examine the list in your favorite editor or use the Web site interface. | ||
| === Install packages === | === Install packages === | ||
| - | To install some new applications such as The Gimp, AbiWord, ePDFView, Perl or Python, you first need to recharge the list of available | + | To install some new applications such as The Gimp, AbiWord, ePDFView, Perl or Python, you first need to recharge |
| + | the list of packages | ||
| + | |||
| + | If the package dependencies are not installed, | ||
| + | For example, the installation of Gparted (a GTK+ partition editor using GNU parted): | ||
| < | < | ||
| Line 35: | Line 46: | ||
| == The ' | == The ' | ||
| - | There are a few packages that are prefixed with //get-//. These are not packages per-sé but contain only a script. This script provides | + | There are a few packages that are prefixed with '' |
| + | This script provides software by: | ||
| - | * downloading the program | + | * downloading the software |
| - | * creating a Tazpkg | + | * creating a package in tazpkg format |
| - | * installing the generated | + | * installing the generated |
| - | This means that the actual | + | This means that the actual |
| To manage this style of software: | To manage this style of software: | ||
| - | * install the latest version using the //get// script in the //get// package; | + | * install the latest version using the '' |
| * remove it by using tazpkg on the **generated** package. | * remove it by using tazpkg on the **generated** package. | ||
| - | <note tip> | + | <note tip> |
| - | < | + | < |
| - | # get-OpenOffice3</ | + | # get-OpenOffice |
| + | </ | ||
| + | Some of these get scripts support command line parameters that can be displayed, for example | ||
| + | < | ||
| + | # get-OpenOffice --help | ||
| + | </ | ||
| </ | </ | ||
| - | === Upgrade | + | === Update |
| - | To keep your system up-to-date and secure after recharging the packages list, you can automatically install all new versions and security updates from the mirror | + | To keep your system up-to-date and secure after recharging the packages list, you can automatically install |
| + | all new versions and security updates from the repository | ||
| < | < | ||
| Line 62: | Line 80: | ||
| The Tazpkg [[http:// | The Tazpkg [[http:// | ||
| - | ===== Cookutils | + | ===== Cookutils |
| - | All SliTaz packages are built with a tool named Cookutils and a receipt found in the wok. The receipt | + | All SliTaz packages are built with a tool named Cookutils and a recipe (in a file named '' |
| + | The recipe | ||
| + | the package name, source tarball format, download URL, etc. | ||
| - | Cookutils will search by default for a wok in /// | + | Given a recipe, the '' |
| + | in a specific directory. | ||
| + | |||
| + | After compilation, | ||
| + | a cpio archive // | ||
| + | |||
| + | On SliTaz you will find receipt files of all installed packages in the directory ''/ | ||
| + | Feel free to examine them or even use one as an example. | ||
| + | |||
| + | Cookutils will search by default for a wok in '' | ||
| + | |||
| + | These paths are set by a Cookutils configuration file which can be located in '' | ||
| + | which is useful if you want to work with multiple woks. | ||
| + | |||
| + | Now, if the Cookutils are setup by | ||
| + | < | ||
| + | and the slitaz-toolchain is installed, you can start to create and build a package which doesn' | ||
| + | |||
| + | Small example | ||
| < | < | ||
| - | When a new package tree and receipt has been created in the wok, you can edit the receipt with your favorite editor (Geany provides nicely colored code), modify the rules, functions, add dependencies to the DEPENDS variable if needed and try a first cook: | + | When a new package tree and receipt |
| + | (Geany provides nicely colored code), modify the rules, functions, add dependencies to the DEPENDS variable if needed and try a first cook: | ||
| < | < | ||
| - | Note that you can now browse the generated files, modify the cooking receipt again or just rebuild the package. When you are happy with your work you can install the package with tazpkg install and then test the application or library. | + | Note that you can now browse the generated files, modify the cooking receipt |
| + | When you are happy with your work you can install the package with '' | ||