Pkgtool

Un article de Backtrack-fr.

Sommaire

[modifier] Introduction

Suite d'utilitaires destinés à la maintenance des packages au sein des systèmes d'exploitation Linux Slackware.

[modifier] installpkg

[modifier] Introduction

Permet d'installer des packages.

[modifier] Usage

 installpkg [options] package_name

[modifier] Options

 -warn (warn if files will be overwritten, but do not install)
 -root /mnt (install someplace else, like /mnt)
 -infobox (use dialog to draw an info box)
 -menu (confirm package installation with a menu, unless
       the priority is [required] or ADD)
 -ask (used with menu mode: always ask if a package should be
       installed regardless of what the package's priority is)
 -priority ADD|REC|OPT|SKP  (provide a priority for the entire
       package list to use instead of the priority in the
       tagfile)
 -tagfile /somedir/tagfile (specify a different file to use
       for package priorities.  The default is "tagfile" in
       the package's directory)
 
 -m  	Make the contents of the current directory and subdirectories into a package with the name you specify.
 -r 	Install the contents of the current directory and subdirectories as a package with the name you specify.

[modifier] removepkg

[modifier] Introduction

Permet de désinstaller des packages.

[modifier] Usage

 removepkg [-copy] [-keep] [-preserve] [-warn] packagename ...

[modifier] Options

 -warn  	Generates a report of what would happen if you removed the package and sends the report to standard out. 
                It does not remove the package.
 -preserve 	This option will reconstruct the package subtree under /tmp/preserved_packages/packagename, where packagename 
                is the name is you specify.
 -copy 	Construct a copy of the package under /tmp/preserved_packages/packagename, but do not remove it (same effect 
        as -warn -preserve).
 -keep 	Save the temporary files created by removepkg. Useful for debugging purposes.

[modifier] upgradepkg

[modifier] Introduction

Permet de mettre à jour des packages.

[modifier] Usage

 upgradepkg newpackage [newpackage2 ... ]
 upgradepkg oldpackage%newpackage [oldpackage2%newpackage2 ... ]

[modifier] makepkg

[modifier] Introduction

Permet de créer un package.

[modifier] Usage

 makepkg package_name.tgz

[modifier] Options

 -l, --linkadd y|n (moves symlinks into doinst.sh: recommended)
 -p, --prepend (prepend rather than append symlinks to an existing
               doinst.sh.  Useful to link libraries needed by
               programs in the doinst.sh script)
 -c, --chown y|n (resets all permissions to root:root 755
                 - not generally recommended)
 
 If these options are not set, makepkg will prompt as appropriate.

[modifier] explodepkg

[modifier] Introduction

Permet d'explorer le contenu des packages.

[modifier] Usage

 explodepkg package_name [package_name2, ...]

[modifier] rpm2targz

[modifier] Introduction

Permet de convertir un package RPM en package Slackware (.tar.gz).

[modifier] Usage

 /usr/bin/rpm2targz <file.rpm>
 (Outputs "file.tar.gz")

[modifier] Référence