# HG changeset patch # User Aleksej Bobylev # Date 1433366113 -10800 # Node ID a73c9918a5dedbf6f95a819de6117a05a853a0d1 # Parent 941baf789cb72dc9e4a6638c78dce761794ae422 Update documentation (attempt to describe all the commands both with all options). Strongly need to review and update translations and docs! Add TazPkg help system for commandline (based on the HTML docs). Attempt to drop all package lists but "packages.info". Small improvements and code prettify. diff -r 941baf789cb7 -r a73c9918a5de Makefile --- a/Makefile Sun May 31 12:40:55 2015 -0400 +++ b/Makefile Thu Jun 04 00:15:13 2015 +0300 @@ -22,7 +22,7 @@ --package-name=TazPkg \ --package-version="$(VERSION)" -kaction -ktitle -k_ -k_n -k_p:1,2 \ ./tazpkg ./modules/tazpkg-convert ./modules/tazpkg-find-depends ./tazpkg-box \ - ./tazpanel/pkgs.cgi ./tazpkg-notify + ./tazpanel/pkgs.cgi ./tazpkg-notify ./modules/tazpkg-help msgmerge: @for l in $(LINGUAS); do \ @@ -50,8 +50,9 @@ # TazPkg command line interface install -m 0755 -d $(DESTDIR)$(PREFIX)/bin install -m 0777 tazpkg $(DESTDIR)$(PREFIX)/bin - -[ "$(VERSION)" ] && sed -i 's/^VERSION=[0-9].*/VERSION=$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/tazpkg + #-[ "$(VERSION)" ] && sed -i 's/^VERSION=[0-9].*/VERSION=$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/tazpkg install -m 0777 modules/tazpkg-convert $(DESTDIR)$(PREFIX)/bin + install -m 0777 modules/tazpkg-help $(DESTDIR)$(PREFIX)/bin install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/tazpkg install -m 0777 modules/tazpkg-find-depends $(DESTDIR)$(PREFIX)/lib/tazpkg diff -r 941baf789cb7 -r a73c9918a5de doc/tazpkg.en.html --- a/doc/tazpkg.en.html Sun May 31 12:40:55 2015 -0400 +++ b/doc/tazpkg.en.html Thu Jun 04 00:15:13 2015 +0300 @@ -1,17 +1,17 @@ - + TazPkg Manual (en) + - - +
@@ -19,499 +19,742 @@

NAME

-

- TazPkg - Tiny autonomous zone package manager -

+

TazPkg — Tiny autonomous zone package manager

SYNTAX

-tazpkg [command] [package|dir|pattern|list|cat|--opt] [dir|--opt]
+tazpkg [command] [options...]
 

DESCRIPTION

-

-TazPkg is an ultralightweight (~ 80KB) package manager to -install, list, download, update or remove precompiled packages -on a GNU/Linux system. TazPkg offers commands for searching -and creating packages and was created independently for the project. -The format of the packages using the *.tazpkg extension is a -cpio archive containing a filesystem compressed with gzip, -a receipt and an optional description. TazPkg also manages -dependencies based on package receipts. Each receipt contains -all the information about a package and can also include -pre and post installation functions. The same receipt is -used by Cookutils to compile sources and generate a .tazpkg -package. -

-

-TazPkg is entirely built from scratch using SHell script, -compatible with Bash; it runs under Ash - part of the Busybox -project. TazPkg is distributed under the free GNU license GPL V3. -

+

TazPkg is a lightweight package manager to install, list, download, update or +remove precompiled packages on a GNU/Linux system. TazPkg offers commands for +searching and creating packages and was created independently for the project. +The format of the packages using the *.tazpkg extension is a cpio archive +containing a filesystem compressed with gzip, a receipt and an optional +description. TazPkg also manages dependencies based on package receipts. Each +receipt contains all the information about a package and can also include pre- +and post-installation functions. The same receipt is used by Cookutils to +compile sources and generate a .tazpkg package.

+ +

TazPkg is entirely built from scratch using Shell script, compatible with +Bash; it runs under Ash — part of the Busybox project. TazPkg is distributed +under the free GNU license GPL V3.

COMMANDS

+

Service commands

+ + + + +

Working with lists

+ + + + +

Search

+ + + + +

Installing and removing packages

+ + + + +

Working with packages

+ + + + +

Working with repositories

+ + + + + + +

Service commands

+ + +

usage

+ +

Show the full list of the TazPkg commands with a brief description.

+ +
+$ tazpkg usage
+$ tazpkg
+
+ + +

help

+ +

Display help for the selected command (help or -h). You can +enter a short name of the command, the full name or a part of the full name. You +can ignore hyphens at the beginning of the short name. If the requested part of +the full name match the several commands, you will be asked to clarify the +request.

+ +
+$ tazpkg help -gi
+$ tazpkg -h us
+
+ + +

activity

+ +

Display TazPkg activity log (activity or log or +-a). Optional parameter --nb= lets you set number of displayed +lines.

+ +
+$ tazpkg activity
+$ tazpkg -a --nb=20
+
+ + +

clean-cache

+ +

Remove *.tazpkg packages downloaded to the cache (clean-cache or +-cc). During installation, TazPkg keeps a copy of packages downloaded +from the Web. This is done to save bandwidth in case of reinstallation, but you +may want to free up space on the hard drive or re-download the packages.

+ +
+# tazpkg clean-cache
+# tazpkg -cc
+
+ + +

shell

+ +

Run interactive TazPkg shell. Here you can enter all the TazPkg commands +listed above.

+ +
+$ tazpkg shell
+# tazpkg shell
+
+ + + + +

Working with lists

+ +

list

-

-List packages installed on the system. This command displays -a column list of all installed packages, It also allows you to list the -categories, packages based on category and packages placed on hold. -You can also use the search command -for a list based on a term or package name: -

+

List packages installed on the system (list or -l). This +command displays a column list of all installed packages. It also allows you to +list the categories (c or cat or categories), +packages based on category and packages placed on hold (b or +blocked). You can also use the search +command for a list based on a term or package name.

+
-# tazpkg list
-# tazpkg list cat|categories
-# tazpkg list blocked
-
- - -

xhtml-list

- -

-The xhtml-list command can create a XHTML list -of all the packages installed on the system which can be read -with your preferred Web browser. It can be run as a normal -user and creates a page installed-packages.html in -your current directory. Note that you can change the name of the -generated list via the command line: -

-
-# tazpkg xhtml-list
-# tazpkg xhtml-list list-name.html
+$ tazpkg list
+$ tazpkg list cat
+$ tazpkg list games
+$ tazpkg list blocked
 

list-mirror

-

-List packages available on the mirror. This command will -display the packages.list file recharged from the mirror. -If this doesn't exist, you will be asked to launch -tazpkg recharge as administrator (root) -for a list of available packages . The --diff option is used to display -the differences between the last and current list of packages: -

+

List packages available on the mirror (list-mirror or -lm). +This command will display the packages list recharged from the mirror. If it +doesn't exist, you will be asked to launch tazpkg +recharge as administrator (root) for a list of +available packages. The --diff option is used to display the +differences between the last and current list of packages.

+
-# tazpkg list-mirror
-# tazpkg list-mirror --diff
-
- - -

info

- -

-Display any information available in the receipt for the -package in question—its version, category, maintainer, -Web site and any dependencies (see also Cookutils for more -information on receipts): -

-
-# tazpkg info busybox
-
- - -

desc

- -

-Description of the package (if it exists). This command -displays the description.txt file of each package (a simple -text file, justified to 80 characters to fit in a standard terminal): -

-
-# tazpkg desc busybox
+$ tazpkg list-mirror
+$ tazpkg -lm --diff
 

list-config

-

-Lists the system configuration files. The --box option displays -in table format: -

+

Lists the system configuration files. The --box option displays in +table form. You can specify package name to display configuration files only for +this package.

+
-# tazpkg list-config
-# tazpkg list-config --box
+$ tazpkg list-config
+$ tazpkg list-config --box
+$ tazpkg list-config slim
+$ tazpkg list-config --box slim
 
-

list-files

-

-List all files installed with a package. This command will -simply read and display the files.list of each package which is -automatically generated when the package is created and is -also used to remove files when uninstalling a package. -To list the files installed with the package bc: -

-
-# tazpkg list-files bc
-
+ +

Search

-

-Search for packages by owner or package name. This command -will search for the term wanted in the installed packages and the -list of available packages on the mirror. To obtain the -latest list of installable packages on the mirror, just -run tazpkg recharge before conducting a search: -

+

Search for packages by owner or package name (search or +-s). This command will search for the term wanted in the installed +packages (-i or --installed) and the list of available +packages on the mirror (-l or --list).

+ +

To obtain the latest list of installable packages on the mirror, just run +tazpkg recharge before conducting a search.

+
-# tazpkg search gcc
+$ tazpkg search gcc
+$ tazpkg search mt -i
+$ tazpkg search bit -l
+
+ + +

search-pkgname

+ +

Search for a file on mirror and output only the packages names +(search-pkgname or -sp).

+ +
+$ tazpkg search-pkgname libnss
+$ tazpkg -sp /usr/share/fonts
 

search-file

-

-The search-file command allows you to search for a file -among the files installed by the packages. This command is very -useful to find the full path to a file and determine if -a file is present on the system. Example: -

+

Search for a file among the files installed by the packages +(search-file or -sf). This command is very useful to find the +full path to a file and determine if a file is present on the system. Option +--mirror allows to search for a file among all the files available on +the mirror.

+
 $ tazpkg search-file libnss
+$ tazpkg -sf /usr/share/fonts --mirror
+
+ + + + +

Installing and removing packages

+ + +

get

+ +

Get a package from the mirror (get or -g). The downloaded +package is stored in the current directory. To find the path you can use +pwd.

+ +
+# tazpkg get grub
+# tazpkg get nano --root=/mnt/sda6
 

install

-

-This command allows the installation of a local package with -the .tazpkg extension. See -get-install to install a -package from the internet. Note that you can force the -installation via the --forced, uninstall and -reinstall options -or specify the root system where you want to install the -packages via the --root= option: -

+

This command allows the installation of a local package with the +.tazpkg extension (install or -i). See +get-install to install a package from the +internet. Note that you can force the installation via the --forced +option, specify the root system where you want to install the packages via the +--root= option.

+
 # tazpkg install package-1.0.tazpkg
-# tazpkg install path/to/package-1.0.tazpkg --forced
-# tazpkg install path/to/package-1.0.tazpkg --root=/mnt/rootfs
+# tazpkg -i path/to/package-1.0.tazpkg --forced
+# tazpkg -i path/to/package-1.0.tazpkg --root=/mnt/rootfs
 
-

install-list or get-install-list

-

-Install a set of packages listed in a file. This command -allows you to (download and) install several packages with a single command -and can also be forced: -

+

get-install

+ +

Get and install a package from a mirror on the internet (get-install +or -gi). Command begins by checking whether the package exists on the +mirror and if it has been already downloaded. For a list of packages on the +mirror, we must use the list-mirror +command.

+ +

Following options are recognized by command:

+ +

--forced allow update already installed package.

+ +

--root= allow specify root of filesystem where package will be +installed.

+ +
+# tazpkg get-install grub
+# tazpkg -gi grub --forced
+# tazpkg -gi nano --root=/mnt/sda6
+
+ + +

install-list, get-install-list

+ +

Install a set of packages listed in a file. This command allows you to +(download and) install several packages with a single command and can also be +forced.

+
 # tazpkg install-list my-packages.list
 # tazpkg get-install-list my-packages.list --forced
 
+

remove

+ +

Remove a package (remove or -r). You will be asked for +confirmation (y/N) of removing the package, as well as for removing packages +depending on this package, and for reinstalling packages modified by this +package. This command will delete all files installed with the package.

+ +

Option --root= allows to specify root of the FS where package will +be removed. Option --auto removes and reinstall packages without your +confirmation.

+ +
+# tazpkg remove bc
+# tazpkg -r gtk+-3 --root=/mnt/sda6
+# tazpkg -r nano --auto
+
+ + +

reconfigure

+ +

Replays the post-install script from the package.

+ +
+# tazpkg reconfigure gcc
+# tazpkg reconfigure gcc --root=/mnt/sda6
+
+ + -

-This command allows the installation of a package from another media -device. The set up is done through symbolic links and consumes very little -memory. It is generally used within the system RAM to install add-ons -from an USB key: -

+

This command allows the installation of a package from another media device. +The set up is done through symbolic links and consumes very little memory. It is +generally used within the system RAM to install add-ons from an USB key.

+
 # tazpkg link openoffice /media/usbdisk
 
-

remove

+

set-release

-

-Remove a package. You will be asked for confirmation (y/N). -This command will delete all files installed with the package. -To view the list of files, use the list-files -command followed by the name of the package. Example -with the package bc: -

+

The set-release command changes the current version and upgrades all +of the packages to the latest release.

+
-# tazpkg remove bc
+# tazpkg set-release cooking
 
-

extract

+

add-flavor, install-flavor

-

-Extract a package into a directory. If you do not specify -the destination directory, the package will be extracted -in the current directory using the name package-version: -

+

Install a set of packages from a flavor. In addition, install-flavor +purges other installed packages.

+
-# tazpkg extract package.tazpkg
-# tazpkg extract package.tazpkg target/dir
+# tazpkg add-flavor gtkonly
+# tazpkg install-flavor justx
 
-

pack

-

-The pack command will create a package from a directory -prepared in advance or from an unpacked package. It can -also manually create a .tazpkg package (see the Cookutils documentation -for the automatic creation of packages). To pack a package: -

+ +

Working with packages

+ + +

info

+ +

Display any information available in the receipt for the package in +question — its version, category, maintainer, Web site and any dependencies (see +also Cookutils for more information on receipts).

+
-# tazpkg pack package-version
+$ tazpkg info busybox
 
-

repack

+

desc

-

-The repack command allows you to recreate a package from -the files on a system where it was previously installed. -To repack a package: -

+

Description of the package (if it exists) (desc or -d). +This command displays the description.txt file of each package (a +simple text file, justified to 80 characters to fit in a standard terminal).

+
-# tazpkg repack package
+$ tazpkg desc busybox
 
-

repack-config

+

list-files

-

-The repack-config command recreates a package -of the system configuration files (see -list-config). It is enough -to install the package to find the current configuration. To repack -the configuration files: -

+

List all files installed with a package (list-files or +-lf). This command will simply read and display the files.list +of each package which is automatically generated when the package is created and +is also used to remove files when uninstalling a package.

+
-# tazpkg repack-config
+$ tazpkg list-files bc
 
-

recharge

+

block, unblock, chblock

-

-Recharge the list of available packages on the mirror. -This command will download the most recent packages.list -of installable packages on the mirror and before starting -will save the old list. Once the list is updated, -you can then use the list and -search commands. To view -and list the differences, you can use list-mirror --diff; -and to view and update packages, you can simply -upgrade. To recharge the -latest list of packages: -

+

The block (or -b) and unblock (or -u) +commands permit you to block installed package versions so that they are not +maintained by an upgrade. Command +chblock changes blocking state of the package. The list of packages on +hold are contained in the /var/lib/tazpkg/blocked-packages.list. This +file can also be edited by hand.

+
-# tazpkg recharge
-
- - -

up or upgrade

- -

-Upgrade allows you to update all installed packages available -on the current mirror. Upgrading packages is an important -part of system security, it helps to keep you secure with -the latest updates and fixes. The SliTaz project, -although tiny, provides regular updates on security and generally -offers the latest versions of software. Note that this -function is aimed at people with SliTaz installed on a -hard drive. Updated packages in LiveCD mode will be lost on -system shutdown. To upgrade or display the full up options: -

-
-# tazpkg up
-# tazpkg --help-up
-# tazpkg up --recharge --install
-# tazpkg up -r -i
+# tazpkg block grub
+# tazpkg unblock grub
+# tazpkg chblock grub
 

check

-

-The check command can check dependencies on installed -packages and determine whether all the files needed for the -repacking of packages are present: -

+

The check command can check dependencies on installed packages and +determine whether all the files needed for the repacking of packages are +present.

+
-# tazpkg check package
+$ tazpkg check
+$ tazpkg check --full
+$ tazpkg check nano
+$ tazpkg check sakura --full
 
-

block or unblock

+

bugs

-

-The block and unblock commands permit you to block -installed package versions so that they are not maintained -by an upgrade. The list of packages -on hold are contained -in the /var/lib/tazpkg/blocked-packages.list. This file can also -be edited by hand. To block or unblock a package such as -Grub: -

+

Generates a list of known bugs in the packages. You can specify a single +package to show bugs.

+
-# tazpkg block grub
-# tazpkg unblock grub
+$ tazpkg bugs
+$ tazpkg bugs my_package
 
-

get

+

depends, rdepends

-

-Get a package from the mirror (if it exists). The downloaded -package is stored in the current directory. To find the path -you can use pwd. To get the Grub package: -

-
-# tazpkg get grub
-
+

Displays a dependency tree or reverse dependency tree for a package.

- -

get-install

- -

-Get and install a package from a mirror on the internet. -The get-install command begins by checking whether the -package exists on the mirror and if it has been already downloaded. -For a list of packages on the mirror, we must -use the list-mirror command. -To install the package Grub: -

-
-# tazpkg get-install grub
-
- - -

clean-cache

- -

-Remove *.tazpkg packages downloaded to the cache. During -installation, TazPkg keeps a copy of packages downloaded -from the web. This is done to save bandwidth in case of -reinstallation, but you may want to free up space on the hard -drive or re-download the packages: -

-
-# tazpkg clean-cache
-
- - -

setup-mirror

- -

-Setup the URL for the mirror. The setup-mirror command -will ask for the URL of the new mirror. You can specify -multiple URLs separated by spaces. Note that you can also -modify the main /var/lib/tazpkg/mirror file. The URL must -point to the directory containing the packages.list and -packages: -

-
-# tazpkg setup-mirror
-
- - -

reconfigure

- -

-Replays the post-install script from the package. -Example using gcc: -

-
-# tazpkg reconfigure gcc
-
- - -

depends or rdepends

- -

-Displays a dependency tree or reverse dependency tree for a package. -Examples using mpd: -

 # tazpkg depends mpd
 # tazpkg rdepends mpd
 
-

add-undigest or setup-undigest

+

extract

-

-Set the URL of an additional unofficial mirror to test packages that -are not yet present on the official mirrors. Note, you can also -manually edit the file in /var/lib/tazpkg/undigest/repository. -The URL must point to the directory containing the packages and -packages.list: -

+

Extract a package into a directory (extract or -e). If you +do not specify the destination directory, the package will be extracted in the +current directory using the name package-version.

+ +
+$ tazpkg extract package.tazpkg
+$ tazpkg extract package.tazpkg target/dir
+
+ + +

pack

+ +

The pack command will create a package from a directory prepared in +advance or from an unpacked package. It can also manually create a .tazpkg +package (see the Cookutils documentation for the automatic creation of +packages).

+ +
+# tazpkg pack package-version
+
+ + +

repack

+ +

The repack command allows you to recreate a package from the files +on a system where it was previously installed.

+ +
+$ tazpkg repack package
+
+ + +

repack-config

+ +

The repack-config command recreates a package of the system +configuration files (see list-config). It is +enough to install the package to find the current configuration.

+ +
+# tazpkg repack-config
+
+ + +

recompress

+ +

Recompress .tazpkg cpio archive with lzma.

+ +
+$ tazpkg recompress package.tazpkg
+
+ + +

convert

+ +

Converts an "alien" package into a SliTaz package (.tazpkg) (convert +or -c.

+ +

Supported packages formats:

+ + + +
+# tazpkg convert alien-package-file
+
+ + +

list-suggested

+ +

List suggested packages for each of your installed packages. With option +--all it shows all suggested packages, and without option it shows only +not installed suggested packages.

+ +
+$ tazpkg list-suggested
+$ tazpkg list-suggested --all
+
+ + + + +

Working with repositories

+ + +

recharge

+ +

Recharge the list of available packages on the mirror. This command will +download the most recent packages database of installable packages on the mirror +and before starting will save the old database. Once the DB is updated, you can +then use the list and +search commands. To view and list the +differences, you can use list-mirror --diff; and to view and update +packages, you can simply upgrade.

+ +

Command without options will recharge databases of all your repositories. You +can specify repository to be recharged: "main" for main repo, or undigest +repository name. Option --root= allow you to specify root of filesystem +where you want to recharge DB.

+ +
+# tazpkg recharge
+# tazpkg recharge main
+# tazpkg recharge My_Undigest
+# tazpkg recharge --root=/mnt/sda6
+
+ + +

upgrade

+ +

Upgrade allows you to update all installed packages available on the current +mirror (upgrade or up). Upgrading packages is an important +part of system security, it helps to keep you secure with the latest updates and +fixes. The SliTaz project, although tiny, provides regular updates on security +and generally offers the latest versions of software. Note that this function is +aimed at people with SliTaz installed on a hard drive. Updated packages in +Live CD mode will be lost on system shutdown.

+ +

Without options run in interactive mode and ask before install. You can +specify one or more of the next options:

+ +

-c or --check to check only for available upgrades;

+ +

-r or --recharge to force recharge of packages list and +check;

+ +

-i or --install to check for upgrades and install them +all.

+ +
+# tazpkg upgrade
+# tazpkg up --recharge --install
+# tazpkg up -r -i
+
+ + +

setup-mirror

+ +

Setup the URL for the mirror. The setup-mirror (or -sm) +command will ask for the URL of the new mirror. Note that you can also modify +the main /var/lib/tazpkg/mirror file. The URL must point to the +directory containing the packages.info and packages.

+ +
+# tazpkg setup-mirror
+
+ + +

add-undigest, setup-undigest

+ +

Set the URL of an additional unofficial mirror to test packages that are not +yet present on the official mirrors. Note, you can also manually edit the file +in /var/lib/tazpkg/undigest/repository. The URL must point to +the directory containing the packages and packages.info.

+
 # tazpkg add-undigest public-repository http://my.home.org/slitaz
 # tazpkg setup-undigest local-repository /home/slitaz/packages
 
+

list-undigest

+ +

Lists additional undigest mirrors. Option --box will output list in +the table form.

+ +
+# tazpkg list-undigest
+# tazpkg list-undigest --box
+
+ +

remove-undigest

-

-Removes the URL of an undigest mirror: -

+

Removes the URL of an undigest mirror. You will be asked for +confirmation.

+
 # tazpkg remove-undigest my-repository
 
-

list-undigest

-

-Lists additional undigest mirrors: -

-
-# tazpkg list-undigest
-
- - -

convert

- -

-Converts a Debian package (.deb), Redhat (.rpm), Slackware (.tgz) or -Archlinux (.pkg.tar.gz) package into a SliTaz package (.tazpkg): -

-
-# tazpkg convert alien-package
-
- - -

set-release

-

-The set-release command changes the current version and -upgrades all of the packages to the latest release: -

-
-# tazpkg set-release cooking
-
- - -

bugs

-

-Generates a list of known bugs in the packages: -

-
-# tazpkg bugs
-

MAINTAINER

-

-Christophe Lincoln <pankso at slitaz.org> -

+ +

Christophe Lincoln <pankso at slitaz.org>

- diff -r 941baf789cb7 -r a73c9918a5de doc/tazpkg.es.html --- a/doc/tazpkg.es.html Sun May 31 12:40:55 2015 -0400 +++ b/doc/tazpkg.es.html Thu Jun 04 00:15:13 2015 +0300 @@ -1,5 +1,5 @@ - + Manual TazPkg (es) @@ -8,10 +8,9 @@ - - +
@@ -19,9 +18,8 @@

NOMBRE

-

- TazPkg - Pequeño administrador autónomo de paquetes y espejos de paquetes. -

+

TazPkg — Pequeño administrador autónomo de paquetes y espejos de +paquetes.

SINTAXIS

@@ -33,480 +31,706 @@

DESCRIPCIÓN

-

-TazPkg es un administrador de paquetes ultraligero (~ 80KB) para instalar, -catalogar, descargar, actualizar o desinstalar paquetes precompilados en un -sistema GNU/Linux. TazPkg ofrece comandos para la búsqueda y creación de -paquetes y fue creado independientemente para el proyecto. El formato de los -paquetes usando la extensión *.tazpkg es un fichero cpio que contiene un sistema -de archivos comprimido con gzip, un fichero de recibo y una descripción opcional. TazPkg -también administra dependencias basadas en los ficheros de recibo de los paquetes. Cada -archivo de recibo contiene toda la información sobre un paquete y también puede incluir -funciones para antes y después de la instalación. El mismo fichero de recibo es -usado por Cookutils para compilar desde el código fuente y generar un paquete -.tazpkg. -

-

-TazPkg está construido completamente desde cero usando shell script, -compatible con Bash, se ejecuta bajo Ash (que forma parte de BusyBox). TazPkg es distribuido -bajo la licencia libre de GNU GPL V3. -

+

TazPkg es un administrador de paquetes ligero para instalar, catalogar, +descargar, actualizar o desinstalar paquetes precompilados en un sistema +GNU/Linux. TazPkg ofrece comandos para la búsqueda y creación de paquetes y fue +creado independientemente para el proyecto. El formato de los paquetes usando la +extensión *.tazpkg es un fichero cpio que contiene un sistema de archivos +comprimido con gzip, un fichero de recibo y una descripción opcional. TazPkg +también administra dependencias basadas en los ficheros de recibo de los +paquetes. Cada archivo de recibo contiene toda la información sobre un paquete y +también puede incluir funciones para antes y después de la instalación. El mismo +fichero de recibo es usado por Cookutils para compilar desde el código fuente y +generar un paquete .tazpkg.

+ +

TazPkg está construido completamente desde cero usando shell script, +compatible con Bash, se ejecuta bajo Ash (que forma parte de BusyBox). TazPkg es +distribuido bajo la licencia libre de GNU GPL V3.

COMANDOS

+

Service commands

+ + + + +

Working with lists

+ + + + +

Search

+ + + + +

Installing and removing packages

+ + + + +

Working with packages

+ + + + +

Working with repositories

+ + + + + + +

Service commands

+ + +

usage

+ +

Show the full list of the TazPkg commands with a brief description.

+ +
+$ tazpkg usage
+$ tazpkg
+
+ + +

help

+ +

Display help for the selected command (help or -h). You can +enter a short name of the command, the full name or a part of the full name. You +can ignore hyphens at the beginning of the short name. If the requested part of +the full name match the several commands, you will be asked to clarify the +request.

+ +
+$ tazpkg help -gi
+$ tazpkg -h us
+
+ + +

activity

+ +

Display TazPkg activity log (activity or log or +-a). Optional parameter --nb= lets you set number of displayed +lines.

+ +
+$ tazpkg activity
+$ tazpkg -a --nb=20
+
+ + +

clean-cache

+ +

Borra los paquetes *.tazpkg descargados en la cache. Durante la instalación, +TazPkg guarda una copia de paquetes descargados desde la web. Esto se hace para +ahorrar ancho de banda en caso de reinstalación, pero también puedes querer +liberar espacio en el disco duro o recargar los paquetes.

+ +
+# tazpkg clean-cache
+# tazpkg -cc
+
+ + +

shell

+ +

Run interactive TazPkg shell. Here you can enter all the TazPkg commands +listed above.

+ +
+$ tazpkg shell
+# tazpkg shell
+
+ + + + +

Working with lists

+ +

list

-

-Lista los paquetes instalados en el sistema. Este comando muestra la -lista de todos los paquetes instalados. También permite mostrar la -lista de categorías, los paquetes correspondientes a una categoría y los paquetes -bloqueados. Además puedes usar el comando search para mostrar una lista basada en -un término o en el nombre de un paquete: -

+

Lista los paquetes instalados en el sistema. Este comando muestra la lista de +todos los paquetes instalados. También permite mostrar la lista de categorías, +los paquetes correspondientes a una categoría y los paquetes bloqueados. Además +puedes usar el comando search para mostrar una +lista basada en un término o en el nombre de un paquete.

+
-# tazpkg list
-# tazpkg list cat|categoría
-# tazpkg list blocked
-
- - -

xhtml-list

- -

-El comando xhtml-list puede crear una lista XHTML de todos los -paquetes instalados en el sistema, la cual puede ser leída con el -navegador web que prefieras. Se puede ejecutar como usuario normal y -crea el archivo installed-packages.html en el directorio -actual. Tenga en cuenta que puede cambiar el nombre de la -lista generada a través de la línea de comandos: -

-
-# tazpkg xhtml-list
-# tazpkg xhtml-list list-name.html
+$ tazpkg list
+$ tazpkg list cat
+$ tazpkg list games
+$ tazpkg list juegos
+$ tazpkg list blocked
 

list-mirror

-

-Lista los paquetes disponibles en el espejo. Este comando -mostrara el archivo packages.list recargado desde el espejo. Si este no -existe, se te requerirá ejecutar tazpkg recharge como administrador -(root) para ver la lista de paquetes disponibles. La opción ---diff se usa para mostrar las diferencias entre la ultima lista de paquetes y -la actual: -

+

Lista los paquetes disponibles en el espejo. Este comando mostrara el archivo +packages.list recargado desde el espejo. Si este no existe, se te +requerirá ejecutar tazpkg recharge como +administrador (root) para ver la lista de paquetes disponibles. La opción +--diff se usa para mostrar las diferencias entre la ultima lista de +paquetes y la actual.

+
-# tazpkg list-mirror
-# tazpkg list-mirror --diff
-
- - -

info

- -

-Muestra cualquier información disponible en el fichero de recibo del paquete en -cuestión, como su versión, categoría, mantenedor, página web y -dependencias (véase también Cookutils para más información sobre -los ficheros de recibo): -

-
-# tazpkg info busybox
-
- - -

desc

- -

-Descripción del paquete (si existe). Este comando muestra el archivo -description.txt de cada paquete (un simple archivo de texto, -justificado a 80 caracteres para caber en una terminal estándar): -

-
-# tazpkg desc busybox
+$ tazpkg list-mirror
+$ tazpkg -lm --diff
 

list-config

-

-Lista los archivos de configuración del sistema. La -opción --box muestra la lista en formato tabla: -

+

Lista los archivos de configuración del sistema. La opción --box +muestra la lista en formato tabla.

+
-# tazpkg list-config
-# tazpkg list-config --box
+$ tazpkg list-config
+$ tazpkg list-config --box
+$ tazpkg list-config slim
+$ tazpkg list-config --box slim
 
-

list-files

-

-Lista todos los archivos instalados con un paquete. Este -comando simplemente lee y muestra el archivo files.list de cada -paquete que se genera automáticamente cuando el paquete es creado -y también se usa para borrar los archivos cuando se desinstala un -paquete. -Para listar los archivos instalados con el paquete bc: -

-
-# tazpkg list-files bc
-
+ +

Search

-

-Busca paquetes por propietario o por el nombre del paquete. Este comando -buscará el termino requerido en los paquetes instalados y en la lista -de paquetes disponibles en el espejo. Para obtener la última lista de -paquetes instalables en el espejo, solo hay que ejecutar tazpkg -recharge antes de la realización de la búsqueda: -

+

Busca paquetes por propietario o por el nombre del paquete. Este comando +buscará el termino requerido en los paquetes instalados y en la lista de +paquetes disponibles en el espejo. Para obtener la última lista de paquetes +instalables en el espejo, solo hay que ejecutar tazpkg recharge +antes de la realización de la búsqueda.

+
-# tazpkg search gcc
+$ tazpkg search gcc
+$ tazpkg search mt -i
+$ tazpkg search bit -l
+
+ + +

search-pkgname

+ +

Search for a file on mirror and output only the packages names +(search-pkgname or -sp).

+ +
+$ tazpkg search-pkgname libnss
+$ tazpkg -sp /usr/share/fonts
 

search-file

-

-El comando search-file te permite buscar un -archivo entre los archivos instalados por los paquetes. Este comando es -muy útil para saber la ruta completa de un archivo y determinar si un -archivo esta presente en el sistema. Ejemplo: -

+

El comando search-file te permite buscar un archivo entre los +archivos instalados por los paquetes. Este comando es muy útil para saber la +ruta completa de un archivo y determinar si un archivo esta presente en el +sistema.

+
- $ tazpkg search-file libnss
+$ tazpkg search-file libnss
+$ tazpkg -sf /usr/share/fonts --mirror
+
+ + + + +

Installing and removing packages

+ + +

get

+ +

Descargar un paquete desde el espejo (si existe). El paquete descargado es +almacenado en el directorio actual. Para encontrar la ruta puedes usar +pwd.

+ +
+# tazpkg get grub
+# tazpkg get nano --root=/mnt/sda6
 

install

-

-Este comando te permite instalar un paquete local con la extensión -.tazpkg. Ver get-install -para instalar un paquete desde internet. Tenga en cuenta que puede -forzar la instalación con las opciones --forced, -uninstall y reinstall o especificar la raíz del sistema -donde quiere instalar los paquetes con la opción --root: -

+

Este comando te permite instalar un paquete local con la extensión +.tazpkg. Ver get-install para +instalar un paquete desde internet. Tenga en cuenta que puede forzar la +instalación con las opciones --forced, uninstall y +reinstall o especificar la raíz del sistema donde quiere instalar los +paquetes con la opción --root.

+
-# tazpkg install package-1.0.tazpkg
-# tazpkg install path/to/package-1.0.tazpkg --forced
-# tazpkg install path/to/package-1.0.tazpkg --root=/mnt/rootfs
+# tazpkg install paquete-1.0.tazpkg
+# tazpkg install path/to/paquete-1.0.tazpkg --forced
+# tazpkg install path/to/paquete-1.0.tazpkg --root=/mnt/rootfs
 
-

install-list o get-install-list

-

-Instala un conjunto de paquetes listados en un archivo. Este comando te -permite (descargar e) instalar varios paquetes con un solo comando y -también puede ser forzado: -

+

get-install

+ +

Descargar e instalar un paquete desde un espejo en internet. El comando +get-install empieza comprobando si el paquete existe en el espejo y si +ya ha sido descargado. Para ver la lista de paquetes en el espejo, tenemos que +usar el comando list-mirror.

+
-# tazpkg install-list my-packages.list
-# tazpkg get-install-list my-packages.list --forced
+# tazpkg get-install grub
+# tazpkg -gi grub --forced
+# tazpkg -gi nano --root=/mnt/sda6
+
+ + +

install-list, get-install-list

+ +

Instala un conjunto de paquetes listados en un archivo. Este comando te +permite (descargar e) instalar varios paquetes con un solo comando y también +puede ser forzado.

+ +
+# tazpkg install-list my-paquetes.list
+# tazpkg get-install-list my-paquetes.list --forced
+
+ + +

remove

+ +

Borra un paquete. Se te preguntará para confirmar (s/N). Este comando borrará +todos los archivos instalados con el paquete. Para ver la lista de archivos, +usar el comando list-files seguido del nombre +del paquete.

+ +
+# tazpkg remove bc
+# tazpkg -r gtk+-3 --root=/mnt/sda6
+# tazpkg -r nano --auto
+
+ + +

reconfigure

+ +

Vuelve a reproducir el script de post-instalación del paquete.

+ +
+# tazpkg reconfigure gcc
+# tazpkg reconfigure gcc --root=/mnt/sda6
 
-

-Este comando te permite la instalación de un paquete desde otro -dispositivo. La instalación se hace por medio de enlaces simbólicos y -consume muy poca memoria. Es generalmente usada dentro del sistema RAM -para instalar add-ons (extensiones) desde USB: -

+

Este comando te permite la instalación de un paquete desde otro dispositivo. +La instalación se hace por medio de enlaces simbólicos y consume muy poca +memoria. Es generalmente usada dentro del sistema RAM para instalar add-ons +(extensiones) desde USB.

+
 # tazpkg link openoffice /media/usbdisk
 
-

remove

+

set-release

-

-Borra un paquete. Se te preguntará para confirmar (s/N). -Este comando borrará todos los archivos instalados con el paquete. -Para ver la lista de archivos, usar el comando list-files seguido del nombre del paquete. -Ejemplo con el paquete bc: -

+

El comando set-release cambia la versión actual y actualiza todos +los paquetes a la última versión.

+
-# tazpkg remove bc
+# tazpkg set-release cooking
 
-

extract

+

add-flavor, install-flavor

-

-Extrae un paquete en un directorio. Si no especificas el -directorio de destino, el paquete se extraerá en el directorio actual -usando el nombre package-version: -

+

Install a set of packages from a flavor. In addition, install-flavor +purges other installed packages.

+
-# tazpkg extract package.tazpkg
-# tazpkg extract package.tazpkg target/dir
+# tazpkg add-flavor gtkonly
+# tazpkg install-flavor justx
 
-

pack

-

-El comando pack crea un paquete desde un directorio preparado -de antemano o desde un paquete desempaquetado. También puede crear -manualmente un paquete .tazpkg (ver la documentación de Cookutils para la -creación automática de paquetes). Para empaquetar un paquete: -

+ +

Working with packages

+ + +

info

+ +

Muestra cualquier información disponible en el fichero de recibo del paquete +en cuestión, como su versión, categoría, mantenedor, página web y dependencias +(véase también Cookutils para más información sobre los ficheros de recibo).

+
-# tazpkg pack package-version
+$ tazpkg info busybox
 
-

repack

+

desc

-

-El comando repack te permite recrear un paquete desde los -archivos en el sistema donde fue previamente instalado. Para recrear un -paquete: -

+

Descripción del paquete (si existe). Este comando muestra el archivo +description.txt de cada paquete (un simple archivo de texto, +justificado a 80 caracteres para caber en una terminal estándar).

+
-# tazpkg repack package
+$ tazpkg desc busybox
 
-

repack-config

+

list-files

-

-El comando repack-config recrea un paquete de archivos de -configuración del sistema (ver list-config). Es suficiente instalar el -paquete para encontrar la configuración actual. Para reempaquetar los -archivos de configuración: -

+

Lista todos los archivos instalados con un paquete. Este comando simplemente +lee y muestra el archivo files.list de cada paquete que se genera +automáticamente cuando el paquete es creado y también se usa para borrar los +archivos cuando se desinstala un paquete.

+
-# tazpkg repack-config
+$ tazpkg list-files bc
 
-

recharge

+

block, unblock

-

-Recarga la lista de los paquetes disponibles en el espejo. Este comando -descargará el archivo packages.list más reciente con la lista de -paquetes disponibles en el espejo y antes de empezar guardará una copia de la -lista antigua. Una vez actualizada la lista, puedes usar los comandos list y search. Para ver y -listar las diferencias, puedes usar list-mirror --diff; y para ver -y actualizar paquetes, puedes usar el comando upgrade. Para recargar la ultima lista de paquetes: -

+

Los comandos block y unblock te permiten bloquear versiones +de paquetes instalados asi ya no estarán mantenidos por upgrade. La lista de paquetes en espera se encuentra en +/var/lib/tazpkg/blocked-packages.list. Este archivo puede ser editado +manualmente.

+
-# tazpkg recharge
-
- - -

up o upgrade

- -

-Upgrade te permite actualizar todos los paquetes instalados disponibles en el espejo actual. Actualizar paquetes es una parte importante de la -seguridad del sistema, ayuda a mantenerte seguro con las ultimas actualizaciones y -correcciones. El proyecto Slitaz, aunque sea pequeño, proporciona -actualizaciones regulares de seguridad y en general ofrece las ultimas -versiones de software. Tenga en cuenta que esta función esta dirigida a la gente -con Slitaz instalado en su disco duro. Los paquetes actualizados en el modo -LiveCD se perderán al apagar el sistema. Para actualizar o mostrar todas las -opciones de up: -

-
-# tazpkg up
-# tazpkg --help-up
-# tazpkg up --recharge --install
-# tazpkg up -r -i
+# tazpkg block grub
+# tazpkg unblock grub
+# tazpkg chblock grub
 

check

-

-El comando check puede comprobar las dependencias en paquetes instalados -y determinar si todos los archivos necesarios para reempacar paquetes están -presentes. -

+

El comando check puede comprobar las dependencias en paquetes +instalados y determinar si todos los archivos necesarios para reempacar paquetes +están presentes.

+
-# tazpkg check package
+$ tazpkg check
+$ tazpkg check --full
+$ tazpkg check nano
+$ tazpkg check sakura --full
 
-

block o unblock

+

bugs

-

-Los comandos block y unblock te permiten bloquear versiones de -paquetes instalados asi ya no estarán mantenidos por upgrade. La lista de paquetes en espera se encuentra -en /var/lib/tazpkg/blocked-packages.list. Este archivo puede ser -editado manualmente. Para bloquear o desbloquear un paquete como Grub: -

+

Genera una lista de los errores (bugs) conocidos de los paquetes.

+
-# tazpkg block grub
-# tazpkg unblock grub
+$ tazpkg bugs
+$ tazpkg bugs my_paquete
 
-

get

+

depends, rdepends

-

-Descargar un paquete desde el espejo (si existe). El paquete descargado es -almacenado en el directorio actual. Para encontrar la ruta puedes usar -pwd. Para descargar el paquete Grub: -

-
-# tazpkg get grub
-
+

Muestra un árbol de dependencias o un árbol de dependencias invertido para un +paquete.

- -

get-install

- -

-Descargar e instalar un paquete desde un espejo en internet. El comando -get-install empieza comprobando si el paquete existe en el espejo y si -ya ha sido descargado. Para ver la lista de paquetes en el espejo, tenemos que -usar el comando list-mirror. Para instalar -el paquete -Grub: -

-
-# tazpkg get-install grub
-
- - -

clean-cache

- -

-Borra los paquetes *.tazpkg descargados en la cache. Durante la instalación, -TazPkg guarda una copia de paquetes descargados desde la web. Esto se hace para -ahorrar ancho de banda en caso de reinstalación, pero también puedes querer -liberar espacio en el disco duro o recargar los paquetes: -

-
-# tazpkg clean-cache
-
- - -

setup-mirror

- -

-Configura la dirección URL del espejo. El comando setup-mirror te -preguntará la dirección URL del nuevo espejo. Puedes especificar múltiples -direcciones URL separadas por espacios. Tenga en cuenta que también puede -modificar el archivo principal /var/lib/tazpkg/mirror. La dirección URL -tiene que indicar el directorio que contiene el archivo packages.list y -los paquetes: -

-
-# tazpkg setup-mirror
-
- - -

reconfigure

- -

-Vuelve a reproducir el script de post-instalación del paquete. Ejemplo usando -gcc: -

-
-# tazpkg reconfigure gcc
-
- - -

depends o rdepends

- -

-Muestra un árbol de dependencias o un árbol de dependencias invertido para un -paquete. Ejemplos usando mpd: -

 # tazpkg depends mpd
 # tazpkg rdepends mpd
 
-

add-undigest o setup-undigest

+

extract

-

-Establece la dirección URL de un espejo adicional no oficial para probar -paquetes que todavía no están presentes en los espejos oficiales. Tenga en -cuenta que también puede editar manualmente el archivo en -/var/lib/tazpkg/undigest/repository. La dirección URL tiene -que indicar el directorio que contiene los paquetes y el archivo -packages.list: -

+

Extrae un paquete en un directorio. Si no especificas el directorio de +destino, el paquete se extraerá en el directorio actual usando el nombre +package-version.

+ +
+$ tazpkg extract paquete.tazpkg
+$ tazpkg extract paquete.tazpkg target/dir
+
+ + +

pack

+ +

El comando pack crea un paquete desde un directorio preparado de +antemano o desde un paquete desempaquetado. También puede crear manualmente un +paquete .tazpkg (ver la documentación de Cookutils para la creación automática +de paquetes).

+ +
+# tazpkg pack paquete-version
+
+ + +

repack

+ +

El comando repack te permite recrear un paquete desde los archivos +en el sistema donde fue previamente instalado.

+ +
+$ tazpkg repack paquete
+
+ + +

repack-config

+ +

El comando repack-config recrea un paquete de archivos de +configuración del sistema (ver list-config). +Es suficiente instalar el paquete para encontrar la configuración actual.

+ +
+# tazpkg repack-config
+
+ + +

recompress

+ +

Recompress .tazpkg cpio archive with lzma.

+ +
+$ tazpkg recompress paquete.tazpkg
+
+ + +

convert

+ +

Convierte los paquetes en paquetes Slitaz (.tazpkg).

+ +

Supported packages formats:

+ + + +
+# tazpkg convert alien-paquete
+
+ + +

list-suggested

+ +

List suggested packages for each of your installed packages. With option +--all it shows all suggested packages, and without option it shows only +not installed suggested packages.

+ +
+$ tazpkg list-suggested
+$ tazpkg list-suggested --all
+
+ + + + +

Working with repositories

+ + +

recharge

+ +

Recarga la lista de los paquetes disponibles en el espejo. Este comando +descargará el archivo packages.list más reciente con la lista de +paquetes disponibles en el espejo y antes de empezar guardará una copia de la +lista antigua. Una vez actualizada la lista, puedes usar los comandos list y search. Para ver y +listar las diferencias, puedes usar list-mirror --diff; y para ver +y actualizar paquetes, puedes usar el comando upgrade.

+ +
+# tazpkg recharge
+# tazpkg recharge main
+# tazpkg recharge My_Undigest
+# tazpkg recharge --root=/mnt/sda6
+
+ + +

up o upgrade

+ +

Upgrade te permite actualizar todos los paquetes instalados disponibles en el +espejo actual. Actualizar paquetes es una parte importante de la seguridad del +sistema, ayuda a mantenerte seguro con las ultimas actualizaciones y +correcciones. El proyecto SliTaz, aunque sea pequeño, proporciona +actualizaciones regulares de seguridad y en general ofrece las ultimas versiones +de software. Tenga en cuenta que esta función esta dirigida a la gente con +SliTaz instalado en su disco duro. Los paquetes actualizados en el modo Live CD +se perderán al apagar el sistema. Para actualizar o mostrar todas las opciones +de up:

+ +
+# tazpkg upgrade
+# tazpkg up --recharge --install
+# tazpkg up -r -i
+
+ + +

setup-mirror

+ +

Configura la dirección URL del espejo. El comando setup-mirror te +preguntará la dirección URL del nuevo espejo. Puedes especificar múltiples +direcciones URL separadas por espacios. Tenga en cuenta que también puede +modificar el archivo principal /var/lib/tazpkg/mirror. La dirección URL +tiene que indicar el directorio que contiene el archivo packages.list y +los paquetes:

+ +
+# tazpkg setup-mirror
+
+ + +

add-undigest, setup-undigest

+ +

Establece la dirección URL de un espejo adicional no oficial para probar +paquetes que todavía no están presentes en los espejos oficiales. Tenga en +cuenta que también puede editar manualmente el archivo en +/var/lib/tazpkg/undigest/repository. La dirección URL tiene +que indicar el directorio que contiene los paquetes y el archivo +packages.list:

+
 # tazpkg add-undigest public-repository http://my.home.org/slitaz
 # tazpkg setup-undigest local-repository /home/slitaz/packages
 
+

list-undigest

+ +

Lista espejos no oficiales (undigest) adicionales.

+ +
+# tazpkg list-undigest
+# tazpkg list-undigest --box
+
+ +

remove-undigest

-

-Borra la dirección de un espejo no oficial (undigest): -

+

Borra la dirección de un espejo no oficial (undigest).

+
 # tazpkg remove-undigest my-repository
 
-

list-undigest

-

-Lista espejos no oficiales (undigest) adicionales: -

-
-# tazpkg list-undigest
-
- - -

convert

- -

-Convierte los paquetes Debian (.deb), Redhat (.rpm), Slackware (.tgz) o -Archlinux (.pkg.tar.gz) en paquetes Slitaz (.tazpkg): -

-
-# tazpkg convert alien-package
-
- - -

set-release

-

-El comando set-release cambia la versión actual y actualiza todos los -paquetes a la última versión: -

-
-# tazpkg set-release cooking
-
- - -

bugs

-

-Genera una lista de los errores (bugs) conocidos de los paquetes: -

-
-# tazpkg bugs
-

ENCARGADO DE MANTENIMIENTO

-

-Christophe Lincoln <pankso en slitaz.org> -

+ +

Christophe Lincoln <pankso en slitaz.org>

- diff -r 941baf789cb7 -r a73c9918a5de doc/tazpkg.fr.html --- a/doc/tazpkg.fr.html Sun May 31 12:40:55 2015 -0400 +++ b/doc/tazpkg.fr.html Thu Jun 04 00:15:13 2015 +0300 @@ -1,26 +1,25 @@ - + + Manuel de TazPkg (fr) - + - - +
+

NOM

-

- TazPkg - Tiny autonomous zone package manager -

+

TazPkg — Tiny autonomous zone package manager

SYNTAXE

@@ -33,525 +32,748 @@

DESCRIPTION

-

-TazPkg est un gestionnaire de paquets ultra léger (~35 Ko) permettant -d'installer, lister, télécharger, mettre à jour ou enlever des paquets -précompilés sur un système GNU/Linux. TazPkg propose aussi une commande de -recherche et une commande pour la création de paquets. Il a été créé pour les -besoins de SliTaz GNU/Linux, mini distribution autonome. Le format des paquets -utilise l'extension *.tazpkg, c'est une archive cpio contenant un système de -fichiers (fs) compressé avec gzip, la recette et une éventuelle description. -TazPkg fournit aussi un système de gestion des dépendances basé sur les -recettes des paquets. La recette contient toutes les informations au sujet du -paquet, elle peut aussi contenir les fonctions de pre et post installation. -Cette même recette est par ailleurs utilisée par Cookutils pour compiler les -sources et créer un paquet tazpkg. -

-

-TazPkg est écrit en script shell depuis rien (from scratch), compatible -Bash, et fonctionne avec Ash du projet Busybox. TazPkg est distribué -sous license libre GNU gpl v3. -

+

TazPkg est un gestionnaire de paquets léger permettant d'installer, lister, +télécharger, mettre à jour ou enlever des paquets précompilés sur un système +GNU/Linux. TazPkg propose aussi une commande de recherche et une commande pour +la création de paquets. Il a été créé pour les besoins de SliTaz GNU/Linux, mini +distribution autonome. Le format des paquets utilise l'extension *.tazpkg, c'est +une archive cpio contenant un système de fichiers (fs) compressé avec gzip, la +recette et une éventuelle description. TazPkg fournit aussi un système de +gestion des dépendances basé sur les recettes des paquets. La recette contient +toutes les informations au sujet du paquet, elle peut aussi contenir les +fonctions de pre et post installation. Cette même recette est par ailleurs +utilisée par Cookutils pour compiler les sources et créer un paquet tazpkg.

+

TazPkg est écrit en script shell depuis rien (from scratch), compatible Bash, +et fonctionne avec Ash du projet Busybox. TazPkg est distribué sous license +libre GNU gpl v3.

-

SHELL

- -

-TazPkg fourni un mode SHell permettant de directement passer les commandes -au gestionnaire de paquets. Ce mode est utile pour lancer quelques commandes -comme la mise à jour du système, il support 'su' pour devenir admnistrateur -mais ne propose pas le rappel des commandes. Pour utiliser TazPkg en mode -SHell : -

-
-$ tazpkg shell
-

COMMANDES

+

Service commands

+ + + + +

Working with lists

+ + + + +

Cherche

+ + + + +

Installing and removing packages

+ + + + +

Working with packages

+ + + + +

Working with repositories

+ + + + + + +

Service commands

+ + +

usage

+ +

Show the full list of the TazPkg commands with a brief description.

+ +
+$ tazpkg usage
+$ tazpkg
+
+ + +

help

+ +

Display help for the selected command (help or -h). You can +enter a short name of the command, the full name or a part of the full name. You +can ignore hyphens at the beginning of the short name. If the requested part of +the full name match the several commands, you will be asked to clarify the +request.

+ +
+$ tazpkg help -gi
+$ tazpkg -h us
+
+ + +

activity

+ +

Display TazPkg activity log (activity or log or +-a). Optional parameter --nb= lets you set number of displayed +lines.

+ +
+$ tazpkg activity
+$ tazpkg -a --nb=20
+
+ + +

clean-cache

+ +

Supprimer les paquets TazPkg téléchargés dans le cache. Lors de +l'installation de paquets via le Web, TazPkg garde une copie du paquet, cela est +fait pour gagner de la bande passante en cas de réinstallation, mais il se peut +que vous vouliez libérer de la place sur le disque dur ou que vous désiriez +retélécharger des paquets :

+ +
+# tazpkg clean-cache
+# tazpkg -cc
+
+ + +

shell

+ +

TazPkg fourni un mode SHell permettant de directement passer les commandes au +gestionnaire de paquets. Ce mode est utile pour lancer quelques commandes comme +la mise à jour du système, il support 'su' pour devenir admnistrateur mais ne +propose pas le rappel des commandes. Pour utiliser TazPkg en mode SHell :

+ +
+$ tazpkg shell
+# tazpkg shell
+
+ + + + +

Working with lists

+ +

list

-

-Liste et compte les paquets installés sur le système. Cette commande permet +

Liste et compte les paquets installés sur le système. Cette commande permet d'afficher sur une colonne la liste tous les paquets installés, vous pouvez aussi utiliser la commande de recherche (search) pour avoir une liste en -fonction d'un nom (exemple xorg). Cette commande vous permet aussi de lister -les catégories, les paquets en fonction de leur catégorie et les paquets -bloqués : -

+fonction d'un nom (exemple xorg). Cette commande vous permet aussi de lister les +catégories, les paquets en fonction de leur catégorie et les paquets +bloqués :

-# tazpkg list
-# tazpkg list cat|categories
-# tazpkg list blocked
-
- - -

xhtml-list

- -

-La commande 'xhtml-list' permet de créer une liste au format xHTML des -paquets installés sur le système, une fois générée, cette liste peut être -lue avec votre navigateur Web préféré. Cette commande peut être lancée -en tant que simple utilisateur et crée par défaut une liste nommée -'installed-packages.html' dans le répertoire courant. A noter que vous -pouvez aussi changer le nom de la liste générée via la ligne de -commande : -

-
-# tazpkg xhtml-list
-# tazpkg xhtml-list list-name.html
+$ tazpkg list
+$ tazpkg list cat
+$ tazpkg list games
+$ tazpkg list jeux
+$ tazpkg list blocked
 

list-mirror

-

-Liste et compte les paquets disponnibles sur le miroir. Cette commande va -afficher le dernier fichier packages.list rechargé depuis le miroir, si la -liste des paquets n'existe pas, il vous sera demandé de lancer la commande -'tazpkg recharge' en tant qu'administrateur (root) pour obtenir la liste -des paquets disponibles. L'option --diff est utilisée pour afficher le -fichier des différences entre la dernière et l'actuelle liste des paquets : -

+

Liste et compte les paquets disponnibles sur le miroir. Cette commande va +afficher le dernier fichier packages.list rechargé depuis le miroir, si la liste +des paquets n'existe pas, il vous sera demandé de lancer la commande +tazpkg recharge en tant qu'administrateur +(root) pour obtenir la liste des paquets disponibles. L'option --diff +est utilisée pour afficher le fichier des différences entre la dernière et +l'actuelle liste des paquets.

+
-# tazpkg list-mirror
-# tazpkg list-mirror --diff
+$ tazpkg list-mirror
+$ tazpkg -lm --diff
 
+

list-config

+ +

Lists the system configuration files. The --box option displays in +table form. You can specify package name to display configuration files only for +this package.

+ +
+$ tazpkg list-config
+$ tazpkg list-config --box
+$ tazpkg list-config slim
+$ tazpkg list-config --box slim
+
+ + + + +

Search

+ + + + +

Recherche de paquets par patron ou nom de paquet. La commande va chercher le +terme voulu dans les paquets installés et dans les listes des paquets +disponibles sur le miroir.

+ +

Pour obtenir la plus récente liste des paquets installables depuis internet, +il suffit de lancer tazpkg recharge avant d'effectuer une +recherche :

+ +
+$ tazpkg search gcc
+$ tazpkg search mt -i
+$ tazpkg search bit -l
+
+ + +

search-pkgname

+ +

Search for a file on mirror and output only the packages names +(search-pkgname or -sp).

+ +
+$ tazpkg search-pkgname libnss
+$ tazpkg -sp /usr/share/fonts
+
+ + +

search-file

+ +

La commande search-file permet de rechercher un fichier parmi tous +les fichiers installés par tous les paquets. Cette commande est très utile pour +trouver le chemin complet vers un fichier et savoir si un fichier est bien +présent sur le système.

+ +
+$ tazpkg search-file libnss
+$ tazpkg -sf /usr/share/fonts --mirror
+
+ + + + +

Installing and removing packages

+ + +

get

+ +

Télécharge un paquet depuis le miroir (si il existe). Le paquet téléchargé +est stocké dans le répertoire courant, pour connaître le chemin vous pouvez +utiliser la commande pwd.

+ +
+# tazpkg get grub
+# tazpkg get nano --root=/mnt/sda6
+
+ + +

install

+ +

Cette commande permet l'installation d'un paquet local avec l'extension +.tazpkg. Voir la commande get-install pour installer un paquet +depuis internet. A noter que vous pouvez forcer l'installation via l'option +--forced, désinstaller et réinstaller ou encore spécifier la racine du +système dans lequel vous désirez installer le paquets via l'option +--root= :

+ +
+# tazpkg install package-1.0.tazpkg
+# tazpkg -i path/to/package-1.0.tazpkg --forced
+# tazpkg -i path/to/package-1.0.tazpkg --root=/mnt/rootfs
+
+ + +

get-install

+ +

Installer un paquet depuis un mirroir sur internet. La commande +get-install commence par vérifier si le paquet existe bien sur le +miroir et si il n'a pas déjà été téléchargé, avant de commencer le rapatriement. +Pour connaître la liste des paquets sur le miroir il faut utiliser la commande +list-mirror (voir aussi recharge).

+ +
+# tazpkg get-install grub
+# tazpkg -gi grub --forced
+# tazpkg -gi nano --root=/mnt/sda6
+
+ + +

install-list, get-install-list

+ +

Installation d'un set de paquets listés dans un fichier. Cette commande +permet d'installer plusieurs paquets en une seule commande et peut aussi être +forcée :

+ +
+# tazpkg install-list my-packages.list
+# tazpkg get-install-list my-packages.list --forced
+
+ + +

remove

+ +

Désinstallation d'un paquet, il vous sera demandé confirmation (y/N). Cette +commande va supprimer tous les fichiers installés avec le paquet, pour afficher +cette liste, vous pouvez utiliser la commande list-files de TazPkg +suivie du nom du paquet en question.

+ +
+# tazpkg remove bc
+# tazpkg -r gtk+-3 --root=/mnt/sda6
+# tazpkg -r nano --auto
+
+ + +

reconfigure

+ +

La commande reconfigure permet de relancer les commande de post et +pre-installation d'un paquet afin de le reconfigurer si besoin est :

+ +
+# tazpkg reconfigure gcc
+# tazpkg reconfigure gcc --root=/mnt/sda6
+
+ + + + +

Cette commande permet l'installation d'un paquet déjà installé sur un autre +media. Cette installation s'effectue par des liens symboliques et consomme très +peu de mémoire. Elle est utilisée généralement avec un système en RAM pour +installer des compléments depuis une clé USB.

+ +
+# tazpkg link openoffice /media/usbdisk
+
+ + +

set-release

+ +

La commande set-release permet de changer la version de SliTaz et de +mettre à jour tous les paquets. Attention cette commande peut être dangereuse +dans la cas d'une mise à jour de la version stable version en cuisson +(cooking) :

+ +
+# tazpkg set-release cooking
+
+ + +

add-flavor, install-flavor

+ +

Installation d'un set de paquets listés dans une saveur. Cette commande +permet d'installer tous les paquets d'une saveur en une seule commande sans +avoir à générer un nouveau CD ROM avec tazlito.

+ +
+# tazpkg add-flavor gtkonly
+# tazpkg install-flavor justx
+
+ + + + + + + +

Working with packages

+ +

info

-

-Donne les informations disponibles dans la recette du paquet en question, sa +

Donne les informations disponibles dans la recette du paquet en question, sa version, sa catégorie, le mainteneur, son site Web et ses éventuelles -dépendances (voir aussi Cookutils pour plus d'informations sur les recettes) : -

+dépendances (voir aussi Cookutils pour plus d'informations sur les +recettes) :

+
-# tazpkg info busybox
+$ tazpkg info busybox
 

desc

-

-Description du paquet (si elle existe). Cette commande affiche le fichier -description.txt propre à chaque paquet, la description est un simple fichier -texte ne dépassant pas le 80 caractères pour un affichage standard dans un -terminal. Si la description du paquet n'existe pas, vous pouvez la créer et -l'envoyer au mainteneur du paquet (quelques lignes suffisent) : -

+

Description du paquet (si elle existe). Cette commande affiche le fichier +description.txt propre à chaque paquet, la description est un simple +fichier texte ne dépassant pas le 80 caractères pour un affichage standard dans +un terminal. Si la description du paquet n'existe pas, vous pouvez la créer et +l'envoyer au mainteneur du paquet (quelques lignes suffisent) :

+
-# tazpkg desc busybox
+$ tazpkg desc busybox
 

list-files

-

-Liste et compte les fichiers installés avec un paquet. Cette commande va -simplement lire et classer le fichier files.list propre à chaque paquet, ce -fichier est généré automatiquement lors de la création, il est aussi utilisé -pour supprimer tous les fichiers lors de la désinstallation d'un paquet. Pour -lister les fichier installés avec le paquet bc : -

+

Liste et compte les fichiers installés avec un paquet. Cette commande va +simplement lire et classer le fichier files.list propre à chaque +paquet, ce fichier est généré automatiquement lors de la création, il est aussi +utilisé pour supprimer tous les fichiers lors de la désinstallation d'un +paquet.

+
-# tazpkg list-files bc
+$ tazpkg list-files bc
 
- +

block, unblock

-

-Recherche de paquets par patron ou nom de paquet. La commande -va chercher le terme voulu dans les paquets installés et dans les listes des -paquets disponibles sur le miroir. Pour obtenir la plus récente liste des -paquets installables depuis internet, il suffit de lancer 'tazpkg recharge' -avant d'effectuer une recherche : -

+

Les commandes block et unblock pemettent de bloquer la +version du paquet installé pour qu'il ne soit pas mis à jour par la commande +upgrade. La liste des paquets bloqués est contenue dans le fichier : +/var/lib/tazpkg/blocked-packages.list, elle peut aussi être éditée à la +main.

+
-# tazpkg search gcc
-# tazpkg search gcc [--installed|--list|--mirror]
-
-

Ou :

-
-# tazpkg search gcc [-i|-l|-m]
+# tazpkg block grub
+# tazpkg unblock grub
+# tazpkg chblock grub
 
-

search-files

+

check

-

-La commande 'search-file' permet de rechercher un fichier parmi tous les -fichiers installés par tous les paquets. Cette commande est très utile pour -trouver le chemin complet vers un fichier et savoir si un fichier est bien -présent sur le système. Exemple : -

+

La commande check permet de vérifier les dépendances sur les paquets +installés et de vérifier si tous les fichiers nécessaires à la reconstruction +des paquets sont bien présents :

+
-$ tazpkg search-file libnss
+$ tazpkg check
+$ tazpkg check --full
+$ tazpkg check nano
+$ tazpkg check sakura --full
 
-

install

+

bugs

-

-Cette commande permet l'installation d'un paquet local avec l'extension -.tazpkg. Voir la commande 'get-install' pour installer un paquet depuis -internet. A noter que vous pouvez forcer l'installation via l'option ---forced, désinstaller et réinstaller ou encore spécifier la racine du système -dans lequel vous désirez installer le paquets via l'option --root= : -

+

Affiche les bugs connus :

+
-# tazpkg install package-1.0.tazpkg
-
-

Ou :

-
-# tazpkg install path/to/package-1.0.tazpkg --forced
-
-

Ou :

-
-# tazpkg install path/to/package-1.0.tazpkg --root=/mnt/rootfs
+$ tazpkg bugs
+$ tazpkg bugs my_package
 
-

install-list

+

depends, rdepends

-

-Installation d'un set de paquets listés dans un fichier. Cette commande -permet d'installer plusieurs paquets en une seule commande et peut aussi être -forcée : -

+

Affiche l'arbre des dépendances d'un paquet, c'est à dire tous les paquets +qui devront être installés en plus :

+
-# tazpkg install-list my-packages.list
-# tazpkg install-list my-packages.list --forced
+# tazpkg depends mpd
+# tazpkg rdepends mpd
 
- +

extract

-

-Extraire un paquet dans un répertoire donné. Si vous ne spécifiez pas le -répertoire de destination, le paquet sera extrait dans le répertoire courant -en utilisant le nom paquet-version : -

+

Extraire un paquet dans un répertoire donné. Si vous ne spécifiez pas le +répertoire de destination, le paquet sera extrait dans le répertoire courant en +utilisant le nom paquet-version :

+
-# tazpkg extract package.tazpkg
-# tazpkg extract package.tazpkg target/dir
+$ tazpkg extract paquet.tazpkg
+$ tazpkg extract paquet.tazpkg target/dir
 

pack

-

-La commande 'pack' permet de créer un paquet depuis un répertoire préparé à -l'avance ou depuis un paquet désarchivé. Cette commande permet aussi de créer -manuellement un paquet.tazpkg (voir la documentation et Cookutils pour la création -automatique de paquets). Pour empaqueter un paquet : -

+

La commande pack permet de créer un paquet depuis un répertoire +préparé à l'avance ou depuis un paquet désarchivé. Cette commande permet aussi +de créer manuellement un paquet.tazpkg (voir la documentation et +Cookutils pour la création automatique de paquets).

+
-# tazpkg pack package-version
+# tazpkg pack paquet-version
 

repack

-

-La commande 'repack' permet de recréer un paquet depuis les fichiers présents -sur le système où il a été précédemment installé. Pour réempaqueter un paquet : -

+

La commande repack permet de recréer un paquet depuis les fichiers +présents sur le système où il a été précédemment installé.

+
-# tazpkg repack package
+$ tazpkg repack paquet
 
+

repack-config

+ +

The repack-config command recreates a package of the system +configuration files (see list-config). It is +enough to install the package to find the current configuration.

+ +
+# tazpkg repack-config
+
+ + +

recompress

+ +

Recompress .tazpkg cpio archive with lzma.

+ +
+$ tazpkg recompress package.tazpkg
+
+ + +

convert

+ +

Convertir un paquet en paquet Slitaz (.tazpkg) :

+ +

Supported packages formats:

+ + + + +
+# tazpkg convert alien-paquet-file
+
+ + +

list-suggested

+ +

List suggested packages for each of your installed packages. With option +--all it shows all suggested packages, and without option it shows only +not installed suggested packages.

+ +
+$ tazpkg list-suggested
+$ tazpkg list-suggested --all
+
+ + + + +

Working with repositories

+ +

recharge

-

-Recharge la liste des paquets disponibles sur le miroir (packages.list). Cette -commande va télécharger la plus récente liste des paquets installables depuis -le miroir, à noter qu'avant de commencer, TazPkg va sauvegarder l'ancienne -liste. Une fois la liste à jour, vous pouvez la consulter via la commande -'list' et effectuer un recherche de paquet via la commande 'search' de TazPkg. -Pour réafficher la liste des différences, vous pouvez utiliser la commande -'list-mirror --diff'. Et pour afficher et mettre à jour les paquets du système, -vous pouvez utiliser 'upgrade'. Pour recharger la plus récente liste des -paquets : -

+

Recharge la liste des paquets disponibles sur le miroir. Cette commande va +télécharger la plus récente liste des paquets installables depuis le miroir, à +noter qu'avant de commencer, TazPkg va sauvegarder l'ancienne liste. Une fois la +liste à jour, vous pouvez la consulter via la commande list et +effectuer un recherche de paquet via la commande search de TazPkg. Pour +réafficher la liste des différences, vous pouvez utiliser la commande +list-mirror --diff. Et pour afficher et mettre à jour les paquets du +système, vous pouvez utiliser upgrade.

+
 # tazpkg recharge
+# tazpkg recharge main
+# tazpkg recharge My_Undigest
+# tazpkg recharge --root=/mnt/sda6
 

up ou upgrade

-

-La commande 'upgrade' permet de mettre à jour tous les paquets installés et -disponibles sur le miroir courant. La mise à jour des paquets est une -importante partie du système, elle permet de garder un système sécurisé avec +

La commande upgrade permet de mettre à jour tous les paquets +installés et disponibles sur le miroir courant. La mise à jour des paquets est +une importante partie du système, elle permet de garder un système sécurisé avec les dernières corrections et nouveautés. Le projet SliTaz, même mini, fournit régulièrement des mises à jours de sécurité et propose généralement les dernières versions des logiciels. A noter que cette fonction est destinée aux -personnes ayant installé SliTaz sur disque dur, en mode LiveCD les paquets mis +personnes ayant installé SliTaz sur disque dur, en mode Live CD les paquets mis à jour seront perdus lors de l'arrêt du système. Pour garder un système un -jour : -

+jour :

+ +

Up permet aussi d'automatiquement recharger la list des paquets ou installer +les mises à jours. Petit example et affichage de l'aide spécifique à cette +commande :

+
-# tazpkg up
-
-

- Up permet aussi d'automatiquement recharger la list des paquets ou installer - les mises à jours. Petit example et affichage de l'aide spécifique à cette - commande: -

-
-# tazpkg up --recharge
-# tazpkg --help-up
-
- - -

set-release

- -

-La commande 'set-release' permet de changer la version de SliTaz et de mettre -à jour tous les paquets. Attention cette commande peut être dangereuse dans -la cas d'une mise à jour de la version stable version en cuisson (cooking) : -

-
-# tazpkg set-release cooking
-
- - -

check

- -

-La commande 'check' permet de vérifier les dépendances sur les paquets -installés et de vérifier si tous les fichiers nécessaires à la reconstruction -des paquets sont bien présents : -

-
-# tazpkg check
-# tazpkg check --full
-
- - -

block ou unblock

- -

-Les commandes 'block' et 'unblock' pemettent de bloquer la version du paquet -installé pour qu'il ne soit pas mis à jour par la commande 'upgrade'. La liste -des paquets bloqués est contenue dans le fichier : -/var/lib/tazpkg/blocked-packages.list, elle peut aussi être éditée à la main. -Pour bloquer ou débloquer un paquet tel que Grub : -

-
-# tazpkg block grub
-
-

Ou :

-
-# tazpkg unblock grub
-
- - -

get

- -

-Télécharge un paquet depuis le miroir (si il existe). Le paquet téléchargé -est stocké dans le répertoire courant, pour connaître le chemin vous pouvez -utiliser la commande 'pwd'. Pour télécharger un paquet tel que 'grub', il suffit -de lancer la commande : -

-
-# tazpkg get grub
-
- - -

get-install

- -

-Installer un paquet depuis un mirroir sur internet. La commande 'get-install' -commence par vérifier si le paquet existe bien sur le miroir et si il n'a pas -déjà été téléchargé, avant de commencer le rapatriement. Pour connaître la -liste des paquets sur le miroir il faut utiliser la commande 'list-mirror' -(voir aussi recharge). Pour installer un paquet tel que 'grub' : -

-
-# tazpkg get-install grub
-
- - -

clean-cache

- -

-Supprimer les paquets TazPkg téléchargés dans le cache. Lors de l'installation -de paquets via le Web, TazPkg garde une copie du paquet, cela est fait pour -gagner de la bande passante en cas de réinstallation, mais il se peut que vous -vouliez libérer de la place sur le disque dur ou que vous désiriez -retélécharger des paquets : -

-
-# tazpkg clean-cache
+# tazpkg upgrade
+# tazpkg up --recharge --install
+# tazpkg up -r -i
 

setup-mirror

-

-Configurer l'URL du miroir, la commande 'setup-mirror' vous demandera alors -l'URL du nouveau miroir. Vous pouvez spécifier plusieurs URLs en les séparant -par des espaces. A noter que vous pouvez aussi modifier à la main le -fichier /var/lib/tazpkg/mirror. L'URL doit pointer sur le répertoire contenant -la liste (packages.list) et les paquets : -

+

Configurer l'URL du miroir, la commande setup-mirror vous demandera +alors l'URL du nouveau miroir. Vous pouvez spécifier plusieurs URLs en les +séparant par des espaces. A noter que vous pouvez aussi modifier à la main le +fichier /var/lib/tazpkg/mirror. L'URL doit pointer sur le répertoire +contenant la liste (packages.info) et les paquets.

+
 # tazpkg setup-mirror
 
-

setup-undigest ou add-undigest

+

add-undigest, setup-undigest

-

-Configurer l'URL d'un miroir complémentaire non officiel pour tester des -paquets non encore présents sur les miroirs. -A noter que vous pouvez aussi modifier à la main le fichier -/var/lib/tazpkg/undigest/<undisgest-name>/mirror. -L'URL doit pointer sur le répertoire contenant -la liste (packages.list) et les paquets : -

+

Configurer l'URL d'un miroir complémentaire non officiel pour tester des +paquets non encore présents sur les miroirs. A noter que vous pouvez aussi +modifier à la main le fichier +/var/lib/tazpkg/undigest/undisgest-name/mirror. L'URL doit +pointer sur le répertoire contenant la liste (packages.info) et les +paquets.

+
-# tazpkg setup-undigest public-repository http://my.home.org/slitaz
-# tazpkg setup-undigest local-repository /home/slitaz/packages
+# tazpkg add-undigest public-repository http://my.home.org/slitaz
+# tazpkg setup-undigest local-repository /home/slitaz/packages
+
+ + +

list-undigest

+ +

Affiche les miroirs complémentaires.

+ +
+# tazpkg list-undigest
+# tazpkg list-undigest --box
 

remove-undigest

-

-Supprime l'URL un miroir complémentaire non officiel. -

+

Supprime l'URL un miroir complémentaire non officiel.

+
-# tazpkg remove-undigest my-repository
+# tazpkg remove-undigest my-repository
 
-

list-undigest

-

-Affiche les miroirs complémentaires. -

-
-# tazpkg list-undigest
-
- - -

reconfigure

- -

-La commande 'reconfigure' permet de relancer les commande de post et -pre-installation d'un paquet afin de le reconfigurer si besoin est : -

-
-# tazpkg reconfigure package
-
- - -

convert

- -

-La commande 'convert' permet de convertir un paquet Debian (.deb), -Redhat (.rpm), Slackware (.tgz) ou Archlinux (.pkg.tar.gz) en paquet -Slitaz (.tazpkg) : -

-
-# tazpkg convert alien-package
-
- - -

depend

- -

-Affiche l'arbre des dépendances d'un paquet, c'est à dire tous les -paquets qui devront être installés en plus : -

-
-# tazpkg depend package
-
- - -

rdepend

- -

-Affiche l'arbre des dépendances inversé d'un paquet, c'est à dire tous les -paquets qui en dépendent directement ou indirectement : -

-
-# tazpkg rdepend package
-
- - -

bugs

- -

-Affiche les bugs connus : -

-
-# tazpkg bugs package
-

MAINTENEUR

-

-Christophe Lincoln <pankso at slitaz.org> -

+ +

Christophe Lincoln <pankso at slitaz.org>

diff -r 941baf789cb7 -r a73c9918a5de doc/tazpkg.pt.html --- a/doc/tazpkg.pt.html Sun May 31 12:40:55 2015 -0400 +++ b/doc/tazpkg.pt.html Thu Jun 04 00:15:13 2015 +0300 @@ -1,26 +1,25 @@ - + + Manual TazPkg (pt) - - + + - - +
+

NOME

-

- TazPkg - Tiny autonomous zone package manager -

+

TazPkg — Tiny autonomous zone package manager

SINTAXE

@@ -32,461 +31,691 @@

DESCRIÇÃO

-

-TazPkg é um gerenciador de pacotes ultraleve (~ 35KB) que instala, lista, baixa, -atualiza ou remove pacotes precompilados em um sistema GNU/Linux. TazPkg fornece -comandos para busca e criação de pacotes e foi criado independentemente. Os -pacotes usando a extensão *.tazpkg são constituidos de arquivos cpio -que contém um sistema de arquivos comprimido com o gzip, uma receita e uma -descrição opcional. O TazPkg também gerencia dependências baseado nas receitas -de pacote: cada receita contém todas as informações sobre um pacote e também -pode incluir funções de pré e pós-instalação. A mesma receita é usada pelo -Cookutils para compilar fontes e gerar um pacote .tazpkg. -

-

-O TazPkg é inteiramente construído a partir do zero usando SHell Script. -Compatível com o Bash, roda sobre o Ash - parte do projeto Busybox. O TazPkg -é distribuído sob a licença livre GNU GPL V3. -

+

TazPkg é um gerenciador de pacotes leve que instala, lista, baixa, atualiza +ou remove pacotes precompilados em um sistema GNU/Linux. TazPkg fornece comandos +para busca e criação de pacotes e foi criado independentemente. Os pacotes +usando a extensão *.tazpkg são constituidos de arquivos cpio que contém um +sistema de arquivos comprimido com o gzip, uma receita e uma descrição opcional. +O TazPkg também gerencia dependências baseado nas receitas de pacote: cada +receita contém todas as informações sobre um pacote e também pode incluir +funções de pré e pós-instalação. A mesma receita é usada pelo Cookutils para +compilar fontes e gerar um pacote .tazpkg.

+ +

O TazPkg é inteiramente construído a partir do zero usando SHell Script. +Compatível com o Bash, roda sobre o Ash — parte do projeto Busybox. O TazPkg é +distribuído sob a licença livre GNU GPL V3.

COMANDOS

+

Service commands

+ + + + +

Working with lists

+ + + + +

Busca

+ + + + +

Installing and removing packages

+ + + + +

Working with packages

+ + + + +

Working with repositories

+ + + + + + +

Service commands

+ + +

usage

+ +

Show the full list of the TazPkg commands with a brief description.

+ +
+$ tazpkg usage
+$ tazpkg
+
+ + +

help

+ +

Display help for the selected command (help or -h). You can +enter a short name of the command, the full name or a part of the full name. You +can ignore hyphens at the beginning of the short name. If the requested part of +the full name match the several commands, you will be asked to clarify the +request.

+ +
+$ tazpkg help -gi
+$ tazpkg -h us
+
+ + +

activity

+ +

Display TazPkg activity log (activity or log or +-a). Optional parameter --nb= lets you set number of displayed +lines.

+ +
+$ tazpkg activity
+$ tazpkg -a --nb=20
+
+ + +

clean-cache

+ +

Remove pacotes *.tazpkg baixados que se encontram no cache. Durante a +instalação, o TazPkg mantém uma cópia dos pacotes baixados da internet. Isto é +feito para economizar banda no caso de uma reinstalação, mas pode ser que você +queira ter mais espaço no disco rígido ou baixar os pacotes novamente:

+ +
+# tazpkg clean-cache
+# tazpkg -cc
+
+ + +

shell

+ +

Run interactive TazPkg shell. Here you can enter all the TazPkg commands +listed above.

+ +
+$ tazpkg shell
+# tazpkg shell
+
+ + + + +

Working with lists

+ +

list

-

-Lista pacotes instalados no sistema. Este comando mostra uma lista em formato + +

Lista pacotes instalados no sistema. Este comando mostra uma lista em formato de coluna com todos os pacotes instalados, e também permite listar categorias, pacotes baseados em categorias e pacotes bloqueados para instalação. Você também -pode usar o comando "search" (buscar) para uma lista baseada em um termo ou em -um nome de pacote: -

+pode usar o comando search (buscar) para uma +lista baseada em um termo ou em um nome de pacote:

+
-# tazpkg list
-# tazpkg list cat|categories
-# tazpkg list blocked
-
- - -

xhtml-list

- -

-O comando "xhtml-list" cria uma lista em formato xHTML de todos os pacotes -instalados no sistema que pode ser lida com o seu navegador web favorito. Pode -ser utilizado por um usuário comum e criar uma página "instaled-packages.html" -(pacotes instalados) no diretório atual. Note que você pode mudar o nome da -lista gerada por meio da linha de comando: -

-
-# tazpkg xhtml-list
-# tazpkg xhtml-list list-name.html
+$ tazpkg list
+$ tazpkg list cat
+$ tazpkg list games
+$ tazpkg list blocked
 

list-mirror

-

-Lista pacotes disponíveis no mirror. Este comando mostra o arquivo "packages-list" -recarregado a partir do mirror. Se este arquivo não existir, será pedido a -você que rode o comando "tazpkg recharge" como usuário root para listar os -pacotes disponíveis. A opção --diff é usada para mostrar as diferenças entre -a última e a atual lista de pacotes: -

+

Lista pacotes disponíveis no mirror. Este comando mostra o arquivo +packages-list recarregado a partir do mirror. Se este arquivo não +existir, será pedido a você que rode o comando tazpkg recharge como usuário root para listar os pacotes +disponíveis. A opção --diff é usada para mostrar as diferenças entre a +última e a atual lista de pacotes:

+
-# tazpkg list-mirror
-# tazpkg list-mirror --diff
+$ tazpkg list-mirror
+$ tazpkg -lm --diff
 
+

list-config

+ +

Lista os arquivos de configuração do sistema. A opção --box mostra +estas informações em formato de tabela.

+ +
+$ tazpkg list-config
+$ tazpkg list-config --box
+$ tazpkg list-config slim
+$ tazpkg list-config --box slim
+
+ + + + +

Search

+ + + + +

Busca por pacotes por proprietário ou nome do pacote. Este comando busca pelo +termo informado nos pacotes instalados e na lista de pacotes disponíveis no +mirror. Para obter a mais recente lista de pacotes disponíveis, rode +tazkpg recharge antes de iniciar uma busca:

+ +
+$ tazpkg search gcc
+$ tazpkg search mt -i
+$ tazpkg search bit -l
+
+ + +

search-pkgname

+ +

Search for a file on mirror and output only the packages names +(search-pkgname or -sp).

+ +
+$ tazpkg search-pkgname libnss
+$ tazpkg -sp /usr/share/fonts
+
+ + +

search-file

+ +

O comando search-file permite a busca por um arquivo entre os +instalados pelos pacotes. Este comando é muito útil para achar o caminho +completo para um arquivo e determinar se um arquivo está presente no +sistema.

+ +
+$ tazpkg search-file libnss
+$ tazpkg -sf /usr/share/fonts --mirror
+
+ + + + +

Installing and removing packages

+ + +

get

+ +

Baixa um pacote do mirror (se existir). O arquivo baixado é arquivado no +diretório atual. Para descobrir qual o diretório atual utilize o comando +pwd.

+ +
+# tazpkg get grub
+# tazpkg get nano --root=/mnt/sda6
+
+ + +

install

+ +

Este comando instala um pacote disponível localmente que possui a extensão +.tazpkg. Veja get-install para instalar pacotes disponíves na +internet. Note que você pode forçar a instalação com a opção --force. +Você também dispõe de opções para desinstalação e reinstalação ou para +especificar o sistema root no qual você deseja instalar o pacote com a opção +--root=:

+ +
+# tazpkg install package-1.0.tazpkg
+# tazpkg -i path/to/package-1.0.tazpkg --forced
+# tazpkg -i path/to/package-1.0.tazpkg --root=/mnt/rootfs
+
+ + +

get-install

+ +

Baixa e instala um pacote de um mirror na internet. O comando +get-install inicia checando se o pacote requerido existe no mirror e se +já foi baixado. Para uma lista de pacotes do mirror, usa-se o comando +list-mirror.

+ +
+# tazpkg get-install grub
+# tazpkg -gi grub --forced
+# tazpkg -gi nano --root=/mnt/sda6
+
+ + +

install-list, get-install-list

+ +

Instala uma seleção de pacotes listados em um arquivo. Este comando permite a +você instalar vários pacotes com um único comando, e também oferece a opção +--forced:

+ +
+# tazpkg install-list my-packages.list
+# tazpkg get-install-list my-packages.list --forced
+
+ + +

remove

+ +

Remove um pacote. Será pedido que você confirme a ação (y/N). Este comando +deleta todos os arquivos instalados pelo pacote. Para ver a lista de arquivos, +use o comando list-files seguido do nome do pacote.

+ +
+# tazpkg remove bc
+# tazpkg -r gtk+-3 --root=/mnt/sda6
+# tazpkg -r nano --auto
+
+ + +

reconfigure

+ +

Executa novamente o script de pós instalação de um pacote.

+ +
+# tazpkg reconfigure gcc
+# tazpkg reconfigure gcc --root=/mnt/sda6
+
+ + + + +

Permite a instalação de um pacote a partir de uma mídia qualquer. A +configuração é feita criando links simbólicos e consome pouca memória. +Geralmente é usado em sistemas Live CD para instalar pacotes encontrados numa +mídia USB:

+ +
+# tazpkg link openoffice /media/usbdisk
+
+ + +

set-release

+ +

Este comando muda a versão atual e faz a atualização de pacotes para o +lançamento mais recente:

+ +
+# tazpkg set-release cooking
+
+ + +

add-flavor, install-flavor

+ +

Install a set of packages from a flavor. In addition, install-flavor +purges other installed packages.

+ +
+# tazpkg add-flavor gtkonly
+# tazpkg install-flavor justx
+
+ + + + +

Working with packages

+ +

info

-

-Mostra qualquer informação disponível na receita para o pacote em questão - sua -versão, categoria, mantenedor, website e quaisquer dependências (veja também -Cookutils para mais informações sobre receitas): -

+

Mostra qualquer informação disponível na receita para o pacote em questão — +sua versão, categoria, mantenedor, website e quaisquer dependências (veja também +Cookutils para mais informações sobre receitas):

+
-# tazpkg info busybox
+$ tazpkg info busybox
 

desc

-

-Descrição do pacote (se existir). Este comando mostra o arquivo "description.txt" -de cada pacote (um arquivo de texto simples, justificado em 80 caracteres para -caber num terminal padrão): -

+

Descrição do pacote (se existir). Este comando mostra o arquivo +description.txt de cada pacote (um arquivo de texto simples, +justificado em 80 caracteres para caber num terminal padrão).

+
-# tazpkg desc busybox
-
- - -

list-config

- -

-Lista os arquivos de configuração do sistema. A opção --box mostra estas -informações em formato de tabela -

-
-# tazpkg list-config
-# tazpkg list-config --box
+$ tazpkg desc busybox
 

list-files

-

-Lista todos os arquivos instalados pelo pacote. Este comando lê e mostra o -conteúdo do arquivo "files.list" de cada pacote, o qual é automaticamente gerado -quando um pacote é criado e também é usado para remover arquivos quando se -desinstala um pacote. Para listar os arquivos instalados pelo pacote bc: -

+

Lista todos os arquivos instalados pelo pacote. Este comando lê e mostra o +conteúdo do arquivo files.list de cada pacote, o qual é automaticamente +gerado quando um pacote é criado e também é usado para remover arquivos quando +se desinstala um pacote.

+
-# tazpkg list-files bc
+$ tazpkg list-files bc
 
- +

block, unblock

-

-Busca por pacotes por proprietário ou nome do pacote. Este comando busca pelo -termo informado nos pacotes instalados e na lista de pacotes disponíveis no -mirror. Para obter a mais recente lista de pacotes disponíveis, rode "tazkpg -recharge" antes de iniciar uma busca: -

+

Os comandos block e unblock permitem o bloqueio de pacotes +instalados para que estes não possam ser atualizados com o comando +upgrade. A lista de pacotes bloqueados está contida no arquivo +/var/lib/tazpkg/blocked-packages.list, que também pode ser editado +manualmente.

+
-# tazpkg search gcc
+# tazpkg block grub
+# tazpkg unblock grub
+# tazpkg chblock grub
 
-

search-file

+

check

-

-O comando "search-file" permite a busca por um arquivo entre os instalados pelos -pacotes. Este comando é muito útil para achar o caminho completo para um -arquivo e determinar se um arquivo está presente no sistema. Exemplo: -

+

O comando check checa por dependências em pacotes instalados e +determina se todos os arquivos necessários para o re-empacotamento de um pacote +estão presentes.

+
-$ tazpkg search-file libnss
+$ tazpkg check
+$ tazpkg check --full
+$ tazpkg check nano
+$ tazpkg check sakura --full
 
-

install

+

bugs

-

-Este comando instala um pacote disponível localmente que possui a extensão -.tazpkg. Veja "get-install" para instalar pacotes disponíves na internet. Note -que você pode forçar a instalação com a opção --force. Você também dispõe de -opções para desinstalação e reinstalação ou para especificar o sistema root -no qual você deseja instalar o pacote com a opção -root= : -

+

Mostra uma lista de bugs conhecidos dos pacotes.

+
-# tazpkg install package-1.0.tazpkg
-# tazpkg install path/to/package-1.0.tazpkg --forced
-# tazpkg install path/to/package-1.0.tazpkg --root=/mnt/rootfs
+$ tazpkg bugs
+$ tazpkg bugs my_package
 
-

install-list ou get-install-list

+

depends, rdepends

-

-Instala uma seleção de pacotes listados em um arquivo. Este comando permite a -você instalar vários pacotes com um único comando, e também oferece a opção ---forced: -

+

Mostra a árvore de dependências (direta ou inversamente) para um pacote.

+
-# tazpkg install-list my-packages.list
-# tazpkg get-install-list my-packages.list --forced
-
- - - - -

-Permite a instalação de um pacote a partir de uma mídia qualquer. -A configuração é feita criando links simbólicos e consome pouca memória. -Geralmente é usado em sistemas LiveCD para instalar pacotes encontrados -numa mídia USB: -

-
-# tazpkg link openoffice /media/usbdisk
-
- - -

remove

- -

-Remove um pacote. Será pedido que você confirme a ação (y/N). Este comando -deleta todos os arquivos instalados pelo pacote. Para ver a lista de arquivos, -use o comando "list-files" seguido do nome do pacote. Exemplo com o pacote bc: -

-
-# tazpkg remove bc
+# tazpkg depends mpd
+# tazpkg rdepends mpd
 

extract

-

-Extrai um pacote em um diretório. Se você não especificar o diretório de destino, -o pacote será extraido no diretório atual usando o formato nome do pacote-versão: -

+

Extrai um pacote em um diretório. Se você não especificar o diretório de +destino, o pacote será extraido no diretório atual usando o formato nome do +pacote-versão.

+
-# tazpkg extract package.tazpkg
-# tazpkg extract package.tazpkg target/dir
+$ tazpkg extract pacote.tazpkg
+$ tazpkg extract pacote.tazpkg target/dir
 

pack

-

-O comando "pack" cria um pacote a partir de um diretório preparado previamente -ou a partir de um pacote extraido localmente. Pode também criar manualmente um -pacote .tazpkg (veja a documentação do Cookutils para a criação automática de -pacotes). Para "empacotar" (pack) um pacote: -

+

O comando pack cria um pacote a partir de um diretório preparado +previamente ou a partir de um pacote extraido localmente. Pode também criar +manualmente um pacote .tazpkg (veja a documentação do Cookutils para a criação +automática de pacotes).

+
-# tazpkg pack package-version
+# tazpkg pack pacote-versão
 

repack

-

-O comando "repack" permite a recriação de um pacote a partir dos arquivos -instalados no sistema em que este pacote foi instalado. Para "re-empacotar" -(repack) um pacote: -

+

O comando repack permite a recriação de um pacote a partir dos +arquivos instalados no sistema em que este pacote foi instalado.

+
-# tazpkg repack package
+$ tazpkg repack pacote
 

repack-config

-

-O comando 'repack-config' recria um pacote a partir dos arquivos de -configuração do sistema (veja list-config). É suficiente para instalar -um pacote para encontrar a configuração atual. Para re-empacotar os -arquivos de configuração: -

+

O comando repack-config recria um pacote a partir dos arquivos de +configuração do sistema (veja list-config). +É suficiente para instalar um pacote para encontrar a configuração atual.

+
 # tazpkg repack-config
 
+

recompress

+ +

Recompress .tazpkg cpio archive with lzma.

+ +
+$ tazpkg recompress package.tazpkg
+
+ + +

convert

+ +

Converte pacotes em pacotes .tazpkg (SliTaz).

+ +

Supported packages formats:

+ + + +
+# tazpkg convert alien-pacote-file
+
+ + +

list-suggested

+ +

List suggested packages for each of your installed packages. With option +--all it shows all suggested packages, and without option it shows only +not installed suggested packages.

+ +
+$ tazpkg list-suggested
+$ tazpkg list-suggested --all
+
+ + + + +

Working with repositories

+ +

recharge

-

-Recarrega a lista de pacotes disponíves no mirror. Este comando baixa o arquivo -"packages.list" (lista de pacotes instaláveis) mais recente e salva a antiga. -Uma vez que a lista está atualizada, você pode usar os comandos "list" e -"search". Para ver uma relação com as diferenças entre a lista atual e a -antiga, use o comando "list-mirror --diff" e para ver e atualizar pacotes, -use o comando "upgrade". Para recarregar a lista de pacotes: -

+

Recarrega a lista de pacotes disponíves no mirror. Este comando baixa o +arquivo packages.list (lista de pacotes instaláveis) mais recente e +salva a antiga. Uma vez que a lista está atualizada, você pode usar os comandos +list e search. Para ver uma relação com as diferenças entre a +lista atual e a antiga, use o comando list-mirror --diff e para ver e +atualizar pacotes, use o comando upgrade.

+
 # tazpkg recharge
+# tazpkg recharge main
+# tazpkg recharge My_Undigest
+# tazpkg recharge --root=/mnt/sda6
 

up ou upgrade

-

-O comando upgrade permite a atualização de todos os pacotes disponíveis no mirror. -Atualizar pacotes é uma parte importante da manutenção da segurança do sistema, -permitindo o acesso às últimas atualizações e correções. O projeto SliTaz, -embora leve, fornece atualizações de segurança regulares e geralmente oferece -as últimas versões dos programas. Note que esta função é direcionada àquelas -pessoas que possuem o SliTaz instalado no seu disco rígido. Pacotes atualizados -a partir do LiveCD serão perdidos no desligamento do sistema. Para atualizar -ou mostrar as opções para o comando: -

+

O comando upgrade permite a atualização de todos os pacotes +disponíveis no mirror. Atualizar pacotes é uma parte importante da manutenção da +segurança do sistema, permitindo o acesso às últimas atualizações e correções. O +projeto SliTaz, embora leve, fornece atualizações de segurança regulares e +geralmente oferece as últimas versões dos programas. Note que esta função é +direcionada àquelas pessoas que possuem o SliTaz instalado no seu disco rígido. +Pacotes atualizados a partir do Live CD serão perdidos no desligamento do +sistema. Para atualizar ou mostrar as opções para o comando:

+
-# tazpkg up
-# tazpkg --help-up
+# tazpkg upgrade
 # tazpkg up --recharge --install
 # tazpkg up -r -i
 
-

check

- -

-O comando "check" checa por dependências em pacotes instalados e determina -se todos os arquivos necessários para o re-empacotamento de um pacote estão -presentes: -

-
-# tazpkg check package
-
- - -

block ou unblock

- -

-Os comandos "block" e "unblock" permitem o bloqueio de pacotes instalados para -que estes não possam ser atualizados com o comando "upgrade". A lista de pacotes -bloqueados está contida no arquivo /var/lib/tazpkg/blocked-packages.list, -que também pode ser editado manualmente. Para bloquear ou desbloquear pacotes, -como o Grub, por exemplo: -

-
-# tazpkg block grub
-
-

Ou :

-
-# tazpkg unblock grub
-
- - -

get

- -

-Baixa um pacote do mirror (se existir). O arquivo baixado é arquivado no -diretório atual. Para descobrir qual o diretório atual utilize o comando "pwd". -Para baixar o pacote Grub: -

-
-# tazpkg get grub
-
- - -

get-install

- -

-Baixa e instala um pacote de um mirror na internet. O comando "get-install" -inicia checando se o pacote requerido existe no mirror e se já foi baixado. -Para uma lista de pacotes do mirror, usa-se o comando "list-mirror". Para -baixar e instalar o pacote Grub: -

-
-# tazpkg get-install grub
-
- - -

clean-cache

- -

-Remove pacotes *.tazpkg baixados que se encontram no cache. Durante a instalação, -o TazPkg mantém uma cópia dos pacotes baixados da internet. Isto é feito para -economizar banda no caso de uma reinstalação, mas pode ser que você queira -ter mais espaço no disco rígido ou baixar os pacotes novamente: -

-
-# tazpkg clean-cache
-
- -

setup-mirror

-

-Configura a URL do mirror. O comando "setup-mirror" pedirá a URL do novo mirror. -Você pode especificar várias URLs separadas por espaços. Note que você também -pode modificar manualmente o arquivo /var/lib/tazpkg/mirror. A URL deve apontar -para um diretório contendo um arquivo "packages.list" e os pacotes: -

+

Configura a URL do mirror. O comando setup-mirror pedirá a URL do +novo mirror. Você pode especificar várias URLs separadas por espaços. Note que +você também pode modificar manualmente o arquivo +/var/lib/tazpkg/mirror. A URL deve apontar para um diretório contendo +um arquivo packages.list e os pacotes.

+
 # tazpkg setup-mirror
 
-

reconfigure

+

add-undigest ou setup-undigest

-

-Executa novamente o script de pós instalação de um pacote. Exemplo -usando o gcc: -

+

Define a URL de um mirror não oficial para testar ou usar pacotes que não +estão disponíveis no mirror oficial (chamados 'undigest'). Note que em vez de +rodar este comando você pode editar diretamente o arquivo +/var/lib/tazpkg/undigest/repositorio. A URL deve apontar para +um diretório na web que contenha um arquivo packages.list:

+
-# tazpkg reconfigure gcc
+# tazpkg add-undigest public-repository http://my.home.org/slitaz
+# tazpkg setup-undigest local-repository /home/slitaz/packages
 
-

depends ou rdepends

+

list-undigest

-

-Mostra a árvore de dependências (direta ou inversamente) para um pacote. -Exemplo utilizando o mpd: -

-
 
-# tazpkg depends mpd
-# tazpkg rdepends mpd
-
+

Lista os mirrors undigest adicionados.

- -

add-undigest ou setup-undigest

- -

-Define a URL de um mirror não oficial para testar ou usar pacotes que -não estão disponíveis no mirror oficial (chamados 'undigest'). Note que -em vez de rodar este comando você pode editar diretamente o arquivo -/var/lib/tazpkg/undigest/'repositorio'. A URL deve apontar para um -diretório na web que contenha um arquivo 'packages.list': -

-# tazpkg add-undigest public-repository http://my.home.org/slitaz
-# tazpkg setup-undigest local-repository /home/slitaz/packages
+# tazpkg list-undigest
+# tazpkg list-undigest --box
 

remove-undigest

-

-Remove a URL de um mirror undigest: -

+

Remove a URL de um mirror undigest.

+
-# tazpkg remove-undigest my-repository
+# tazpkg remove-undigest my-repository
 
-

list-undigest

- -

-Lista os mirrors undigest adicionados: -

-
-# tazpkg list-undigest
-
- - -

convert

- -

-Converte pacotes .deb (debian), .rpm (RedHat), .tgz (Slackware) ou -.pgk.tar.gz (Archlinux) em pacotes .tazpkg (SliTaz): -

-
-# tazpkg convert pacote{.deb|.rpm|.tgz|.pkg.tar.gz}
-
- - -

set-release

- -

-Este comando muda a versão atual e faz a atualização de pacotes para -o lançamento mais recente: -

-
-# tazpkg set-release cooking
-
- - -

bugs

- -

-Mostra uma lista de bugs conhecidos dos pacotes: -

-
-# tazpkg bugs
-

MANTENEDOR

-

-Christophe Lincoln <pankso at slitaz.org> -

+

Christophe Lincoln <pankso at slitaz.org>

diff -r 941baf789cb7 -r a73c9918a5de doc/tazpkg.ru.html --- a/doc/tazpkg.ru.html Sun May 31 12:40:55 2015 -0400 +++ b/doc/tazpkg.ru.html Thu Jun 04 00:15:13 2015 +0300 @@ -1,8 +1,9 @@ - + + Руководство TazPkg - + @@ -15,176 +16,336 @@
+

НАЗВАНИЕ

-

TazPkg — менеджер пакетов в системе SliTaz GNU/Linux.

+

TazPkg — менеджер пакетов в системе SliTaz GNU/Linux.

СИНТАКСИС

-tazpkg [команда] [пакет|папка|шаблон|список|категория|--опции] [папка|--опции]
+tazpkg [команда] [параметры...]
 

ОПИСАНИЕ

-

TazPkg — это сверхлегкий (~ 80 КБ) менеджер пакетов, позволяющий -устанавливать, выдавать список, загружать, обновлять и удалять бинарные пакеты -в системе GNU/Linux. TazPkg предоставляет команды для поиска и создания пакетов, -он был создан независимо от проекта. Пакеты с расширением *.tazpkg — это архивы -CPIO, содержащие сжатую при помощи GZip файловую систему, рецепт и -дополнительное описание. TazPkg также управляет зависимостями на основе -рецептов, находящихся в пакетах. Каждый рецепт содержит полную информацию -о пакете, а также может содержать пре- и пост-установочные функции. Тот же самый -рецепт использует Cookutils для компиляции исходников и создания пакетов -.tazpkg.

+

TazPkg — это легковесный менеджер пакетов, позволяющий устанавливать, выдавать списки, загружать, +обновлять и удалять бинарные пакеты в системе GNU/Linux. TazPkg предоставляет команды для поиска +и создания пакетов, он был создан независимо для проекта. Пакеты с расширением *.tazpkg — это архивы +CPIO, содержащие сжатую при помощи GZip файловую систему, рецепт и дополнительное описание. TazPkg +также управляет зависимостями на основе рецептов, находящихся в пакетах. Каждый рецепт содержит +полную информацию о пакете, а также может содержать пре- и пост-установочные функции. Тот же самый +рецепт использует Cookutils для компиляции исходников и создания пакетов .tazpkg.

-

TazPkg разработан полностью с нуля, он написан на скрипте, совместимом -с Bash. TazPkg работает под управлением Ash, который входит в состав проекта -BusyBox. TazPkg распространяется под свободной лицензией GNU GPL v3.

+

TazPkg разработан полностью с нуля, он написан на скрипте, совместимом с Bash. TazPkg работает +под управлением Ash, который входит в состав проекта BusyBox. TazPkg распространяется под свободной +лицензией GNU GPL v3.

КОМАНДЫ

+

Служебные команды

+ + + + +

Работа со списками

+ + + + +

Поиск

+ + + + +

Установка и удаление пакетов

+ + + + +

Работа с пакетами

+ + + + +

Работа с репозиториями

+ + + + + + +

Служебные команды

+ + +

usage

+ +

Отобразить полный список команд TazPkg с кратким описанием.

+ +
+$ tazpkg usage
+$ tazpkg
+
+ + +

help

+ +

Отобразить справку по выбранной команде (help или -h). Можно вводить краткое +имя команды, полное имя, либо часть полного имени. Можно игнорировать дефисы в начале краткого +имени. В случае, если запрошенной части полного имени соответствуют несколько имен команд, будет +предложено уточнить имя команды.

+ +
+$ tazpkg help -gi
+$ tazpkg -h us
+
+ + +

activity

+ +

Показать журнал действий TazPkg (activity или log или -a). При помощи +параметра --nb= можно указать количество отображаемых строк журнала.

+
+$ tazpkg activity
+$ tazpkg -a --nb=20
+
+ + +

clean-cache

+ +

Удалить пакеты *.tazpkg, загруженные в кэш (clean-cache или -cc). Во время +установки TazPkg сохраняет копии пакетов, загруженных из интернета. Это сделано для того, чтобы +сохранить трафик в случае переустановки, но вы можете захотеть освободить место на жестком диске или +повторно загрузить пакеты.

+ +
+# tazpkg clean-cache
+# tazpkg -cc
+
+ + +

shell

+ +

Запустить интерактивную оболочку TazPkg. Здесь вы можете ввести все команды TazPkg, описанные +выше.

+
+$ tazpkg shell
+# tazpkg shell
+
+ + + + +

Работа со списками

+ +

list

-

Список пакетов, установленных в системе. Эта команда может выводить список -всех установленных пакетов, список категорий, список пакетов определенной -категории, и список пакетов заблокированных от обновления. Вы можете также -использовать команду search для вывода списка -на основе условия или названия пакета:

+

Список пакетов, установленных в системе (list или -l). Эта команда может +выводить список всех установленных пакетов, список категорий (c или cat или +categories), список пакетов определенной категории, и список пакетов заблокированных от +обновления (b или blocked). Вы можете также использовать команду +search для вывода списка на основе условия или названия пакета.

 # tazpkg list
-# tazpkg list cat
-# tazpkg list категория
-# tazpkg list blocked
-
- - -

xhtml-list

- -

Эта команда сохраняет список всех пакетов, установленных в системе, в файл -формата xHTML для просмотра в браузере. Команду может запускать обычный -пользователь, она создает файл installed-packages.html в той папке, -откуда она была запущена. Обратите внимание, что вы можете изменить имя файла -с помощью командной строки:

- -
-# tazpkg xhtml-list
-# tazpkg xhtml-list имя-списка.html
+# tazpkg -l cat
+# tazpkg -l games
+# tazpkg -l игры
+# tazpkg -l blocked
 

list-mirror

-

Список пакетов, доступных на зеркале. Эта команда покажет файл -packages.list, загруженный с зеркала. Если этого файла нет, вам будет -предложено запустить tazpkg recharge -с правами администратора (root), чтобы получить список доступных пакетов. -Параметр --diff позволяет отобразить различия между новым и текущим -списками пакетов:

+

Список пакетов, доступных в репозитории +(list-mirror или -lm). Эта команда покажет список пакетов, загруженный из +репозитория. Если этот список еще не загружался, вам будет предложено запустить +tazpkg recharge с правами администратора (root), чтобы получить +список доступных пакетов. Параметр --diff позволяет отобразить различия между новым и +текущим списками пакетов.

 # tazpkg list-mirror
-# tazpkg list-mirror --diff
-
- - -

info

- -

Показать всю информацию по интересующему вас пакету. Информация содержится -в рецепте пакета — его версия, категория, разработчик, сайт и все зависимости -(см. также Cookutils для получения дополнительной информации по рецептам):

- -
-# tazpkg info busybox
-
- - -

desc

- -

Описание пакета (если оно существует). Эта команда выводит файл -description.txt из каждого пакета (простой текстовый файл, шириной до -80 символов, чтобы поместиться в стандартном терминале):

- -
-# tazpkg desc busybox
+# tazpkg -lm --diff
 

list-config

-

Список конфигурационных системных файлов. Параметр --box отображает -список в виде таблицы:

+

Список конфигурационных системных файлов. Параметр --box отображает список в виде +таблицы. Вы можете указать имя пакета, чтобы отобразить конфигурацинные файлы только для этого +пакета.

-# tazpkg list-config
-# tazpkg list-config --box
+$ tazpkg list-config
+$ tazpkg list-config --box
+$ tazpkg list-config slim
+$ tazpkg list-config --box slim
 
-

list-files

-

Список всех файлов, которые устанавливаются при установке пакета. Эта команда -просто читает и отображает файл files.list каждого пакета (он создается -автоматически при создании пакета, а также используется для удаления файлов при -удалении пакета). Чтобы получить список файлов, установленных пакетом bc:

-
-# tazpkg list-files bc
-
+

Поиск

-

Поиск пакета по имени владельца или названию пакета. Эта команда будет искать -в списке установленных пакетов и в списке пакетов, доступных на зеркале. Для -того, чтобы получить новейший список пакетов с зеркала, просто запустите -tazpkg recharge перед началом проведения поиска:

+

Поиск пакета по имени владельца или названию пакета (search или -s). Эта +команда будет искать в списке установленных пакетов (-i или --installed) и +в списке пакетов, доступных в репозитории (-l или --list). Для того, чтобы +получить новейший список пакетов из репозитория, просто запустите tazpkg recharge перед +началом проведения поиска:

-# tazpkg search gcc
+$ tazpkg search gcc
+$ tazpkg search mt -i
+$ tazpkg search bit -l
+
+ + +

search-pkgname

+ +

Поиск файла среди всех файлов, доступных в репозитории с выводом только названий соответствующих +пакетов (search-pkgname или -sp).

+ +
+$ tazpkg search-pkgname libnss
+$ tazpkg -sp /usr/share/fonts
 

search-file

-

Эта команда ищет файл среди всех файлов, которые были установлены с пакетами. -Это бывает очень полезно, когда нужно найти полный путь к файлу или определить, -присутствует ли файл в системе. Пример:

+

Поиск файла среди всех файлов, которые были установлены с пакетами (search-file или +-sf). Это бывает очень полезно, когда нужно найти полный путь к файлу или определить, +присутствует ли файл в системе. Опция --mirror позволяет искать файл среди всех файлов, +доступных в репозитории. Пример:

 $ tazpkg search-file libnss
+$ tazpkg -sf /usr/share/fonts --mirror
+
+ + + + +

Установка и удаление пакетов

+ + +

get

+ +

Загрузить пакет из репозитория (если он существует). Загруженный пакет сохраняется в текущей +папке. Чтобы узнать текущий путь, вы можете использовать команду pwd.

+ +
+# tazpkg get grub
+# tazpkg get nano --root=/mnt/sda6
 

install

-

Эта команда позволяет устанавливать ранее загруженный пакет с расширением -.tazpkg. См. get-install, если вы -хотите установить пакет из интернета. Обратите внимание, что вы можете выполнить -принудительную установку с параметром --forced, удалить и -переустановить пакет с параметрами uninstall и reinstall -соответственно. Также вы можете указать путь к корню файловой системы, в которую -вы хотите установить пакет, с помощью параметра --root=…:

+

Эта команда позволяет устанавливать ранее загруженный пакет с расширением .tazpkg +(install или -i). См. get-install, если вы +хотите установить пакет из интернета. Обратите внимание, что вы можете выполнить принудительную +установку с параметром --forced. Также вы можете указать путь к корню файловой системы, +в которую вы хотите установить пакет, с помощью параметра --root=.

 # tazpkg install пакет-1.0.tazpkg
-# tazpkg install путь/к/пакету-1.0.tazpkg --forced
-# tazpkg install путь/к/пакету-1.0.tazpkg --root=/mnt/rootfs
+# tazpkg -i путь/к/пакету-1.0.tazpkg --forced
+# tazpkg -i путь/к/пакету-1.0.tazpkg --root=/mnt/rootfs
 
-

install-list
-get-install-list

+

get-install

-

Установить набор пакетов, перечисленных в файле. Команда -install-list позволяет вам установить за один раз несколько ранее -загруженных пакетов, а команда get-install-list перед установкой списка -пакетов предварительно загружает их из интернета. Эти команды также понимают +

Загрузить и установить пакет из репозитория в интернете. Эта команда (get-install или +-gi) сначала проверяет, существует ли пакет в репозитории и был ли он уже загружен. Для +получения списка пакетов в репозитории используйте команду +list-mirror.

+ +

Команда воспринимает следующие параметры:

+ +

--forced позволяет обновить уже установленный пакет.

+ +

--root= позволяет указать корень файловой системы, в которой будет установлен пакет.

+ +
+# tazpkg get-install grub
+# tazpkg -gi grub --forced
+# tazpkg -gi nano --root=/mnt/sda6
+
+ + +

install-list, get-install-list

+ +

Установить набор пакетов, перечисленных в файле. Команда install-list позволяет вам +установить за один раз несколько ранее загруженных пакетов, а команда get-install-list +перед установкой списка пакетов предварительно загружает их из интернета. Эти команды также понимают параметр форсированной установки:

@@ -193,200 +354,146 @@
 
+

remove

+ +

Удалить пакет (remove или -r). Вас спросят о подтверждении (y/N) удаления +пакета, а также об удалении пакетов, зависящих от этого пакета, и о переустановке пакетов, которые +были изменены этим пакетом. Эта команда удаляет все файлы, которые устанавливались в составе +пакета.

+ +

Параметр --root= позволяет указать корень ФС, в которой будут удаляться пакеты. Параметр +--auto удаляет и переустанавливает пакеты без вашего подтверждения.

+ +
+# tazpkg remove bc
+# tazpkg -r gtk+-3 --root=/mnt/sda6
+# tazpkg -r nano --auto
+
+ + +

reconfigure

+ +

Повторяет пост-установочный скрипт из пакета.

+ +
+# tazpkg reconfigure gcc
+# tazpkg reconfigure gcc --root=/mnt/sda6
+
+ + -

Эта команда позволяет установить пакет, уже установленный на другом носителе. -Установка заключается в создании символьных ссылок и требует очень мало памяти. -Обычно это применяется, когда система работает в оперативной памяти и нужно -установить дополнения с USB-флэш:

+

Эта команда позволяет установить пакет, уже установленный на другом носителе. Установка +заключается в создании символьных ссылок и требует очень мало памяти. Обычно это применяется, когда +система работает в оперативной памяти и нужно установить дополнения с USB-флэш.

 # tazpkg link openoffice /media/usbdisk
 
-

remove

+

set-release

-

Удалить пакет. Вас спросят о подтверждении (y/N). Эта команда удаляет все -файлы, которые устанавливались в составе пакета. Для просмотра списка файлов, -используйте команду list-files с названием -пакета. Пример удаления пакета bc:

+

Эта команда меняет текущую версию и обновляет все пакеты до последнего релиза выбранной +версии.

-# tazpkg remove bc
+# tazpkg set-release cooking
 
-

extract

+

add-flavor, install-flavor

-

Распаковать пакет в папку. Если вы не укажете папку назначения, то пакет -будет распакован в папку с именем пакет-версия, которая будет -создана в текущей папке:

+

Установить набор пакетов указанной редакции (flavor). Дополнительно, команда +install-flavor удаляет все прочие установленные пакеты, не входящие в эту редакцию.

-# tazpkg extract пакет.tazpkg
-# tazpkg extract пакет.tazpkg папка/назначения
+# tazpkg add-flavor gtkonly
+# tazpkg install-flavor justx
 
-

pack

-

Эта команда создаст пакет из заранее подготовленной папки или из -распакованного пакета. Используя эту команду вы можете создать пакет .tazpkg -вручную (см. документацию Cookutils по вопросу автоматического создания пакетов). -Упаковать пакет:

+ +

Работа с пакетами

+ + +

info

+ +

Показать всю информацию по интересующему вас пакету. Информация содержится в рецепте пакета — его +версия, категория, разработчик, сайт и все зависимости (см. также Cookutils для получения +дополнительной информации по рецептам):

-# tazpkg pack пакет-версия
+# tazpkg info busybox
 
-

repack

+

desc

-

Эта команда позволяет восстановить пакет из файлов в системе, где он был -ранее установлен. Переупаковать пакет:

+

Описание пакета (если оно существует) (desc или -d). Эта команда выводит файл +description.txt из каждого пакета (простой текстовый файл, шириной до 80 символов, чтобы +поместиться в стандартном терминале):

-# tazpkg repack пакет
+# tazpkg desc busybox
 
-

repack-config

+

list-files

-

Эта команда воссоздает пакет с конфигурационными системными файлами (см. -list-config). Для того, чтобы восстановить -текущую конфигурацию, потом достаточно будет установить созданный пакет. -Упаковать конфигурационные файлы:

+

Список всех файлов, которые устанавливаются при установке пакета (list-files или +-lf). Эта команда просто читает и отображает файл files.list каждого пакета (он +создается автоматически при создании пакета, а также используется для удаления файлов при удалении +пакета).

-# tazpkg repack-config
+# tazpkg list-files bc
 
-

recharge

+

block, unblock, chblock

-

Обновление списка пакетов, доступных на зеркале. Эта команда загрузит с -зеркала самый последний список устанавливаемых пакетов packages.list и, -прежде чем продолжить, сохранит старый список. После обновления списка, вы -можете использовать команды list и -search. Для просмотра списка различий используйте -команду list-mirror --diff, а для просмотра и обновления пакетов -просто скомандуйте upgrade. Обновить список -пакетов:

- -
-# tazpkg recharge
-
- - -

up
-upgrade

- -

Команда позволяет обновить все установленные пакеты, доступные на текущем -зеркале. Обновление пакетов — важная составляющая безопасности системы, и вы -можете чувствовать себя в безопасности с последними обновлениями и -исправлениями. Хотя проект SliTaz и крохотный, но он обеспечивает регулярные -обновления по безопасности и как правило, предоставляет последние версии ПО. -Обратите внимание, что эта функция предназначена для людей, установивших SliTaz -на жесткий диск. Обновленные пакеты в режиме LiveCD, будут потеряны при -выключении системы. Обновить или показать все параметры команды up:

- -
-# tazpkg up
-# tazpkg --help-up
-# tazpkg up --recharge --install
-# tazpkg up -r -i
-
- - -

check

- -

Эта команда может проверить зависимости установленных пакетов и определить, -все ли файлы, необходимые для переупаковки пакета присутствуют:

- -
-# tazpkg check пакет
-
- - -

block
-unblock

- -

Команды позволяют вам блокировать и разблокировать установленную версию -пакета. Заблокированный пакет не будет обновляться командой -upgrade. Список заблокированных пакетов -находится в файле /var/lib/tazpkg/blocked-packages.list. Этот файл -также можно отредактировать вручную. Для блокирования или разблокирования пакета -Grub:

+

Команды позволяют вам блокировать (block или -b) и разблокировать +(unblock или -u) установленную версию пакета. Команда chblock меняет +состояние блокировки пакета на противоположное. Заблокированный пакет не будет обновляться командой +upgrade. Список заблокированных пакетов находится в файле +/var/lib/tazpkg/blocked-packages.list. Этот файл также можно отредактировать вручную.

 # tazpkg block grub
 # tazpkg unblock grub
+# tazpkg chblock grub
 
-

get

+

check

-

Загрузить пакет с зеркала (если он существует). Загруженный пакет сохраняется -в текущей папке. Чтобы узнать текущий путь, вы можете использовать команду -pwd. Для загрузки пакета Grub:

+

Эта команда может проверить зависимости установленных пакетов и определить, все ли файлы, +необходимые для переупаковки пакета присутствуют:

-# tazpkg get grub
+$ tazpkg check
+$ tazpkg check --full
+$ tazpkg check nano
+$ tazpkg check sakura --full
 
-

get-install

+

bugs

-

Загрузить и установить пакет с зеркала в интернете. Эта команда сначала -проверяет, существует ли пакет на зеркале и был ли он уже загружен. Для -получения списка пакетов на зеркале, используйте команду -list-mirror. Для установки пакета Grub:

+

Показывает список известных ошибок в пакетах. Вы можете указать название единственного пакета, +для которого нужно показать список ошибок.

-# tazpkg get-install grub
+$ tazpkg bugs
+$ tazpkg bugs мой_пакет
 
-

clean-cache

+

depends, rdepends

-

Удалить пакеты *.tazpkg, загруженные в кэш. Во время установки TazPkg -сохраняет копии пакетов, загруженных из интернета. Это сделано для того, чтобы -сохранить трафик в случае переустановки, но вы можете захотеть освободить место -на жестком диске или повторно загрузить пакеты:

- -
-# tazpkg clean-cache
-
- - -

setup-mirror

- -

Установка адреса зеркала. Эта команда запросит URL нового зеркала. Можно -указать несколько адресов, разделенных пробелами. Обратите внимание, что вы -также можете изменить основной файл /var/lib/tazpkg/mirror. URL-адрес -должен указывать на папку, содержащую пакеты и файл packages.list:

- -
-# tazpkg setup-mirror
-
- - -

reconfigure

- -

Повторяет пост-установочный скрипт из пакета. Пример использования для -GCC:

- -
-# tazpkg reconfigure gcc
-
- - -

depends
-rdepends

- -

Отображает дерево зависимостей и обратное дерево зависимостей пакета, -соответственно. Пример использования для MPD:

+

Отображает дерево зависимостей и обратное дерево зависимостей пакета, соответственно.

 # tazpkg depends mpd
@@ -394,14 +501,180 @@
 
-

add-undigest
-setup-undigest

+

extract

-

Устанавливает адрес дополнительного неофициального зеркала для тестирования -пакетов, которые еще не присутствуют на официальных зеркалах. Обратите внимание, -вы можете также вручную редактировать файлы в -/var/lib/tazpkg/undigest/имя_репозитория. URL-адрес должен -указывать на папку, содержащую пакеты и файл packages.list:

+

Распаковать пакет в папку (extract или -e). Если вы не укажете папку +назначения, то пакет будет распакован в папку с именем пакет-версия, которая будет +создана в текущей папке.

+ +
+$ tazpkg extract пакет.tazpkg
+$ tazpkg extract пакет.tazpkg папка/назначения
+
+ + +

pack

+ +

Эта команда создаст пакет из заранее подготовленной папки или из распакованного пакета. Используя +эту команду вы можете создать пакет .tazpkg вручную (см. документацию Cookutils по вопросу +автоматического создания пакетов).

+ +
+# tazpkg pack пакет-версия
+
+ + +

repack

+ +

Эта команда позволяет восстановить пакет из файлов в системе, где он был ранее установлен.

+ +
+$ tazpkg repack пакет
+
+ + +

repack-config

+ +

Эта команда воссоздает пакет с конфигурационными системными файлами (см. +list-config). Для того, чтобы восстановить текущую конфигурацию, +потом достаточно будет установить созданный пакет.

+ +
+# tazpkg repack-config
+
+ + +

recompress

+ +

Перепаковать CPIO-архив .tazpkg с помощью LZMA. Эта команда нужна только для того, чтобы +уменьшить размер имеющихся старых пакетов, созданных для SliTaz 2.0.

+ +
+$ tazpkg recompress пакет.tazpkg
+
+ + +

convert

+ +

Преобразует пакеты «чужих» дистрибутивов в пакеты SliTaz (.tazpkg).

+ +

Поддерживаемые форматы пакетов:

+ + + +
+# tazpkg convert файл-чужого-пакета
+
+ + +

list-suggested

+ +

Список предложенных пакетов для каждого из ваших установленных пакетов. С параметром +--all будет отображен полный список предложенных пакетов, а без параметра — только список +не установленных предложенных пакетов.

+ +
+$ tazpkg list-suggested
+$ tazpkg list-suggested --all
+
+ + + + +

Работа с репозиториями

+ + +

recharge

+ +

Обновление списка пакетов, доступных в репозитории. Эта команда загрузит из репозитория самую +последнюю базу данных устанавливаемых пакетов и, прежде чем продолжить, сохранит старую базу. После +обновления списка, вы можете использовать команды list и +search. Для просмотра списка различий используйте команду +list-mirror --diff, а для просмотра и обновления пакетов просто скомандуйте +upgrade.

+ +

Команда без параметров обновит базы данных всех ваших репозиториев. Вы можете указать, какой +репозиторий следует обновить: «main» для главного репозитория или имя неофициального репозитория. +Параметр --root= позволяет указать корень файловой системы, где будут обновляться базы +данных пакетов.

+ +
+# tazpkg recharge
+# tazpkg recharge main
+# tazpkg recharge Мой_неофициальный
+# tazpkg recharge --root=/mnt/sda6
+
+ + +

upgrade

+ +

Команда позволяет обновить все установленные пакеты, доступные в текущем репозитории +(upgrade или up). Обновление пакетов — важная составляющая безопасности системы, и +вы можете чувствовать себя в безопасности с последними обновлениями и исправлениями. Хотя проект +SliTaz и крохотный, но он обеспечивает регулярные обновления по безопасности и как правило, +предоставляет последние версии ПО. Обратите внимание, что эта функция предназначена для людей, +установивших SliTaz на жесткий диск. Обновленные пакеты в режиме Live CD, будут потеряны при +выключении системы.

+ +

Команда без параметров будет работать в интерактивном режиме и спрашивать перед установкой +пакетов. Вы можете указать одну или несколько из следующих параметров:

+ +

-c или --check чтобы только проверить обновления;

+ +

-r или --recharge чтобы обновить БД и проверить обновления пакетов;

+ +

-i или --install чтобы проверить обновления и установить их все.

+ +
+# tazpkg up
+# tazpkg up --recharge --install
+# tazpkg up -r -i
+
+ + +

setup-mirror

+ +

Установка адреса репозитория (setup-mirror или -sm). Эта команда запросит URL +нового репозитория. Обратите внимание, что вы также можете изменить основной файл +/var/lib/tazpkg/mirror. URL-адрес должен указывать на папку, содержащую пакеты и файл +packages.info.

+ +
+# tazpkg setup-mirror
+
+ + +

add-undigest, setup-undigest

+ +

Устанавливает адрес дополнительного неофициального репозитория для тестирования пакетов, которые +еще не присутствуют в официальных репозиториях. Обратите внимание, вы можете также вручную +редактировать файлы в /var/lib/tazpkg/undigest/имя_репозитория. URL-адрес должен +указывать на папку, содержащую пакеты и файл packages.info:

 # tazpkg add-undigest public-repository http://my.home.org/slitaz
@@ -409,53 +682,26 @@
 
+

list-undigest

+ +

Список дополнительных неофициальных репозиториев. Параметр --box выведет список в форме +таблицы.

+ +
+# tazpkg list-undigest
+# tazpkg list-undigest --box
+
+ +

remove-undigest

-

Удаляет адрес неофициального зеркала:

+

Удаляет адрес неофициального репозитория. Перед удалением вас спросят о подтверждении.

 # tazpkg remove-undigest my-repository
 
-

list-undigest

- -

Список дополнительных неофициальных зеркал:

- -
-# tazpkg list-undigest
-
- - -

convert

- -

Преобразует пакеты Debian (.deb), Redhat (.rpm), Slackware (.tgz) и Archlinux -(.pkg.tar.gz) в пакеты SliTaz (.tazpkg):

- -
-# tazpkg convert чужой-пакет
-
- - -

set-release

- -

Эта команда меняет текущую версию и обновляет все пакеты до последнего релиза -выбранной версии:

- -
-# tazpkg set-release cooking
-
- - -

bugs

- -

Генерирует список известных ошибок в пакетах:

- -
-# tazpkg bugs
-
- -

МЭЙНТЕЙНЕР

Christophe Lincoln <pankso at slitaz.org>

diff -r 941baf789cb7 -r a73c9918a5de modules/tazpkg-help --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/tazpkg-help Thu Jun 04 00:15:13 2015 +0300 @@ -0,0 +1,95 @@ +#!/bin/sh +# TazPkg - Tiny autonomous zone packages manager. +# TazPkg help system + +. /lib/libtaz.sh + +T="${1#-}" +DOC='/usr/share/doc/tazpkg/tazpkg.html' +QUERY="$T" + +if [ -z "$T" ]; then + tazpkg usage; exit 0 +fi + +commands="\ +:usage::help,h::activity,log,a::clean-cache,cc::shell::list,l::list-mirror,lm:\ +:list-config::search,s::search-pkgname,sp::search-file,sf::get,g::install,i:\ +:get-install,gi::install-list,get-install-list::remove,r::reconfigure::link:\ +:set-release::add-flavor,install-flavor::info::desc,d::list-files,lf:\ +:block,b,unblock,u,chblock::check::bugs::depends,rdepends::extract,e::pack:\ +:repack::repack-config::recompress::convert,c::list-suggested::recharge: +:upgrade,up::setup-mirror,sm::add-undigest,setup-undigest::list-undigest:\ +:remove-undigest:" + +if [ ! $(echo $commands | grep -e "[:,]$T[:,]") ]; then + try1=$(echo $commands | grep -oe ":[^:]*$T[^:]*:") + if [ -z "$try1" ]; then + _ 'Sorry, no help for "%s"' "$QUERY"; newline; exit 0 + fi + + try2=$(echo "$try1" | tr -d : ) + + trynum=$(echo "$try2" | wc -l) + if [ "$trynum" -ne 1 ]; then + _p '%d help topic available:' '%d help topics available:' "$trynum" \ + "$trynum"; newline + echo "$try2" | sed 's|^| * &|; s| ,| |; s|,|, |g' + exit 0 + else + T="${try2%%,*}" + fi +else + try3=$(echo $commands | grep -oe "[:,]$T[:,]") + case $try3 in + :*) try4="$try3";; + ,*) try4=$(echo $commands | grep -oe ":[^:]*$try3" | cut -d, -f1);; + esac + + T=$(echo $try4 | tr -d ':,') +fi + +title=$(echo $commands | grep -oe ":$T\(,[^:]*\)*:" | tr -d : | sed 's|,|, |g') + + +# style:

+HLP=$(sed "/id=\"$T\"/,/

+ HLP=$(sed "/name=\"$T\"/,/name=/!d; /name=/d; /

/,/<\/pre\>/{s|.*|  &|; s| |·|g}; \ + s|^  $||; s|
||; s|
||; s|  ·#|  #|;" | tr '\n' ' ' | \ + sed '/^[ ]*$/d' | \ + sed 's|[ ][ ]*| |g;' | \ + sed 's|[ ]*
|O\n|g; s|[ ]*
|L\n|g; s|[ ]*||g;' | \ + sed 's|[ ]*
| |g; s|
|\n|g;' | \ + sed 's|

||g; s|

|\n|g' | \ + sed 's|[ ]*

[ ]*||g; s|[ ]*

|\n \n|g; s|  |\n  |g' | \ + sed 's|]*>||g; s|||g; s|·| |g' | \ + sed 's|||g; s|­||g; s|^[ ]*||' | \ + sed '/^$/d' | \ + sed 's||A|g; s||A|g; s||B|g; s||B|g; \ + s||D|g; s||D|g; s||D|g; s||C|g; \ + s|DD|D|g;') + +OPT=$(echo "$PRE" | sed '/O/,/L/!d; /[OL]/d') +OPTLIST=$(optlist "$OPT") + +OPT0=$(echo "$PRE" | tr '\n' '@') +OPTA=$(echo "$OPT" | tr '\n' '@') +OPTB=$(echo "$OPTLIST" | tr '\n' '@') + +PRE2=$(echo "$OPT0" | sed "s|$OPTA|$OPTB|" | tr '@' '\n' | sed '/O/d; s|L||') + +[ ! -z "$TA" ] && T="$T, $TA" + +title '$title' +emsg "$(longline "$PRE2" | sed 's|A||g; s|B||g; s|C||g; s|D||g; ')" +newline diff -r 941baf789cb7 -r a73c9918a5de po/el.po --- a/po/el.po Sun May 31 12:40:55 2015 -0400 +++ b/po/el.po Thu Jun 04 00:15:13 2015 +0300 @@ -237,15 +237,15 @@ #: tazpkg:214 msgid "Convert alien package to tazpkg" -msgstr "Μετατροπή ενός μη ιθαγενών πακέτου σε μορφή slitaz (.tazpkg)" +msgstr "Μετατροπή ενός μη ιθαγενών πακέτου σε μορφή SliTaz (.tazpkg)" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Συνδέστε (link) ένα πακέτο από μια άλλη εγκατάσταση του SliTaz" #: tazpkg:217 -msgid "Change the mirror url configuration" -msgstr "Αλλάξτε τη ρύθμιση για το url του mirror" +msgid "Change the mirror URL configuration" +msgstr "Αλλάξτε τη ρύθμιση για το URL του mirror" #: tazpkg:218 msgid "List undigest mirrors" @@ -594,7 +594,7 @@ #: tazpkg:1489 #, fuzzy -msgid "TazPKG information" +msgid "TazPkg information" msgstr "Πληροφορίες για το TazPkg" #: tazpkg:1501 @@ -659,7 +659,7 @@ msgstr "Το %s δεν εγκαταστάθηκε." #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "" #: tazpkg:1561 @@ -992,28 +992,28 @@ msgstr "Υπάρχουν σφάλματα στην %s έκδοση %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "Η εγκατάσταση του πακέτου %s δεν ολοκληρώθηκε" +msgid "The package installation has not completed" +msgstr "Η εγκατάσταση του πακέτου δεν ολοκληρώθηκε" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "Το πακέτο %s τροποποιήθηκε από:" +msgid "The package has been modified by:" +msgstr "Το πακέτο τροποποιήθηκε από:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "Χάθηκαν αρχεία από το %s:" +msgid "Files lost from package:" +msgstr "Χάθηκαν αρχεία από το:" #: tazpkg:2520 msgid "target of symlink" msgstr "στόχος του συμβολικού δεσμού symlink" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "Εξαρτήσεις που λείπουν για το %s:" +msgid "Missing dependencies for package:" +msgstr "Εξαρτήσεις που λείπουν για το:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "Υπάρχει βρόχος (loop) εξαρτήσεων ανάμεσα στο %s και το:" +msgid "Dependencies loop between package and:" +msgstr "Υπάρχει βρόχος (loop) εξαρτήσεων ανάμεσα στο πακέτο και το:" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1120,7 +1120,7 @@ #: tazpkg:2896 #, fuzzy -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "Κέλυφος του TazPkg" #: tazpkg:2897 @@ -1132,7 +1132,7 @@ #: tazpkg:2906 #, fuzzy -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "Τρέχετε ήδη ένα κέλυφος TazPkg" #: tazpkg:2966 @@ -2061,7 +2061,7 @@ #~ msgstr "Όνομα πακέτου: $pkgname" #~ msgid "URL" -#~ msgstr "url" +#~ msgstr "URL" #~ msgid "pkg" #~ msgstr "πακέτο" diff -r 941baf789cb7 -r a73c9918a5de po/es.po --- a/po/es.po Sun May 31 12:40:55 2015 -0400 +++ b/po/es.po Thu Jun 04 00:15:13 2015 +0300 @@ -251,17 +251,17 @@ #, fuzzy msgid "Convert alien package to tazpkg" msgstr "" -"Convertir paquetes deb/rpm/tgz/pet/sfs/sb/arch/ipk al de slitaz (.tazpkg)." +"Convertir paquetes deb/rpm/tgz/pet/sfs/sb/arch/ipk al de SliTaz (.tazpkg)." #: tazpkg:215 #, fuzzy -msgid "Link a package from another slitaz installation" -msgstr "Enlazar un paquete desde otra instalación del slitaz." +msgid "Link a package from another SliTaz installation" +msgstr "Enlazar un paquete desde otra instalación del SliTaz." #: tazpkg:217 #, fuzzy -msgid "Change the mirror url configuration" -msgstr "Cambia la configuración del url espejo." +msgid "Change the mirror URL configuration" +msgstr "Cambia la configuración del URL espejo." #: tazpkg:218 #, fuzzy @@ -607,7 +607,7 @@ #: tazpkg:1489 #, fuzzy -msgid "TazPKG information" +msgid "TazPkg information" msgstr "Información TazPkg" #: tazpkg:1501 @@ -673,7 +673,7 @@ msgstr "%s no está instalado." #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "" #: tazpkg:1561 @@ -1005,18 +1005,18 @@ msgstr "Bugs en el paquete %s versión %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "La instalación del paquete %s no fue completada" +msgid "The package installation has not completed" +msgstr "La instalación del paquete no fue completada" #: tazpkg:2510 #, fuzzy -msgid "The package \"%s\" has been modified by:" -msgstr "El paquete %s ha sido modificado por:" +msgid "The package has been modified by:" +msgstr "El paquete ha sido modificado por:" #: tazpkg:2516 #, fuzzy -msgid "Files lost from package \"%s\":" -msgstr "Archivos perdidos de %s:" +msgid "Files lost from package:" +msgstr "Archivos perdidos de:" #: tazpkg:2520 msgid "target of symlink" @@ -1024,11 +1024,11 @@ #: tazpkg:2526 #, fuzzy -msgid "Missing dependencies for package \"%s\":" -msgstr "Archivos perdidos de %s:" +msgid "Missing dependencies for package:" +msgstr "Archivos perdidos de:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" +msgid "Dependencies loop between package and:" msgstr "" # Bug es más conocido que su misma traducción al español. @@ -1142,7 +1142,7 @@ #: tazpkg:2896 #, fuzzy -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "TazPkg SHell" #: tazpkg:2897 @@ -1153,7 +1153,7 @@ #: tazpkg:2906 #, fuzzy -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "Estás corriendo actualmente un TazPkg SHell" #: tazpkg:2966 diff -r 941baf789cb7 -r a73c9918a5de po/fr.po --- a/po/fr.po Sun May 31 12:40:55 2015 -0400 +++ b/po/fr.po Thu Jun 04 00:15:13 2015 +0300 @@ -105,7 +105,7 @@ #: tazpkg:175 msgid "Show TazPkg activity log" -msgstr "Affiche les denières actions de TazPKG" +msgstr "Affiche les denières actions de TazPkg" #: tazpkg:176 msgid "List installed packages on the system" @@ -234,11 +234,11 @@ msgstr "Convertit un paquet d'une autre distribution vers SliTaz" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Lie un paquet depuis une autre installation SliTaz" #: tazpkg:217 -msgid "Change the mirror url configuration" +msgid "Change the mirror URL configuration" msgstr "Change l'URL du miroir" #: tazpkg:218 @@ -576,8 +576,8 @@ msgstr[1] "%s fichiers" #: tazpkg:1489 -msgid "TazPKG information" -msgstr "TazPKG information" +msgid "TazPkg information" +msgstr "TazPkg information" #: tazpkg:1501 msgid "Package : %s" @@ -640,8 +640,8 @@ msgstr "%s n'est pas installé." #: tazpkg:1538 -msgid "TazPKG Activity" -msgstr "Activité de TazPKG" +msgid "TazPkg Activity" +msgstr "Activité de TazPkg" #: tazpkg:1561 msgid "Please specify a pattern or package name to search for." @@ -966,28 +966,28 @@ msgstr "Bugs dans le paquet %s version %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "L'installation du paquet %s n'est pas terminée" +msgid "The package installation has not completed" +msgstr "L'installation du paquet n'est pas terminée" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "Le paquet \"%s\" a été modifié par :" +msgid "The package has been modified by:" +msgstr "Le paquet a été modifié par :" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "Fichiers perdus de \"%s\" :" +msgid "Files lost from package:" +msgstr "Fichiers perdus de :" #: tazpkg:2520 msgid "target of symlink" msgstr "cible du lien symbolique" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "Dépendances manquantes pour le paquet \"%s\" :" +msgid "Missing dependencies for package:" +msgstr "Dépendances manquantes pour le paquet :" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "Dépendances circulaires entre \"%s\" et " +msgid "Dependencies loop between package and:" +msgstr "Dépendances circulaires entre paquet et :" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1088,15 +1088,15 @@ msgstr "Installez un paquet avec '%s' ou '%s'" #: tazpkg:2896 -msgid "TazPKG SHell." -msgstr "SHell TazPKG" +msgid "TazPkg SHell." +msgstr "SHell TazPkg" #: tazpkg:2897 msgid "Type 'usage' to list all available commands or 'quit' or 'q' to exit." msgstr "Tapez 'usage' pour lister toutes les commandes ou 'quit' pour sortir." #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "Vous êtes déjà dans un SHell TazPkg." #: tazpkg:2966 @@ -1168,7 +1168,7 @@ #: tazpkg-box:20 msgid "SliTaz Package Action" -msgstr "Action de TazPKG" +msgstr "Action de TazPkg" #: tazpkg-box:27 msgid "package" @@ -1837,11 +1837,11 @@ #: tazpkg-notify:69 msgid "TazPkg SHell" -msgstr "SHell de TazPKG" +msgstr "SHell de TazPkg" #: tazpkg-notify:70 msgid "TazPkg manual" -msgstr "Manuel de TazPKG" +msgstr "Manuel de TazPkg" #: tazpkg-notify:71 msgid "Close notification" @@ -1939,8 +1939,8 @@ #~ msgid "Depends:" #~ msgstr "Dépendances :" -#~ msgid "TazPKG" -#~ msgstr "TazPKG" +#~ msgid "TazPkg" +#~ msgstr "TazPkg" #~ msgid "$PACKAGE_FILE does not look like an Archlinux/Alpine package!" #~ msgstr "$PACKAGE_FILE ne semble pas être un paquet Archlinux ou Alpine !" diff -r 941baf789cb7 -r a73c9918a5de po/pl.po --- a/po/pl.po Sun May 31 12:40:55 2015 -0400 +++ b/po/pl.po Thu Jun 04 00:15:13 2015 +0300 @@ -1,11 +1,11 @@ -# Polish translation for Tazpkg package. +# Polish translation for TazPkg package. # Copyright (C) 2013 SliTaz -# This file is distributed under the same license as the Tazpkg package. +# This file is distributed under the same license as the TazPkg package. # Paweł Pyrczak , 2013. # msgid "" msgstr "" -"Project-Id-Version: Tazpkg 5.0\n" +"Project-Id-Version: TazPkg 5.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-10 12:26+0300\n" "PO-Revision-Date: 2013-08-07 13:34+0100\n" @@ -250,12 +250,12 @@ " pakietów SliTaz (*.tazpkg)" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Dowiązanie do pakietu z innej instalacji SliTaz" #: tazpkg:217 -msgid "Change the mirror url configuration" -msgstr "Zmienia konfigurację url serwera" +msgid "Change the mirror URL configuration" +msgstr "Zmienia konfigurację URL serwera" #: tazpkg:218 msgid "List undigest mirrors" @@ -607,7 +607,7 @@ #: tazpkg:1489 #, fuzzy -msgid "TazPKG information" +msgid "TazPkg information" msgstr "Informacje TazPkg" #: tazpkg:1501 @@ -672,7 +672,7 @@ msgstr "%s nie jest zainstalowany." #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "" #: tazpkg:1561 @@ -1003,28 +1003,28 @@ msgstr "Błędy w pakiecie %s wersja %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "Instalacja pakietu %s nie została zakończona pomyśłnie" +msgid "The package installation has not completed" +msgstr "Instalacja pakietu nie została zakończona pomyśłnie" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "Pakiet %s został zmodyfikowany przez:" +msgid "The package has been modified by:" +msgstr "Pakiet został zmodyfikowany przez:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "Brakujące pliki pochodzące z %s:" +msgid "Files lost from package:" +msgstr "Brakujące pliki pochodzące z:" #: tazpkg:2520 msgid "target of symlink" msgstr "cel dla dowiązania symbolicznego" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "Brakujące zależności dla %s:" +msgid "Missing dependencies for package:" +msgstr "Brakujące zależności dla:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "Pętla zależności pomiędzy %s i:" +msgid "Dependencies loop between package and:" +msgstr "Pętla zależności pomiędzy pakietem i:" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1132,7 +1132,7 @@ #: tazpkg:2896 #, fuzzy -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "TazPkg SHell." #: tazpkg:2897 @@ -1144,8 +1144,8 @@ #: tazpkg:2906 #, fuzzy -msgid "You are already running a TazPKG SHell." -msgstr "Tazpkg SHell jest już uruchomiony." +msgid "You are already running a TazPkg SHell." +msgstr "TazPkg SHell jest już uruchomiony." #: tazpkg:2966 msgid "Usage: tazpkg link package_name slitaz_root" diff -r 941baf789cb7 -r a73c9918a5de po/pt_BR.po --- a/po/pt_BR.po Sun May 31 12:40:55 2015 -0400 +++ b/po/pt_BR.po Thu Jun 04 00:15:13 2015 +0300 @@ -103,7 +103,7 @@ #: tazpkg:175 msgid "Show TazPkg activity log" -msgstr "Mostra o log de atividade do TazPKG" +msgstr "Mostra o log de atividade do TazPkg" #: tazpkg:176 msgid "List installed packages on the system" @@ -231,12 +231,12 @@ msgstr "Converte um pacote deb/rpm/tgz/pet/sfs/sb/arch/ipk para tazpkg" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Liga um pacote a partir de outra instalação do SliTaz" #: tazpkg:217 -msgid "Change the mirror url configuration" -msgstr "Muda a configuração de url do mirror" +msgid "Change the mirror URL configuration" +msgstr "Muda a configuração de URL do mirror" #: tazpkg:218 msgid "List undigest mirrors" @@ -571,7 +571,7 @@ msgstr[1] "%s instalados" #: tazpkg:1489 -msgid "TazPKG information" +msgid "TazPkg information" msgstr "Informação do TazPkg" #: tazpkg:1501 @@ -636,8 +636,8 @@ msgstr "%s não está instalado." #: tazpkg:1538 -msgid "TazPKG Activity" -msgstr "Atividade do TazPKG" +msgid "TazPkg Activity" +msgstr "Atividade do TazPkg" #: tazpkg:1561 msgid "Please specify a pattern or package name to search for." @@ -963,28 +963,28 @@ msgstr "Bugs no pacote %s versão %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "A instalação do pacote %s não se completou" +msgid "The package installation has not completed" +msgstr "A instalação do pacote não se completou" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "O pacote %s foi modificado por:" +msgid "The package has been modified by:" +msgstr "O pacote foi modificado por:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "Arquivos perdidos para %s:" +msgid "Files lost from package:" +msgstr "Arquivos perdidos para:" #: tazpkg:2520 msgid "target of symlink" msgstr "alvo do link simbólico" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "Arquivos perdidos para %s:" +msgid "Missing dependencies for package:" +msgstr "Arquivos perdidos para:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "Loop de dependências entre %s e:" +msgid "Dependencies loop between package and:" +msgstr "Loop de dependências entre pacote e:" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1090,7 +1090,7 @@ msgstr "Instale o pacote com '%s' ou '%s'" #: tazpkg:2896 -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "TazPkg SHell." #: tazpkg:2897 @@ -1098,7 +1098,7 @@ msgstr "Digite 'usage' para comandos disponíveis ou 'quit' ou 'q' para sair." #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "Você já está usando o TazPkg SHell." #: tazpkg:2966 @@ -1974,8 +1974,8 @@ #~ msgid "Depends:" #~ msgstr "Dependências:" -#~ msgid "TazPKG" -#~ msgstr "TazPKG" +#~ msgid "TazPkg" +#~ msgstr "TazPkg" #~ msgid "$PACKAGE_FILE does not look like an Archlinux/Alpine package!" #~ msgstr "$PACKAGE_FILE não se parece com um pacote Archlinux/Alpine!" diff -r 941baf789cb7 -r a73c9918a5de po/ru.po --- a/po/ru.po Sun May 31 12:40:55 2015 -0400 +++ b/po/ru.po Thu Jun 04 00:15:13 2015 +0300 @@ -236,11 +236,11 @@ msgstr "Конвертировать «чужой» пакет в формат tazpkg" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Присоединить пакет из другого установленного SliTaz" #: tazpkg:217 -msgid "Change the mirror url configuration" +msgid "Change the mirror URL configuration" msgstr "Изменить настройки URL репозитория" #: tazpkg:218 @@ -585,7 +585,7 @@ msgstr[2] "%s файлов" #: tazpkg:1489 -msgid "TazPKG information" +msgid "TazPkg information" msgstr "Информация TazPkg" #: tazpkg:1501 @@ -649,7 +649,7 @@ msgstr "Пакет «%s» не установлен." #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "Журнал действий TazPkg" #: tazpkg:1561 @@ -976,28 +976,28 @@ msgstr "Ошибки в пакете «%s» версии %s:" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "Установка пакета «%s» не была завершена" +msgid "The package installation has not completed" +msgstr "Установка пакета не была завершена" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "Пакет «%s» был изменен пакетами:" +msgid "The package has been modified by:" +msgstr "Пакет был изменен пакетами:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "Отсутствуют файлы, установленные пакетом «%s»:" +msgid "Files lost from package:" +msgstr "Отсутствуют файлы, установленные пакетом:" #: tazpkg:2520 msgid "target of symlink" msgstr "цель ссылки" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "Отсутствуют зависимости пакета «%s»:" +msgid "Missing dependencies for package:" +msgstr "Отсутствуют зависимости пакета:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "Циклическая зависимость между пакетами «%s» и:" +msgid "Dependencies loop between package and:" +msgstr "Циклическая зависимость между пакетом и:" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1099,7 +1099,7 @@ msgstr "Установите пакет командой «%s» или «%s»" #: tazpkg:2896 -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "Оболочка TazPkg." #: tazpkg:2897 @@ -1109,7 +1109,7 @@ "выход." #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "Вы уже работаете в оболочке TazPkg." #: tazpkg:2966 diff -r 941baf789cb7 -r a73c9918a5de po/sv.po --- a/po/sv.po Sun May 31 12:40:55 2015 -0400 +++ b/po/sv.po Thu Jun 04 00:15:13 2015 +0300 @@ -238,12 +238,12 @@ #: tazpkg:215 #, fuzzy -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "Länk till annan SliTaz installation" #: tazpkg:217 #, fuzzy -msgid "Change the mirror url configuration" +msgid "Change the mirror URL configuration" msgstr "Spara konfiguration" #: tazpkg:218 @@ -575,7 +575,7 @@ msgstr[1] "" #: tazpkg:1489 -msgid "TazPKG information" +msgid "TazPkg information" msgstr "" #: tazpkg:1501 @@ -648,7 +648,7 @@ msgstr "" #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "" #: tazpkg:1561 @@ -982,15 +982,15 @@ msgstr "" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" +msgid "The package installation has not completed" msgstr "" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" +msgid "The package has been modified by:" msgstr "" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" +msgid "Files lost from package:" msgstr "" #: tazpkg:2520 @@ -998,11 +998,11 @@ msgstr "" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" +msgid "Missing dependencies for package:" msgstr "" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" +msgid "Dependencies loop between package and:" msgstr "" #: tazpkg:2539 @@ -1114,7 +1114,7 @@ msgstr "Installerade paket:" #: tazpkg:2896 -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "" #: tazpkg:2897 @@ -1122,7 +1122,7 @@ msgstr "" #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "" #: tazpkg:2966 diff -r 941baf789cb7 -r a73c9918a5de po/tazpkg.pot --- a/po/tazpkg.pot Sun May 31 12:40:55 2015 -0400 +++ b/po/tazpkg.pot Thu Jun 04 00:15:13 2015 +0300 @@ -231,11 +231,11 @@ msgstr "" #: tazpkg:215 -msgid "Link a package from another slitaz installation" +msgid "Link a package from another SliTaz installation" msgstr "" #: tazpkg:217 -msgid "Change the mirror url configuration" +msgid "Change the mirror URL configuration" msgstr "" #: tazpkg:218 @@ -561,7 +561,7 @@ msgstr[1] "" #: tazpkg:1489 -msgid "TazPKG information" +msgid "TazPkg information" msgstr "" #: tazpkg:1501 @@ -625,7 +625,7 @@ msgstr "" #: tazpkg:1538 -msgid "TazPKG Activity" +msgid "TazPkg Activity" msgstr "" #: tazpkg:1561 @@ -943,15 +943,15 @@ msgstr "" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" +msgid "The package installation has not completed" msgstr "" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" +msgid "The package has been modified by:" msgstr "" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" +msgid "Files lost from package:" msgstr "" #: tazpkg:2520 @@ -959,11 +959,11 @@ msgstr "" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" +msgid "Missing dependencies for package:" msgstr "" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" +msgid "Dependencies loop between package and:" msgstr "" #: tazpkg:2539 @@ -1065,7 +1065,7 @@ msgstr "" #: tazpkg:2896 -msgid "TazPKG SHell." +msgid "TazPkg SHell." msgstr "" #: tazpkg:2897 @@ -1073,7 +1073,7 @@ msgstr "" #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." +msgid "You are already running a TazPkg SHell." msgstr "" #: tazpkg:2966 diff -r 941baf789cb7 -r a73c9918a5de po/zh_CN.po --- a/po/zh_CN.po Sun May 31 12:40:55 2015 -0400 +++ b/po/zh_CN.po Thu Jun 04 00:15:13 2015 +0300 @@ -1,5 +1,5 @@ # Simplified Chinese translations for SliTaz tazpkg package. -# Copyright (C) 2014 Slitaz Association +# Copyright (C) 2014 SliTaz Association # This file is distributed under the same license as the SliTaz tazpkg package. # 张文宇 , 2014. # @@ -232,12 +232,12 @@ msgstr "将deb/rpm/tgz/pet/sfs/sb/arch/ipk包转换成tazpkg 格式" #: tazpkg:215 -msgid "Link a package from another slitaz installation" -msgstr "由另一个安装好的slitaz连接包" +msgid "Link a package from another SliTaz installation" +msgstr "由另一个安装好的SliTaz连接包" #: tazpkg:217 -msgid "Change the mirror url configuration" -msgstr "更改镜像url配置" +msgid "Change the mirror URL configuration" +msgstr "更改镜像URL配置" #: tazpkg:218 msgid "List undigest mirrors" @@ -559,8 +559,8 @@ msgstr[0] "与 $PACKAGE 同时安装的 %s 个文件" #: tazpkg:1489 -msgid "TazPKG information" -msgstr "TazPKG 资讯" +msgid "TazPkg information" +msgstr "TazPkg 资讯" #: tazpkg:1501 msgid "Package : %s" @@ -624,8 +624,8 @@ msgstr "未安装 %s." #: tazpkg:1538 -msgid "TazPKG Activity" -msgstr "TazPKG 活动" +msgid "TazPkg Activity" +msgstr "TazPkg 活动" #: tazpkg:1561 msgid "Please specify a pattern or package name to search for." @@ -943,28 +943,28 @@ msgstr "%s 包 %s 版本的Bugs" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "未完成 %s 包的安装" +msgid "The package installation has not completed" +msgstr "未完成 包的安装" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "%s 包已被以下程式更改:" +msgid "The package has been modified by:" +msgstr "包已被以下程式更改:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "%s 已遗失以下文件:" +msgid "Files lost from package:" +msgstr "已遗失以下文件:" #: tazpkg:2520 msgid "target of symlink" msgstr "软链接(symlink)对象" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "%s 欠缺以下依赖:" +msgid "Missing dependencies for package:" +msgstr "欠缺以下依赖:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "%s 与以下程式有依赖循环" +msgid "Dependencies loop between package and:" +msgstr "包与以下程式有依赖循环" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1069,16 +1069,16 @@ msgstr "以'%s' 或 '%s' 安装包" #: tazpkg:2896 -msgid "TazPKG SHell." -msgstr "TazPKG SHell." +msgid "TazPkg SHell." +msgstr "TazPkg SHell." #: tazpkg:2897 msgid "Type 'usage' to list all available commands or 'quit' or 'q' to exit." msgstr "键入 'usage' 以列出所有可用命令或 'quit' 或 'q' 以退出" #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." -msgstr "你已经在运行 TazPKG SHell." +msgid "You are already running a TazPkg SHell." +msgstr "你已经在运行 TazPkg SHell." #: tazpkg:2966 msgid "Usage: tazpkg link package_name slitaz_root" @@ -1948,8 +1948,8 @@ #~ msgid "Depends:" #~ msgstr "依赖:" -#~ msgid "TazPKG" -#~ msgstr "TazPKG" +#~ msgid "TazPkg" +#~ msgstr "TazPkg" #~ msgid "$PACKAGE_FILE does not look like an Archlinux/Alpine package!" #~ msgstr "$PACKAGE_FILE 并非 Archlinux/Alpine 包!" diff -r 941baf789cb7 -r a73c9918a5de po/zh_TW.po --- a/po/zh_TW.po Sun May 31 12:40:55 2015 -0400 +++ b/po/zh_TW.po Thu Jun 04 00:15:13 2015 +0300 @@ -1,5 +1,5 @@ # Traditional Chinese translations for SliTaz tazpkg package. -# Copyright (C) 2014 Slitaz Association +# Copyright (C) 2014 SliTaz Association # This file is distributed under the same license as the SliTaz tazpkg package. # lunglungyu , 2014. # @@ -231,12 +231,12 @@ msgstr "將deb/rpm/tgz/pet/sfs/sb/arch/ipk包轉換成tazpkg 格式" #: tazpkg:215 -msgid "Link a package from another slitaz installation" -msgstr "由另一個安裝好的slitaz連接包" +msgid "Link a package from another SliTaz installation" +msgstr "由另一個安裝好的SliTaz連接包" #: tazpkg:217 -msgid "Change the mirror url configuration" -msgstr "更改鏡像url配置" +msgid "Change the mirror URL configuration" +msgstr "更改鏡像URL配置" #: tazpkg:218 msgid "List undigest mirrors" @@ -558,8 +558,8 @@ msgstr[0] "與 $PACKAGE 同時安裝的 %s 個文件" #: tazpkg:1489 -msgid "TazPKG information" -msgstr "TazPKG 資訊" +msgid "TazPkg information" +msgstr "TazPkg 資訊" #: tazpkg:1501 msgid "Package : %s" @@ -623,8 +623,8 @@ msgstr "未安裝 %s." #: tazpkg:1538 -msgid "TazPKG Activity" -msgstr "TazPKG 活動" +msgid "TazPkg Activity" +msgstr "TazPkg 活動" #: tazpkg:1561 msgid "Please specify a pattern or package name to search for." @@ -943,28 +943,28 @@ msgstr "%s 包 %s 版本的Bugs" #: tazpkg:2502 -msgid "The package \"%s\" installation has not completed" -msgstr "未完成 %s 包的安裝" +msgid "The package installation has not completed" +msgstr "未完成 包的安裝" #: tazpkg:2510 -msgid "The package \"%s\" has been modified by:" -msgstr "%s 包已被以下程式更改:" +msgid "The package has been modified by:" +msgstr "包已被以下程式更改:" #: tazpkg:2516 -msgid "Files lost from package \"%s\":" -msgstr "%s 已遺失以下文件:" +msgid "Files lost from package:" +msgstr "已遺失以下文件:" #: tazpkg:2520 msgid "target of symlink" msgstr "軟鏈接(symlink)對象" #: tazpkg:2526 -msgid "Missing dependencies for package \"%s\":" -msgstr "%s 欠缺以下依賴:" +msgid "Missing dependencies for package:" +msgstr "欠缺以下依賴:" #: tazpkg:2534 -msgid "Dependencies loop between \"%s\" and:" -msgstr "%s 與以下程式有依賴循環" +msgid "Dependencies loop between package and:" +msgstr "包與以下程式有依賴循環" #: tazpkg:2539 msgid "Looking for known bugs..." @@ -1072,16 +1072,16 @@ msgstr "以'%s' 或 '%s' 安裝包" #: tazpkg:2896 -msgid "TazPKG SHell." -msgstr "TazPKG SHell." +msgid "TazPkg SHell." +msgstr "TazPkg SHell." #: tazpkg:2897 msgid "Type 'usage' to list all available commands or 'quit' or 'q' to exit." msgstr "鍵入 'usage' 以列出所有可用命令或 'quit' 或 'q' 以退出" #: tazpkg:2906 -msgid "You are already running a TazPKG SHell." -msgstr "你已經在運行 TazPKG SHell." +msgid "You are already running a TazPkg SHell." +msgstr "你已經在運行 TazPkg SHell." #: tazpkg:2966 msgid "Usage: tazpkg link package_name slitaz_root" @@ -1950,8 +1950,8 @@ #~ msgid "Depends:" #~ msgstr "依賴:" -#~ msgid "TazPKG" -#~ msgstr "TazPKG" +#~ msgid "TazPkg" +#~ msgstr "TazPkg" #~ msgid "$PACKAGE_FILE does not look like an Archlinux/Alpine package!" #~ msgstr "$PACKAGE_FILE 並非 Archlinux/Alpine 包!" diff -r 941baf789cb7 -r a73c9918a5de tazpanel/pkgs.cgi --- a/tazpanel/pkgs.cgi Sun May 31 12:40:55 2015 -0400 +++ b/tazpanel/pkgs.cgi Thu Jun 04 00:15:13 2015 +0300 @@ -770,17 +770,13 @@
- $(_ 'Recharging log') + $(_ 'Recharging log')
$(show_button up)
- -
 EOT
 		echo $(_ 'Recharging packages list') | log
-		tazpkg recharge | filter_taztools_msgs
+		export output="html"; tazpkg recharge
 		cat <
-
 	
$(_ 'Packages lists are up-to-date. You should check for upgrades now.')
EOT @@ -1071,14 +1067,12 @@ echo "" ;; quickcheck) loading_msg "$(_ 'Checking packages consistency...')" - echo "
"
 				tazpkg check
-				echo "
" ;; + ;; fullcheck) loading_msg "$(_ 'Full packages check...')" - echo "
"
 				tazpkg check --full
-				echo "
" ;; + ;; dvdimage) dev=$(POST dvdimage) mkdir -p /mnt/packages 2> /dev/null diff -r 941baf789cb7 -r a73c9918a5de tazpkg --- a/tazpkg Sun May 31 12:40:55 2015 -0400 +++ b/tazpkg Thu Jun 04 00:15:13 2015 +0300 @@ -18,9 +18,6 @@ # Script variables # #################### -# TazPkg version -VERSION='5.3.4' - . /etc/slitaz/slitaz.conf . /etc/slitaz/tazpkg.conf @@ -33,7 +30,7 @@ _() { local T="$1"; shift; printf "$(gettext "$T")" "$@"; echo; } _n() { local T="$1"; shift; printf "$(gettext "$T")" "$@"; } _p() { - local S="$1" P="$2" N="$3"; shift; shift; shift; + local S="$1" P="$2" N="$3"; shift 3; printf "$(ngettext "$S" "$P" "$N")" "$@"; } @@ -77,44 +74,6 @@ -# -# TazPkg output functions -# - - -# Print localized title - -title() { - case $output in - html) - echo "
$(_ "$@")
";;
-		*)
-			newline; boldify "$(_ "$@")"; separator;;
-	esac
-}
-
-
-# Print footer
-
-footer() {
-	case $output in
-		html)
-			echo "
$1
";; - *) - separator; echo "$1"; [ -n "$1" ] && newline;; - esac -} - - -# Print current action in brown color (separate from any other msgs) - -action() { - case $output in - raw|gtk|html) _n "$@" ;; - *) echo -ne "\033[0;33m"$(_ "$@")"\033[0m" ;; - esac -} - # Initialize some variables to use words rather than numbers for functions # and actions. @@ -142,6 +101,11 @@ UP_LIST="$PKGS_DB/packages.up" DEFAULT_MIRROR="$ONLINE_PKGS" +# TazPkg version +VERSION=$(awk -F$'\t' '$1=="tazpkg"{print $2}' $PKGS_DB/installed.info) +# User Agent +UA="TazPkg-$VERSION" + @@ -170,56 +134,54 @@ $(boldify "$(_ 'Commands:')") $(optlist "\ usage $(_ 'Print this short usage') - bugs $(_ 'Show known bugs in packages') +-h help $(_ 'Show help on the TazPkg commands') -a activity $(_ 'Show TazPkg activity log') +-cc clean-cache $(_ 'Clean all packages downloaded in cache directory') + shell $(_ 'Run interactive TazPkg shell') + -l list $(_ 'List installed packages on the system') -lm list-mirror $(_ 'List all available packages on the mirror') + list-config $(_ 'List the configuration files') + +-s search $(_ 'Search for a package by pattern or name') +-sp search-pkgname $(_ 'Search on mirror for package having a particular file') +-sf search-file $(_ 'Search for file in all installed packages files') + +-g get $(_ 'Download a package into the current directory') +-i install $(_ 'Install a local package') +-gi get-install $(_ 'Download and install a package from the mirror') + install-list $(_ 'Install all packages from a list of packages') + get-install-list $(_ 'Download and install a list of packages from the mirror') +-r remove $(_ 'Remove the specified package and all installed files') + reconfigure $(_ 'Replay post install script from package') + link $(_ 'Link a package from another SliTaz installation') + set-release $(_ 'Change release and update packages') + add-flavor $(_ 'Install the flavor list of packages') + install-flavor $(_ 'Install the flavor list of packages and remove other ones') + info $(_ 'Print information about a package') - desc $(_ 'Print description of a package') +-d desc $(_ 'Print description of a package') -lf list-files $(_ 'List the files installed with a package') - list-config $(_ 'List the configuration files') - --s search $(_ 'Search for a package by pattern or name') - search-pkgname $(_ 'Search on mirror for package having a particular file') --sf search-file $(_ 'Search for file in all installed packages files') - --g get $(_ 'Download a package into the current directory') --gi get-install $(_ 'Download and install a package from the mirror') - get-install-list $(_ 'Download and install a list of packages from the mirror') --i install $(_ 'Install a local package') - install-list $(_ 'Install all packages from a list of packages') --r remove $(_ 'Remove the specified package and all installed files') +-b|u block|unblock $(_ 'Block an installed package version or unblock it for upgrade') + check $(_ 'Verify consistency of installed packages') + bugs $(_ 'Show known bugs in packages') + depends $(_ 'Display dependencies tree') + rdepends $(_ 'Display reverse dependencies tree') -e extract $(_ 'Extract a (*.tazpkg) package into a directory') pack $(_ 'Pack an unpacked or prepared package tree') - - recharge $(_ 'Recharge your packages.list from the mirror') - up|help-up $(_ 'Check packages %s to list and install latest upgrades' $CHECKSUM) - repack $(_ 'Create a package archive from an installed package') repack-config $(_ 'Create a package archive with configuration files') recompress $(_ 'Rebuild a package with a better compression ratio') --b|u block|unblock $(_ 'Block an installed package version or unblock it for upgrade') - check $(_ 'Verify consistency of installed packages') - - add-flavor $(_ 'Install the flavor list of packages') - install-flavor $(_ 'Install the flavor list of packages and remove other ones') - - set-release $(_ 'Change release and update packages') --cc clean-cache $(_ 'Clean all packages downloaded in cache directory') - - depends $(_ 'Display dependencies tree') - rdepends $(_ 'Display reverse dependencies tree') - convert $(_ 'Convert alien package to tazpkg') - link $(_ 'Link a package from another slitaz installation') - --sm setup-mirror $(_ 'Change the mirror url configuration') + list-suggested $(_ 'Print list of suggested packages') + + recharge $(_ 'Recharge your packages.list from the mirror') + up|help-up $(_ 'Check packages %s to list and install latest upgrades' $CHECKSUM) +-sm setup-mirror $(_ 'Change the mirror URL configuration') + setup-undigest $(_ 'Update an undigest mirror') list-undigest $(_ 'List undigest mirrors') + add-undigest $(_ 'Add an undigest mirror') remove-undigest $(_ 'Remove an undigest mirror') - add-undigest $(_ 'Add an undigest mirror') - setup-undigest $(_ 'Update an undigest mirror') - - reconfigure $(_ 'Replay post install script from package') ") EOT } @@ -248,7 +210,7 @@ # Check if dir exists check_dir() { - if ! [ -d "$1" ]; then + if [ ! -d "$1" ]; then action 'Creating folder "%s"...' "$1" mkdir -p "$1" status @@ -487,21 +449,17 @@ # Get package filename available on the mirror get_package_filename() { - local pkg + # input: "" or "-" (ex. "nano" or "nano-2.4.0") + local pkg equiv for rep in $priority; do - pkg=$(grep -A 1 -sh "^$1$" $rep/packages.txt | tail -1 | sed 's/^ *//') - [ -n "$pkg" ] && pkg=$(grep -sh "^$1-$pkg" $rep/packages.list | head -1) - - # Allow user to call a package with his version number. - [ -n "$pkg" ] || pkg=$(grep -sh "^$1$" $rep/packages.list | head -1) - - [ -n "$pkg" ] || pkg=$(grep -sh "^$1-[0-9]" $rep/packages.list | head -1) - [ -n "$pkg" ] || pkg=$(grep -sh "^$1-.[\.0-9]" $rep/packages.list | head -1) - [ -n "$pkg" ] && get_cache_dir && break + pkg=$(awk -F$'\t' -vp="$1" 'p==$1||p==$1"-"$2{print $1"-"$2}' $rep/packages.info) + + if [ -n "$pkg" ]; then + get_cache_dir; break + fi done if [ -z "$pkg" ]; then # Check for virtual package - local equiv equiv=$(virtual_pkg $1) if [ "$equiv" != "$1" ]; then PACKAGE="$equiv" @@ -513,12 +471,11 @@ } -# Check for a package in packages.list. Used by get and get-install to grep +# Check for a package in packages DB. Used by get and get-install to grep # package basename. check_for_package_in_list() { - local filename - local check_only + local filename check_only check_only="$1" filename=$(get_package_filename $PACKAGE) if [ -n "$filename" ]; then @@ -560,7 +517,7 @@ for i in $(cat $p/mirror) ; do case "$i" in http://*|https://*|ftp://*) - busybox wget -q -T 30 -U TazPkg -O $2 \ + busybox wget -q -T 30 -U $UA -O $2 \ ${i%packages/*}packages/get/$1 && return 0 ;; esac done @@ -572,14 +529,15 @@ # Download a file from this mirror download_from() { - local i mirrors="$1"; shift - for i in $mirrors; do + # input: "+" "-.tazpkg" + local i + for i in $1; do case "$i" in # Mirror URL can have a trailing slash or not. - http://*|https://*|ftp://*) - busybox wget -c -q -T 30 -U TazPkg ${i%/}/$@ 2>/dev/null && break ;; + http://* | https://* | ftp://*) + busybox wget -c -q -T 30 -U $UA ${i%/}/$2 2>/dev/null && break ;; *) - ln -sf ${i%/}/$1 . && break ;; + ln -sf ${i%/}/$2 . && break ;; esac done } @@ -588,14 +546,19 @@ # Download a file trying all mirrors download() { + # input: -.tazpkg local i case "$1" in - *.tazpkg) - for i in $priority ; do - grep -q "^${1%.tazpkg}$" $i/packages.list 2>/dev/null || continue - download_from "$(cat $i/mirror)" "$@" && return - done + *.tazpkg) + for i in $priority; do + if [ -n "$(awk -F$'\t' -vp="$1" 'p==$1"-"$2".tazpkg"{print $1}' \ + $i/packages.info)" ]; then + download_from "$(cat $i/mirror)" "$@" && return + fi + done + ;; esac + for i in $(cat $(for rep in $priority; do echo $rep/mirror; done) 2>/dev/null); do download_from "$i" "$@" && break done @@ -905,24 +868,24 @@ install_package_from_get_script() { SCRIPT="$1" ROOT="$2" - [ -d $ROOT$INSTALLED/$PACKAGE ] && exit 1 + [ -d "$ROOT$INSTALLED/$PACKAGE" ] && exit 1 grep -q no-check-certificate $SCRIPT && - [ ! -d $INSTALLED/wget ] && tazpkg get-install wget + [ ! -d "$INSTALLED/wget" ] && tazpkg get-install wget mkdir -p $TMP_DIR && cd $TMP_DIR - saved=$PACKAGE + saved="$PACKAGE" unset_receipt - PACKAGE=$saved - + PACKAGE="$saved" + set -e . $SCRIPT set +e - [ -d $PACKAGE-$VERSION ] || cd $TMP_DIR - [ -d $PACKAGE-$VERSION ] || abort_package \ + [ -d "$PACKAGE-$VERSION" ] || cd $TMP_DIR + [ -d "$PACKAGE-$VERSION" ] || abort_package \ "$(_ 'Could not download "%s" from "%s". Exiting.' ${TARBALL:-$PACKAGE} ${WGET_URL:-$WEB_SITE})" - if [ ! -s $PACKAGE-$VERSION/receipt ]; then + if [ ! -s "$PACKAGE-$VERSION/receipt" ]; then cat > $PACKAGE-$VERSION/receipt < /dev/null 2>&1; } < $PACKAGE_FILE + { cd $TMP_DIR ; cpio --quiet -i receipt >/dev/null 2>&1; } < $PACKAGE_FILE . $TMP_DIR/receipt - PACKAGE=$saved + PACKAGE="$saved" rm -rf $TMP_DIR num=0 @@ -1026,7 +989,7 @@ for pkgorg in $DEPENDS; do i=$(equivalent_pkg $pkgorg $1) if [ ! -d "$1$INSTALLED/$i" ]; then - MISSING_PACKAGE=$i + MISSING_PACKAGE="$i" _ 'Missing package "%s"' $MISSING_PACKAGE fi done @@ -1039,14 +1002,14 @@ # Install all missing deps. Auto install or ask user then install all missing -# deps from local dir, cdrom, media or from the mirror. In case we want to +# deps from local dir, CD-ROM, media or from the mirror. In case we want to # install packages from local, we need a packages.list to find the version. install_deps() { - local root - root="" + local root='' [ -n "$1" ] && root="--root=$1" - if [ "$AUTO_INSTALL_DEPS" == "yes" ]; then + + if [ "$AUTO_INSTALL_DEPS" == 'yes' ]; then answer=0 else newline @@ -1054,12 +1017,12 @@ answer=$? newline fi - if [ $answer == 0 ] && ! [ "$nodeps" ]; then + + if [ "$answer" == 0 ] && [ -z "$nodeps" ]; then for pkgorg in $DEPENDS; do pkg=$(equivalent_pkg $pkgorg $1) if [ ! -d "$1$INSTALLED/$pkg" ]; then - local list - list="$INSTALL_LIST" + local list="$INSTALL_LIST" [ -n "$list" ] || list="$TOP_DIR/packages.list" # We can install packages from a local dir by greping # the TAZPKG_BASENAME in the local packages.list. @@ -1102,10 +1065,10 @@ search_in_installed_packages() { _ 'Installed packages' - separator - num=0 + separator '-' + num='0' for pkg in $(ls -1 $INSTALLED | grep -i "$PATTERN"); do - EXTRAVERSION="" + EXTRAVERSION='' [ -f $INSTALLED/$pkg/receipt ] || continue . $INSTALLED/$pkg/receipt emsg "$PACKAGE $VERSION$EXTRAVERSION $(_n $CATEGORY)" @@ -1122,22 +1085,41 @@ # Search in packages.list for available pkgs. search_in_packages_list() { - _ 'Available packages' - separator - num=0 + _ 'Available packages'; separator '-' + num='0' + TMPLIST="$(mktemp)" BPATTERN="$(emsg "$PATTERN")" - for i in $PKGS_DB/packages.list $PKGS_DB/undigest/*/packages.list \ - $PKGS_DB/extra.list $PKGS_DB/undigest/*/extra.list ; do - grep -is "$PATTERN" $i | sed "s|$PATTERN|$BPATTERN|" - num=$(($num + `grep -is "$PATTERN" $i | wc -l`)) + + for i in $PKGS_DB/packages.info $PKGS_DB/undigest/*/packages.info; do + [ -e "$i" ] && awk -F$'\t' -vpattern="$PATTERN" -vbpattern="$BPATTERN" \ + -vt="$TMPLIST" ' + BEGIN { IGNORECASE = 1 } + index($1 "-" $2, pattern) { + pv = $1 "-" $2; gsub(pattern, bpattern, pv); print pv; + printf "1" >> t + }' $i done - if [ ! -f "$PKGS_DB/packages.list" ]; then + + for i in $PKGS_DB/extra.list $PKGS_DB/undigest/*/extra.list; do + [ -e "$i" ] && awk -F'|' -vpattern="$PATTERN" -vbpattern="$BPATTERN" \ + -vt="$TMPLIST" ' + BEGIN { IGNORECASE = 1 } + index($1 "-" $5, pattern) { + if ($5) pv = $1 "-" $5; else pv = $1; + gsub(pattern, bpattern, pv); print pv " (extra)"; + printf "1" >> t + }' $i + done + + if [ ! -f "$PKGS_DB/packages.info" ]; then newline longline "$(_ \ "No \"%s\" found to check for mirrored packages. For more results, please run \ -\"%s\" once as root before searching." packages.list 'tazpkg recharge')" +\"%s\" once as root before searching." 'packages.info' 'tazpkg recharge')" newline fi + + num="$(wc -m < $TMPLIST)"; rm $TMPLIST footer "$(_p \ '%s available package found for "%s"' \ '%s available packages found for "%s"' $num \ @@ -1151,18 +1133,23 @@ search_in_packages_txt() { _ 'Matching packages name with version and desc' separator - num=0 - for i in $PKGS_DB/packages.txt $PKGS_DB/undigest/*/packages.txt; do + num='0' + for i in \ + $PKGS_DB/packages.txt \ + $PKGS_DB/undigest/*/packages.txt; do + grep -is -A 2 "^$PATTERN" $i - num=$(($num + `grep -is "^$PATTERN" $i | wc -l`)) + num=$(($num + $(grep -is "^$PATTERN" $i | wc -l))) done + if [ ! -f "$PKGS_DB/packages.txt" ]; then newline longline "$(_ \ "No \"%s\" found to check for mirrored packages. For more results, please run \ -\"%s\" once as root before searching." packages.txt 'tazpkg recharge')" +\"%s\" once as root before searching." 'packages.txt' 'tazpkg recharge')" newline fi + footer "$(_p \ '%s available package found for "%s"' \ '%s available packages found for "%s"' $num \ @@ -1178,8 +1165,7 @@ # Get repositories priority list. look_for_priority - FLAVOR=$1 - ARG=$2 + FLAVOR="$1" mkdir -p $TMP_DIR [ -f $FLAVOR.flavor ] && cp $FLAVOR.flavor $TMP_DIR cd $TMP_DIR @@ -1189,7 +1175,7 @@ while read file; do for pkg in $(ls -d $INSTALLED/${file%%-*}*); do [ -f $pkg/receipt ] || continue - EXTRAVERSION="" + EXTRAVERSION='' . $pkg/receipt [ "$PACKAGE-$VERSION$EXTRAVERSION" == "$file" ] && break done @@ -1206,9 +1192,10 @@ get-$pkg done < $FLAVOR.nonfree - [ "$ARG" == "--purge" ] && for pkg in $(ls $INSTALLED); do + # option "--purge" + [ -n "$purge" ] && for pkg in $(ls $INSTALLED); do [ -f $INSTALLED/$pkg/receipt ] || continue - EXTRAVERSION="" + EXTRAVERSION='' . $INSTALLED/$pkg/receipt grep -q ^$PACKAGE-$VERSION$EXTRAVERSION$ $FLAVOR.pkglist && continue grep -qs ^$PACKAGE$ $FLAVOR.nonfree && continue @@ -1222,7 +1209,7 @@ } -# Update mirror urls +# Update mirror URLs setup_mirror() { # Backup old list. @@ -1230,18 +1217,20 @@ cp -f $1/mirror $1/mirror.bak fi title 'Current mirror(s)' - echo " `cat $1/mirror 2> /dev/null`" + echo " $(cat $1/mirror 2> /dev/null)" longline "$(_ \ "Please enter URL of the new mirror (http, ftp or local path). You must specify \ the complete address to the directory of the packages and packages.list file.")" newline + _n 'New mirror(s) URL: ' - NEW_MIRROR_URL=$2 + NEW_MIRROR_URL="$2" if [ -n "$NEW_MIRROR_URL" ]; then echo $NEW_MIRROR_URL else read NEW_MIRROR_URL fi + if [ -z "$NEW_MIRROR_URL" ]; then _ 'Nothing has been changed.' else @@ -1276,10 +1265,10 @@ # recursive reverse dependencies scan rdep_scan() { - SEARCH=$1 + SEARCH="$1" for i in * ; do - DEPENDS="" + DEPENDS='' . $i/receipt echo "$i $(echo $DEPENDS)" done | busybox awk -v search=$SEARCH ' @@ -1306,42 +1295,42 @@ echo -n $spc | sed 's/=/ /g' echo -n $pkg echo -n ' (' - fgrep -A 3 $pkg $PKGS_DB/packages.txt | tail -1 | \ + fgrep -A 3 $pkg $PKGS_DB/packages.txt | tail -1 | \ sed 's/.*(\([^ ]*\).*/\1)/' done } update_desktop_database() { - if [ -f $1/usr/bin/update-desktop-database ] && [ -n "$updatedesktopdb" ]; then + if [ -f "$1/usr/bin/update-desktop-database" ] && [ -n "$updatedesktopdb" ]; then chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications 2>/dev/null fi } update_mime_database() { - if [ -f $1/usr/bin/update-mime-database ] && [ -n "$updatemimedb" ]; then + if [ -f "$1/usr/bin/update-mime-database" ] && [ -n "$updatemimedb" ]; then chroot "$1/" /usr/bin/update-mime-database /usr/share/mime fi } update_icon_database() { - if [ -f $1/usr/bin/gtk-update-icon-cache ] && [ -n "$updateicondb" ]; then + if [ -f "$1/usr/bin/gtk-update-icon-cache" ] && [ -n "$updateicondb" ]; then chroot "$1/" /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor fi } compile_glib_schemas() { - if [ -f $1/usr/bin/glib-compile-schemas ] && [ -n "$compile_schemas" ]; then + if [ -f "$1/usr/bin/glib-compile-schemas" ] && [ -n "$compile_schemas" ]; then chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas fi } update_kernel_modules() { - if [ -f $1/sbin/depmod ] && [ -n "$updatedepmod" ]; then + if [ -f "$1/sbin/depmod" ] && [ -n "$updatedepmod" ]; then chroot "$1/" /sbin/depmod -a fi } @@ -1350,8 +1339,6 @@ # When recharging errors occur recharging_failed() { - colorize 31 "$(_ 'Recharging failed')" - # Restore database from bak files action 'Restoring database files...' [ -e 'ID' -a ! -e 'ID.bak' ] && rm ID @@ -1360,9 +1347,20 @@ mv -f $file ${file%.bak} done status + + footer "$(colorize 31 "$(_ 'Recharging failed')")" } +# Print package name if not printed yet +print_pkgname() { + if [ "$PACKAGE" != "$PACKAGE_PRINTED" ]; then + [ -n "$PACKAGE_PRINTED" ] && footer + title 'Package %s' "$PACKAGE-$VERSION$EXTRAVERSION" + PACKAGE_PRINTED="$PACKAGE" + fi +} + ################### @@ -1502,11 +1500,12 @@ check_for_receipt EXTRAVERSION='' . $INSTALLED/$PACKAGE/receipt - im && title 'TazPKG information' + im && title 'TazPkg information' # Display localized short description for LC in $LANG ${LANG%_*}; do - if [ -e "$PKGS_DB/packages-desc.$LC" ]; then - LOCDESC=$(grep -e "^$PACKAGE"$'\t' $PKGS_DB/packages-desc.$LC | cut -d$'\t' -f2) + PDL="$PKGS_DB/packages-desc.$LC" + if [ -e "$PDL" ]; then + LOCDESC=$(awk -F$'\t' -vp="$PACKAGE" '$1==p{print $2}' $PDL) [ -n "$LOCDESC" ] && SHORT_DESC="$LOCDESC" fi done @@ -1517,22 +1516,22 @@ _ 'Package : %s' "$PACKAGE" _ 'Version : %s' "$VERSION$EXTRAVERSION" _ 'Category : %s' "$(_ $CATEGORY)" - _ 'Short desc : %s' "$SHORT_DESC" +itemize "$(_ 'Short desc : %s' "$SHORT_DESC")" _ 'Maintainer : %s' "$MAINTAINER" _ 'License : %s' "$LICENSE" - _ 'Depends : %s' "$DEPENDS" - _ 'Suggested : %s' "$SUGGESTED" - _ 'Build deps : %s' "$BUILD_DEPENDS" - _ 'Wanted src : %s' "$WANTED" +itemize "$(_ 'Depends : %s' "$DEPENDS")" +itemize "$(_ 'Suggested : %s' "$SUGGESTED")" +itemize "$(_ 'Build deps : %s' "$BUILD_DEPENDS")" +itemize "$(_ 'Wanted src : %s' "$WANTED")" _ 'Web site : %s' "$WEB_SITE" _ 'Size : %s' "$SIZES" - _ 'Tags : %s' "$TAGS" +itemize "$(_ 'Tags : %s' "$TAGS")" } | sed '/: $/d; s|^\([^:]*\):|\1:|')" im && footer ;; - desc) + desc|-d) # Display package description if [ -n "$(grep -e "^$PACKAGE"$'\t' $PKGS_DB/installed.info)" ]; then im && title 'Description of package "%s"' $PACKAGE @@ -1552,7 +1551,7 @@ activity|log|-a) # Show activity log [ -n "$nb" ] || nb='18' - title 'TazPKG Activity' + title 'TazPkg Activity' IFS=' ' tail -n $nb $LOG | tac | \ while read date hour none action none pkg vers none; do @@ -1586,7 +1585,7 @@ case "$3" in -i|--installed) search_in_installed_packages ;; -l|--list) search_in_packages_list ;; - -m|--mirror) search_in_packages_txt ;; +#buggy -m|--mirror) search_in_packages_txt ;; *) search_in_installed_packages search_in_packages_list ;; @@ -1655,7 +1654,7 @@ ;; - search-pkgname) + search-pkgname|-sp) # Search for a package name if [ -z "$2" ]; then newline @@ -1670,12 +1669,12 @@ TMPLIST=$(mktemp) for i in $PKGS_DB/files.list.lzma $PKGS_DB/undigest/*/files.list.lzma; do [ -f "$i" ] || continue - lzcat $i | awk -F: -vT=$TMPLIST ' + lzcat $i | awk -F: -vT=$TMPLIST -vterm="$2" ' BEGIN { P = "" } - $2 ~ /'$2'/ { + index($2, term) { if ($1 != P) { print $1; - printf "%s" 1 >> T; + printf "1" >> T; P = $1 } }' @@ -1700,12 +1699,14 @@ ROOT="$root"; check_base_dir "$root" fi - [ "$list" ] && INSTALL_LIST="$list" - if [ "$rootconfig" ]; then - if [ "$root" ]; then - CACHE_DIR=$root/$CACHE_DIR - SAVE_CACHE_DIR=$CACHE_DIR - PKGS_DB=$root/$PKGS_DB + + [ -n "$list" ] && INSTALL_LIST="$list" + + if [ -n "$rootconfig" ]; then # What about this parameter? Is it obsolete? + if [ -n "$root" ]; then + CACHE_DIR="$root/$CACHE_DIR" + SAVE_CACHE_DIR="$CACHE_DIR" + PKGS_DB="$root/$PKGS_DB" else echo "rootconfig needs --root= option used." >&2 exit 1 @@ -1730,6 +1731,7 @@ install-list|get-install-list) # Install a set of packages from a list. check_root $@ + if [ -z "$2" ]; then newline longline "$(_ \ @@ -1762,8 +1764,7 @@ pkg=$(egrep $pkg-[0-9] $INSTALL_LIST) [ -z "$pkg" ] && continue _ 'Adding implicit depends "%s"...' $pkg - LIST="$pkg -$LIST" + LIST="$pkg"$'\n'"$LIST" done for pkg in $LIST; do @@ -1786,7 +1787,7 @@ set-release) # Change current release and upgrade packages. - RELEASE=$2 + RELEASE="$2" if [ -z "$RELEASE" ]; then newline _ 'Please specify the release you want on the command line.' @@ -1801,7 +1802,7 @@ # Install missing depends cd $INSTALLED for i in * ; do - DEPENDS="" + DEPENDS='' . $i/receipt for j in $DEPENDS ; do [ -d $j ] || tazpkg get-install $j @@ -1906,7 +1907,7 @@ # Process dependent packages if [ -n "$ALTERED" ]; then - if [ "$auto" ]; then + if [ -n "$auto" ]; then answer=0 else confirm "$(_ 'Remove packages depending on package "%s"? (y/N)' $PACKAGE)" @@ -1923,7 +1924,7 @@ # Process changed packages if [ -n "$REFRESH" ]; then - if [ "$auto" ]; then + if [ -n "$auto" ]; then answer=0 else confirm "$(_ 'Reinstall packages modified by package "%s"? (y/N)' $PACKAGE)" @@ -1948,14 +1949,14 @@ # Extract .tazpkg cpio archive into a directory. check_for_package_on_cmdline check_for_package_file - title 'Extracting package "%s"' $PACKAGE + title 'Extracting package "%s"' "$PACKAGE" # If no directory destination is found on the cmdline # we create one in the current dir using the package name. if [ -n "$TARGET_DIR" ]; then - DESTDIR=$TARGET_DIR/$PACKAGE + DESTDIR="$TARGET_DIR/$PACKAGE" else - DESTDIR=$PACKAGE + DESTDIR="$PACKAGE" fi mkdir -p $DESTDIR @@ -1974,7 +1975,7 @@ # Recompress .tazpkg cpio archive with lzma. check_for_package_on_cmdline check_for_package_file - title 'Recompressing package "%s"' $PACKAGE + title 'Recompressing package "%s"' "$PACKAGE" mkdir -p $TMP_DIR action "Copying original package..." @@ -2035,9 +2036,10 @@ repack-config) + check_root $@ # Create SliTaz package archive from configuration files. mkdir -p $TMP_DIR; cd $TMP_DIR - CONFIG_VERSION=1.0 + CONFIG_VERSION='1.0' mkdir config-$CONFIG_VERSION cd config-$CONFIG_VERSION for i in $INSTALLED/*/volatile.cpio.gz; do @@ -2048,7 +2050,7 @@ ( cd / ; cpio -o -H newc --quiet ) < ../files.list | cpio -idm --quiet > /dev/null mkdir -p etc/tazlito for i in $INSTALLED/*/receipt; do - EXTRAVERSION="" + EXTRAVERSION='' . $i echo "$PACKAGE-$VERSION$EXTRAVERSION" done > etc/tazlito/config-packages.list @@ -2076,7 +2078,7 @@ # Create SliTaz package archive from an installed package. check_for_package_on_cmdline check_for_receipt - EXTRAVERSION="" + EXTRAVERSION='' . $INSTALLED/$PACKAGE/receipt title 'Repacking "%s"' "$PACKAGE-$VERSION$EXTRAVERSION.tazpkg" @@ -2093,7 +2095,7 @@ exit 1 fi - MISSING="" + MISSING='' while read i; do [ -e "$i" ] && continue [ -L "$i" ] || MISSING="$MISSING\n $i" @@ -2132,7 +2134,7 @@ if [ -f $INSTALLED/$PACKAGE/$CHECKSUM ]; then sed 's, , fs,' < $INSTALLED/$PACKAGE/$CHECKSUM | \ $CHECKSUM -s -c || { - _ "Can't repack, %s error." $CHECKSUM + _ "Can't repack, %s error." "$CHECKSUM" cd $TOP_DIR rm -rf $TMP_DIR exit 1 @@ -2154,7 +2156,7 @@ # TODO: Cook also pack packages, we should share code in libpkg.sh check_for_package_on_cmdline cd $PACKAGE - if [ ! -f "receipt" ]; then + if [ ! -f 'receipt' ]; then _ 'Receipt is missing. Please read the documentation.' exit 0 fi @@ -2162,11 +2164,11 @@ title 'Packing package "%s"' $PACKAGE # Create files.list with redirecting find outpout. - action "Creating the list of files..." + action 'Creating the list of files...' cd fs find . -type f -print > ../files.list find . -type l -print >> ../files.list - cd .. && sed -i s/'^.'/''/ files.list + cd ..; sed -i s/'^.'/''/ files.list status action 'Creating %s of files...' $CHECKSUM @@ -2181,10 +2183,9 @@ status UNPACKED_SIZE=$(du -chs fs receipt files.list $CHECKSUM \ - description.txt 2> /dev/null | awk \ - '{ sz=$1 } END { print sz }') + description.txt 2>/dev/null | awk 'END { print $1 }') + # Build cpio archives. - action "Compressing the FS..." find fs | cpio -o -H newc --quiet | case "$TAZPKG_PACK" in gzip) gzip -9 > fs.cpio.gz ;; @@ -2194,8 +2195,7 @@ status PACKED_SIZE=$(du -chs fs.cpio.lzma receipt files.list \ - $CHECKSUM description.txt 2> /dev/null | awk \ - '{ sz=$1 } END { print sz }') + $CHECKSUM description.txt 2>/dev/null | awk 'END { print $1 }') action "Updating receipt sizes..." sed -i s/^PACKED_SIZE.*$// receipt @@ -2256,6 +2256,8 @@ repo_name="$(_n 'Undigest %s' "$(basename $path)")" fi + title 'Recharging repository "%s"' "$repo_name" + # Don't let ID be a symlink when using local repository. if [ -h ID ]; then mv -f ID ID.lnk; cat ID.lnk > ID; rm ID.lnk; fi if [ -h IDs ]; then mv -f IDs IDs.lnk; cat IDs.lnk > IDs; rm IDs.lnk; fi @@ -2267,13 +2269,13 @@ # Check if recharging is needed if [ -f 'IDs' ] && cmp -s IDs IDs.bak; then - _ 'Repository "%s" is up to date.' "$repo_name" + action 'Checking...'; status # "Fake" message + footer "$(_ 'Repository "%s" is up to date.' "$repo_name")" rm IDs.bak ID.bak continue fi rm IDs.bak ID.bak 2>/dev/null - title 'Recharging repository "%s"' "$repo_name" [ -e 'IDs' ] && _ 'Database timestamp: %s' "$(date -d "@$(awk '{print $2}' IDs)" "+%x %R")" action 'Creating backup of the last packages list...' @@ -2521,61 +2523,71 @@ check) # Check installed packages set. - check_root $@ + #check_root $@ # Get repositories priority list. look_for_priority cd $INSTALLED - for PACKAGE in $(ls); do - - if [ ! -f $PACKAGE/receipt ]; then - _ 'The package "%s" installation has not completed' $PACKAGE + if [ -z "$2" -o "$2" == '--full' ]; then PACKAGES="$(ls)"; else PACKAGES="$2"; fi + PACKAGE_PRINTED='' + + for PACKAGE in $PACKAGES; do + + if [ ! -f "$PACKAGE/receipt" ]; then + print_pkgname + _ 'The package installation has not completed' continue fi - DEPENDS="" - EXTRAVERSION="" + DEPENDS='' + EXTRAVERSION='' . $PACKAGE/receipt if [ -s $PACKAGE/modifiers ]; then - _ 'The package "%s" has been modified by:' $PACKAGE-$VERSION$EXTRAVERSION - for i in $(cat $PACKAGE/modifiers); do - echo " $i" - done + print_pkgname + _ 'The package has been modified by:' + awk '{print " " $0}' $PACKAGE/modifiers fi - MSG="$(_n 'Files lost from package "%s":' $PACKAGE-$VERSION$EXTRAVERSION)\n" + MSG="$(_n 'Files lost from package:')\n" while read file; do [ -e "$file" ] && continue if [ -L "$file" ]; then MSG="$MSG $(_n 'target of symlink')" fi + print_pkgname echo -e "$MSG $file" - MSG="" + MSG='' done < $PACKAGE/files.list - MSG="$(_n 'Missing dependencies for package "%s":' $PACKAGE-$VERSION$EXTRAVERSION)\n" + MSG="$(_n 'Missing dependencies for package:')\n" for i in $DEPENDS; do [ -d $i ] && continue [ -d $(equivalent_pkg $i) ] && continue + print_pkgname echo -e "$MSG $i" - MSG="" + MSG='' done - MSG="$(_n 'Dependencies loop between "%s" and:' $PACKAGE)\n" - ALL_DEPS="" + MSG="$(_n 'Dependencies loop between package and:')\n" + ALL_DEPS='' check_for_deps_loop $PACKAGE $DEPENDS done + [ -n "$PACKAGE_PRINTED" ] && footer _ 'Looking for known bugs...' - tazpkg bugs - - if [ "$2" == "--full" ]; then + if [ -z "$2" -o "$2" == '--full' ]; then tazpkg bugs; else tazpkg bugs "$2"; fi + + + if [ -n "$full" ]; then separator - for file in */$CHECKSUM; do - CONFIG_FILES="" - . $(dirname "$file")/receipt + title 'Mismatch checksum of installed files:' + + for PACKAGE in $PACKAGES; do + file="$PACKAGE/$CHECKSUM" + CONFIG_FILES='' + . $PACKAGE/receipt [ -s "$file" ] || continue while read md5 f; do [ -f $f ] || continue @@ -2585,41 +2597,53 @@ esac done echo "$md5 $f" - done < "$file" | busybox $CHECKSUM -c - 2> /dev/null | \ - grep -v OK$ | sed "s/FAILED$/$CHECKSUM MISMATCH/" + done < "$file" | busybox $CHECKSUM -c - 2>/dev/null | \ + grep -v OK$ | sed "s/: FAILED$//" done - - FILES=" " - for file in $(cat */files.list); do - [ -d "$file" ] && continue - case "$FILES" in *\ $file\ *) continue;; esac - [ $(grep "^$(echo $file | grepesc)$" */files.list 2> /dev/null | \ - wc -l) -gt 1 ] || continue - FILES="$FILES$file " - _ 'The following packages provide file "%s":' $file - grep -l "^$(echo $file | grepesc)$" */files.list | \ - while read f; do - pkg=${f%/files.list} - if [ -f $pkg/modifiers ]; then - overriders=$(_n '(overridden by %s)' "$(tr '\n' ' ' | sed 's| $||' < $pkg/modifiers)") - else - overriders='' - fi - echo -n " $pkg $overriders" + footer + + title 'Check file providers:' + FILES=' ' + for PACKAGE in $PACKAGES; do + for file in $(cat $PACKAGE/files.list); do + [ -d "$file" ] && continue + case "$FILES" in + *\ $file\ *) continue;; + esac + [ $(grep "^$(echo $file | grepesc)$" */files.list 2> /dev/null | \ + wc -l) -gt 1 ] || continue + FILES="$FILES$file " newline + _ 'The following packages provide file "%s":' $file + grep -l "^$(echo $file | grepesc)$" */files.list | \ + while read f; do + pkg=${f%/files.list} + if [ -f $pkg/modifiers ]; then + overriders=$(_n '(overridden by %s)' "$(tr '\n' ' ' < $pkg/modifiers | sed 's| $||')") + else + overriders='' + fi + echo -n " * $pkg $overriders" + newline + done done done - - MSG="$(_n 'No package has installed the following files:')\n" - find /etc /bin /sbin /lib /usr /var/www -not -type d 2>/dev/null | \ - while read file; do - case "$file" in *\[*) continue;; esac - grep -q "^$(echo $file | grepesc)$" */files.list && continue - echo -e "$MSG $file" - MSG="" - done + footer + + if [ "$2" == '--full' ]; then + title 'Alien files:' + MSG="$(_n 'No package has installed the following files:')\n" + find /etc /bin /sbin /lib /usr /var/www -not -type d 2>/dev/null | \ + while read file; do + case "$file" in *\[*) continue;; esac + grep -q "^$(echo $file | grepesc)$" */files.list && continue + echo -e "$MSG $file" + MSG='' + done + footer + fi fi - _ 'Check completed.'; echo ;; + _ 'Check completed.'; newline ;; block|-b) @@ -2688,12 +2712,12 @@ check_for_package_on_cmdline check_for_packages_list - [ "$root" ] && ROOT="$root" && check_base_dir "$root" - if [ "$rootconfig" ]; then - if [ "$root" ]; then - CACHE_DIR=$root/$CACHE_DIR - SAVE_CACHE_DIR=$CACHE_DIR - PKGS_DB=$root/$PKGS_DB + [ -n "$root" ] && ROOT="$root" && check_base_dir "$root" + if [ -n "$rootconfig" ]; then + if [ -n "$root" ]; then + CACHE_DIR="$root/$CACHE_DIR" + SAVE_CACHE_DIR="$CACHE_DIR" + PKGS_DB="$root/$PKGS_DB" else _ 'rootconfig needs --root= option used.' >&2 exit 1 @@ -2703,9 +2727,10 @@ # Get repositories priority list. look_for_priority - CURRENT_DIR=$PWD + CURRENT_DIR="$PWD" cd $CACHE_DIR if check_for_package_in_list check ; then + cd $CACHE_DIR if [ -f "$PACKAGE.tazpkg" ]; then _ 'Package "%s" already in the cache' $PACKAGE # Check package download was finished @@ -2720,13 +2745,14 @@ else download $PACKAGE.tazpkg fi - PACKAGE_FILE=$CACHE_DIR/$PACKAGE.tazpkg + PACKAGE_FILE="$CACHE_DIR/$PACKAGE.tazpkg" elif download_get_script $PACKAGE /tmp/$PACKAGE.$$ ; then install_package_from_get_script /tmp/$PACKAGE.$$ "$ROOT" --get PACKAGE_FILE=$(ls $PWD/$PACKAGE-*.tazpkg) fi [ "$PWD" != "$CURRENT_DIR" ] && - cp -a $PACKAGE_FILE $CURRENT_DIR ;; + cp -a $PACKAGE_FILE $CURRENT_DIR + ;; get-install|-gi) @@ -2736,10 +2762,11 @@ check_for_packages_list DO_CHECK='' - [ -n "$forced" ] && DO_CHECK=no + [ -n "$forced" ] && DO_CHECK='no' [ -n "$root" ] && ROOT="$root" && check_base_dir "$root" - [ -n "$list" ] && INSTALL_LIST="$list" - if [ -n "$rootconfig" ]; then + [ -n "$list" ] && INSTALL_LIST="$list" # internal option + + if [ -n "$rootconfig" ]; then # outdated? if [ -n "$root" ]; then CACHE_DIR="$root/$CACHE_DIR" SAVE_CACHE_DIR="$CACHE_DIR" @@ -2830,10 +2857,11 @@ _ 'No undigest mirror found.' exit 1 fi - echo "$(basename $(dirname $i)) $(cat $i)" + echo "$(basename $(dirname $i))"$'\t'"$(cat $i)" done newline - fi ;; + fi + ;; remove-undigest) @@ -2850,26 +2878,30 @@ fi else _ 'Undigest "%s" not found' $undigest - fi ;; + fi + ;; add-undigest|setup-undigest) # Add undigest URL. check_root $@ - undigest=$2 - [ -d $PKGS_DB/undigest ] || mkdir $PKGS_DB/undigest + + [ ! -d "$PKGS_DB/undigest" ] && mkdir "$PKGS_DB/undigest" + + undigest="$2" if [ -z "$undigest" ]; then - i=1 + i='1' while [ -d "$PKGS_DB/undigest/$i" ]; do i=$(($i+1)) done - undigest=$i + undigest="$i" fi if [ ! -d "$PKGS_DB/undigest/$undigest" ]; then - _ 'Creating new undigest "%s".' $undigest - mkdir $PKGS_DB/undigest/$undigest + _ 'Creating new undigest "%s".' "$undigest" + mkdir "$PKGS_DB/undigest/$undigest" fi - setup_mirror $PKGS_DB/undigest/$undigest $3 ;; + setup_mirror "$PKGS_DB/undigest/$undigest" "$3" + ;; setup-mirror|-sm) @@ -2882,20 +2914,8 @@ # Replay post_install from receipt check_for_package_on_cmdline check_root $@ - ROOT='' - while [ -n "$3" ]; do - case "$3" in - --root=*) - ROOT="${3#--root=}/" ;; - *) - shift 2 - u_opt="$*" - newline >&2 - _ 'Unknown option "%s".' $u_opt >&2 - exit 1 ;; - esac - shift - done + + ROOT="$root" if [ -d "$ROOT$INSTALLED/$PACKAGE" ]; then check_for_receipt $ROOT # Check for post_install @@ -2903,7 +2923,7 @@ . $ROOT$INSTALLED/$PACKAGE/receipt post_install $ROOT # Log this activity - [ -n "$ROOT" ] || log_pkg Reconfigured + [ -z "$ROOT" ] && log_pkg Reconfigured else newline _ 'Nothing to do for package "%s".' $PACKAGE @@ -2917,15 +2937,15 @@ shell) - # TazPKG SHell - if [ "$(id -u)" == '0' ]; then + # TazPkg SHell + if [ "$(id -u)" -eq 0 ]; then PROMPT="\\033[1;33mtazpkg\\033[0;39m# " else PROMPT="\\033[1;33mtazpkg\\033[0;39m> " fi if [ "$2" != "--noheader" ]; then clear - title 'TazPKG SHell.' + title 'TazPkg SHell.' _ "Type 'usage' to list all available commands or 'quit' or 'q' to exit." newline fi @@ -2935,7 +2955,7 @@ q|quit) break ;; shell) - _ 'You are already running a TazPKG SHell.' ;; + _ 'You are already running a TazPkg SHell.' ;; su) su -c 'exec tazpkg shell --noheader' && break ;; "") @@ -2961,11 +2981,13 @@ ALL_DEPS='' if [ -f "$2/receipt" ]; then rdep_scan $2 - fi ;; + fi + ;; list-suggested) for i in $(ls -d $INSTALLED/*); do + SUGGESTED='' . $i/receipt if [ -n "$SUGGESTED" ]; then if [ -z "$all" ]; then @@ -2978,8 +3000,8 @@ $(boldify $(echo $PACKAGE):) $SUGGESTED EOT fi - SUGGESTED='' - done ;; + done + ;; convert|-c) @@ -3049,6 +3071,11 @@ fi ;; + help|-h) + # TazPkg help system + shift; tazpkg-help $@ ;; + + usage|*) # Print a short help or give usage for an unknown or empty command. usage ;;