SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
de:handbook:packages [2016/10/31 16:31]
hgt translation continued
de:handbook:packages [2016/11/01 14:45]
hgt
Line 16: Line 16:
 </​code>​ </​code>​
  
-Tazpkg kann auch eine Liste im xHTML-Format erzeugen (Standardname:​ installed-packages.html) in the local directory of all installed packages on the system:+Tazpkg kann auch eine Liste im xHTML-Format erzeugen (Standardname:​ installed-packages.html) ​und zwar in dem Verzeichnis der installierten Pakete:
  
 <​code>​ $ tazpkg xhtml-list </​code>​ <​code>​ $ tazpkg xhtml-list </​code>​
Line 23: Line 23:
 <​code>​ $ tazpkg list-mirror </​code>​ <​code>​ $ tazpkg list-mirror </​code>​
  
-You can then examine the list in your favorite editor or use the Web site interface.+Diese Listen können mit einem Texteditor oder einem Webbrowser angesehen werden.
  
 === Pakete installieren === === Pakete installieren ===
Line 63: Line 63:
 ===== Cookutils und der Wok ===== ===== Cookutils und der Wok =====
  
-Alle SliTaz-Pakete werden mit einem Programm namens //​Cookutils//​ anhand eines Rezeptes im Wok erzeugt. Das Rezept enthält alle nötigen Informationen zur Erzeugung eines Paketes im Format tazpkg, einschließlich von Variablen für den Namen des Paketes, das Quellarchivformat,​ den URL für den Transfer usw. Given a receipt, the //​compile_rules// ​function has all of the necessary commands to configuremakeand install the package ​in a specific directoryAfter compilation, ​Cookutils ​will execute the function ​//genpkg_rules// to pick up only the needed/wanted files and generate a pkg.tazpkg ​(cpio archive)On SliTaz you will find all installed package receipts in the directory ​///​var/​lib/​tazpkg///​installed, feel free to examine them or even use one as an example.+Alle SliTaz-Pakete werden mit einem Programm namens //​Cookutils//​ anhand eines Rezeptes im Wok erzeugt. Das Rezept enthält alle nötigen Informationen zur Erzeugung eines Paketes im Format tazpkg, einschließlich von Variablen für den Namen des Paketes, das Quellarchivformat,​ den URL für den Transfer usw. Die Funktion ​//​compile_rules// ​in einem Rezept enthält alle nötigen Informationenum ein Paket zu konfigurierenzu erzeugen und in einem spezifizierten Verzeichnis zu installierenDanach führt //Cookutils// ​die Funktion ​//genpkg_rules// aus dem Rezept aus, und erzeugt nur mit den benötigten oder ausgewählten Dateien ein cpio-Archiv <pkg>.tazpkg. ​Die Rezepte aller installierten Pakete befinden sich im Verzeichnis ​///​var/​lib/​tazpkg/​installed//. Diese können Sie ansehen oder als Beispiel verwenden.
  
-Cookutils sucht standardmäßig im Verzeichnis ///​home/​slitaz/​wok//​ nach einem Wok und legt erzeugte Pakete im Verzeichnis ///​home/​slitaz/​packages//​ ab. Diese Pfadnamen sind in der Konfigurationsdatei ///​etc/​slitaz/​cook.conf//​ oder //​~/​cook.conf//​ von //​Cookutils//​ festgelegt. ​Now, if the Cookutils ​are setup (//# cook setup//​) ​and the slitaz-toolchain ​is installedyou can start to create and build a package which doesn'​t need many dependenciesSmall example:+Cookutils sucht standardmäßig im Verzeichnis ///​home/​slitaz/​wok//​ nach einem Wok und legt erzeugte Pakete im Verzeichnis ///​home/​slitaz/​packages//​ ab. Diese Pfadnamen sind in der Konfigurationsdatei ///​etc/​slitaz/​cook.conf//​ oder //​~/​cook.conf//​ von //​Cookutils//​ festgelegt. ​Wenn //Cookutils// präpariert ist (mit //# cook setup//​) ​und //slitaz-toolchain// installiert istkönnen Pakete erzeugt werdenEs folgt ein kleines Beispiel:
  
 <​code>​ # cook new pkgname --interactive </​code>​ <​code>​ # cook new pkgname --interactive </​code>​
  
-When a new package tree and receipt has been created in the wokyou can edit the receipt with your favorite editor ​(Geany ​provides nicely colored code), modify the rulesfunctions, add dependencies to the DEPENDS ​variable if needed and try a first cook:+Wenn ein neuer Verzeichnisbaum und ein Rezept für ein Paket im Wok erstellt wurdekann das Rezept mit einem Texteditor bearbeitet werden(Geany ​kann Syntax farbig hervorheben), die Regeln geändert werdenwenn erforderlich Abhängigkeiten in die Variable ​DEPENDS ​eingetragen werden und //cook// probiert werden:
  
 <​code>​ # cook pkgname </​code>​ <​code>​ # cook pkgname </​code>​
  
-Note that you can now browse the generated filesmodify the cooking receipt again or just rebuild the packageWhen you are happy with your work you can install the package with tazpkg install ​and then test the application or library+Jetzt können die erzeugten Dateien angesehen werdendas Rezept erneut geändert werden oder einfach das Paket erneut erzeugt werdenWenn das Paket fertig ist, kann es mit //tazpkg install// installiert werden ​ und die Applikation oder Bibliothek getestet werden
 
de/handbook/packages.txt · Last modified: 2022/08/13 18:41 by hgt