summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-02-12 12:21:54 +0000
committerFrancois Pons <fpons@mandriva.com>2002-02-12 12:21:54 +0000
commit0704a7a6b2baae9a3f167e9693ebeb2966e103e5 (patch)
tree926fe15c7080f770758a3aee20330a43835fe2a1
parentaf278560a229fc0282afceccbb07e1361786004e (diff)
downloadurpmi-0704a7a6b2baae9a3f167e9693ebeb2966e103e5.tar
urpmi-0704a7a6b2baae9a3f167e9693ebeb2966e103e5.tar.gz
urpmi-0704a7a6b2baae9a3f167e9693ebeb2966e103e5.tar.bz2
urpmi-0704a7a6b2baae9a3f167e9693ebeb2966e103e5.tar.xz
urpmi-0704a7a6b2baae9a3f167e9693ebeb2966e103e5.zip
updated man pages.
-rw-r--r--man/C/urpmi.876
-rw-r--r--man/C/urpmi.addmedia.858
-rw-r--r--man/C/urpmi.removemedia.822
-rw-r--r--man/C/urpmi.update.828
-rw-r--r--man/C/urpmq.860
-rw-r--r--man/fr/urpmi.877
-rw-r--r--urpm.pm59
7 files changed, 207 insertions, 173 deletions
diff --git a/man/C/urpmi.8 b/man/C/urpmi.8
index d9bb9326..c91a7f45 100644
--- a/man/C/urpmi.8
+++ b/man/C/urpmi.8
@@ -1,18 +1,17 @@
-.TH urpmi 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmi 8 "12 Feb 2002" "MandrakeSoft" "Mandrake Linux"
.IX urpmi
.SH NAME
urpmi \- rpm wrapper making installs easier for the user
.SH SYNOPSIS
.B urpmi [\fIoptions\fP] [\fIpackage_names\fP | \fIrpm_files...\fP]
.SH DESCRIPTION
-urpmi enables non-superuser install of rpms. In fact, it only authorizes
-well-known rpms to be installed. If you want to install local rpm file, you
-will have to be root.
+urpmi authorizes well-known rpms (or rpm files) to be installed including
+all their dependencies.
+You can use it to install source package dependencies too as root, or source
+package itself as simple user.
You can compare rpm vs. urpmi with insmod vs. modprobe or dpkg vs apt-get
.PP
-All users belonging to group urpmi are allowed to install packages.
-.br
Just launch urpmi followed by what you think is the name of the package(s),
and urpmi will:
.br
@@ -43,17 +42,39 @@ To install all available menu entries of all known packages,
use autoirpm-icons.
.SH OPTIONS
.IP "\fB\--help\fP"
-print an help message and exit.
+print an help message and exit (this is the same as \fB-h\fP or \fB-?\fP).
.IP "\fB\--update\fP"
use only update media. This means \fBurpmi\fP will search and resolve
dependencies only in media marked as update.
+.IP "\fB\--media\fP"
+select specific media to use instead of all media available (or update media is
+\fB--updtae\fP is used).
.IP "\fB\--auto\fP"
installs all required dependencies without asking.
.IP "\fB\--auto-select\fP"
automatically select all packages that have to be upgraded according to already
installed packages and packages listed in various media registered.
+.IP "\fB\--fuzzy\fP"
+disable fast search on exact package name, ie it will propose all
+package containing the name even if one has the given name (this is the same
+as \fB\-y\fP).
+.IP "\fB\--src\fP"
+next package name is a source package and it will select all dependencies if
+\fBurpmi\fP is run as root or only install source package as simple user (this
+is the same as \fB\-s\fP).
+.IP "\fB\--noclean\fP"
+do not remove any package from the cache (/var/cache/urpmi/rpms).
+.IP "\fB\--complete\fP"
+use parsehdlist server to complete \fB--auto-select\fP selection (should not be
+necessary in most cases).
.IP "\fB\--force\fP"
assumes yes on all questions.
+.IP "\fB\--wget\fP"
+use wget only for downloading distant files. By default curl is used if
+available or wget instead.
+.IP "\fB\--curl\fP"
+use curl only for downloading distant files. By default curl is used if
+available or wget instead.
.IP "\fB\--X\fP"
use X interface.
.IP "\fB\--best-output\fP"
@@ -61,25 +82,20 @@ try to use X interface or if not available the standard text interface (using
rpm).
.IP "\fB\-a\fP"
if multiple packages match the substring given, take them all
-.IP "\fB\-m\fP"
-choose minimun closure of requires (this is the default). This is a relatively
-slow algorithm that tries to minimize the number of package to upgrade
-to only what is really necessary.
-.IP "\fB\-M\fP"
-choose maximal closure of requires. This is the fastest algorithms that try to
-upgrade all requires if they can be upgraded.
-.IP "\fB\-c\fP"
-if maximal closure is used, assume that a package listed mey have wrong or not
-up-to-date dependancies. This cause more package to be upgraded and may correct
-unresolved dependancies on the rpm database.
.IP "\fB\-p\fP"
-allow search in provides to find package.
+allow search in provides to find package (default).
+.IP "\fB\-P\fP"
+do not search in provides to find package (this is the opposite of \fB-p\fP).
+.IP "\fB\-y\fP"
+this is the same as \fB--fuzzy\fP.
+.IP "\fB\-s\fP"
+this is the same as \fB--src\fP.
.IP "\fB\-q\fP"
proposes a quiet mode when calling rpm where no upgrade status are printed.
.IP "\fB\-v\fP"
proposes a verbose mode with various messages.
.SH FILES
-/usr/bin/urpmi
+/usr/sbin/urpmi
.br
The \fBurpmi\fP executable (perl script)
.PP
@@ -90,14 +106,14 @@ There is one filelist per media(*).
.PP
/var/lib/urpmi/hdlist.*
.br
-Contain information about all known packages, it's a summary of rpm headers.
+Contains information about all known packages, it's a summary of rpm headers.
There is one hdlist per media(*).
.PP
/var/lib/urpmi/synthesis.hdlist.*
.br
-Contain synthesis information about all known packages built from hdlist files
+Contains synthesis information about all known packages built from hdlist files
that can be used by minimal closure algorithm. If these files are not present
-use \fBurpmi.update -a\fP to generate them. These files are not mandatory.
+use \fBurpmi.update -a\fP to generate them.
.PP
/etc/urpmi/urpmi.cfg
.br
@@ -107,19 +123,9 @@ Contains media description, previous format from older urpmi is accepted.
.br
Contains package names that should be not automatically updated.
.PP
-/var/lib/urpmi/depslist.ordered
-.br
-A simple text file containning all dependencies of all known packages.
-.PP
-/var/lib/urpmi/provides
-.br
-A simple text file containning all provides and the list of associated
-packages that contains them.
-.PP
-/var/lib/urpmi/compss
+/etc/urpmi/inst.list
.br
-A simple text file containning for each Group used the list of package in
-this group.
+Contains package names that should be installed instead of updated.
.SH "SEE ALSO"
urpmi.addmedia(8),
urpmi.update(8),
diff --git a/man/C/urpmi.addmedia.8 b/man/C/urpmi.addmedia.8
index 57e6de26..44cdd0b5 100644
--- a/man/C/urpmi.addmedia.8
+++ b/man/C/urpmi.addmedia.8
@@ -1,4 +1,4 @@
-.TH urpmi.addmedia 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmi.addmedia 8 "12 Feb 2001" "MandrakeSoft" "Mandrake Linux"
.IX urpmi.addmedia
.SH NAME
urpmi.addmedia \- adds a new rpms media for use with urpmi
@@ -9,28 +9,28 @@ urpmi.addmedia tells urpmi that he can find new rpms at the specified
location. Currently supported medias are: local drives, removable drives
(such as cd's), http and ftp.
.PP
-All users belonging to group urpmi are allowed to add a new media.
-.PP
One of the following modes must be choosen:
.PP
http:
.br
-.IP "\fB urpmi.addmedia <\fIname\fP> http://<\fIhost\fP>/<\fIpath\fP> with <\fIrelative path of hdlist\fP>\fP"
+.IP "\fB urpmi.addmedia [\fIoptions\fP] <\fIname\fP> http://<\fIhost\fP>/<\fIpath\fP> [with <\fIrelative path of synthesis|hdlist\fP>]\fP"
Where <\fIname\fP> is your reference for the media (e.g. MandrakeUpdate).
+<\fIname\fP> is optional if \fB--distrib\fP is given in \fIoptions\fP.
.br
<\fIhost\fP>/<\fIpath\fP> is the location of the rpm directory on the net.
.br
<\fIrelative path of hdlist\fP> is the pathname where to find the hdlist of
the rpms. The location is given relative to <\fIpath\fP>.
.br
-Note that \fBwget\fP is used to download files, you may add specific options to
-\fBwget\fP by editing \fB/etc/wgetrc\fP file. Please refer to \fBwget\fP
-documentation for more information.
-.IP "\fB urpmi.addmedia <\fIname\fP> ftp://<\fIlogin\fP>:<\fIuser\fP>@<\fIhost\fP>/<\fIpath\fP> with <\fIrelative path of hdlist\fP>\fP"
+\fBcurl\fP is used by default to download files, \fBwget\fP may be used if
+\fBcurl\fP is not installed or \fB--curl\fP is given in \fIoptions\fP.
+.PP
+ftp:
+.IP "\fB urpmi.addmedia [\fIoptions\fP] <\fIname\fP> ftp://<\fIlogin\fP>:<\fIuser\fP>@ <\fIhost\fP>/<\fIpath\fP> [with <\fIrelative path of synthesis|hdlist\fP>]\fP"
The same as for http, just add your login and user if required (Note that
you needn't to specify anonymous as login for anonymous access ftp servers).
.br
-Note that \fBwget\fP is used to download files, so if a firewall is used you may
+Note that if \fBwget\fP is used to download files with a firewall you may
have to add \fBpassive_ftp=on\fP option to \fB/etc/wgetrc\fP.
.nf
eg: urpmi.addmedia ftp ftp://a:a@leia//export/Mandrake/RPMS with ../base/hdlist
@@ -38,28 +38,36 @@ eg: urpmi.addmedia ftp ftp://a:a@leia//export/Mandrake/RPMS with ../base/hdlist
.PP
Local drive or NFS:
.br
-.IP "\fB urpmi.addmedia <\fIname\fP> file://<\fIpath\fP>\fP with <\fIrelative path of hdlist\fP>\fP"
+.IP "\fB urpmi.addmedia [\fIoptions\fP] <\fIname\fP> file://<\fIpath\fP>\fP [with <\fIrelative path of hdlist\fP>]\fP"
Where <\fIname\fP> is your reference for the media (e.g. Myrpms).
.br
<\fIpath\fP> is the location of the rpm directory on your machine.
.PP
Removable device:
.br
-.IP "\fB urpmi.addmedia removable_<\fIdevice\fP>://<\fIpath\fP>\fP with <\fIrelative path of hdlist\fP>\fP"
-<\fIdevice\fP> is the name of your media as specified in the /dev/ directory
-(e.g. cdrom, floppy, zip, ...).
-.br
-<\fIpath\fP> is the location of the rpm directory on your machine when media
-is mounted.
+.IP "\fB urpmi.addmedia [\fIoptions\fP] <\fIname\fP> removable://<\fIpath\fP>\fP [with <\fIrelative path of hdlist\fP>]\fP"
+<\fIpath\fP> is the location of the rpm directory on your machine when the
+removable device is mounted.
.PP
.SH OPTIONS
+.IP "\fB\--wget\fP"
+use wget only for downloading distant files. By default curl is used if
+available or wget instead.
+.IP "\fB\--curl\fP"
+use curl only for downloading distant files. By default curl is used if
+available or wget instead.
.IP "\fB\--update\fP"
add a medium which will be taken into account when updating only update media by
\fBurpmi\fP.
+.IP "\fB\--distrib\fP"
+add all media from an installation medium. <\fIname\fP> if used is used with
+medium name found to create newer medium name in urpmi database. The \fBwith
+[...]\fP is not used as hdlist found on installation medium are used
+automatically.
.SH FILES
-/usr/bin/urpmi
+/usr/sbin/urpmi.addmedia
.br
-The \fBurpmi\fP executable (perl script)
+The \fBurpmi.addmedia\fP executable (perl script)
.PP
/var/lib/urpmi/list.*
.br
@@ -85,19 +93,9 @@ Contains media description, previous format from older urpmi is accepted.
.br
Contains package names that should be not automatically updated.
.PP
-/var/lib/urpmi/depslist.ordered
-.br
-A simple text file containing all dependencies of all known packages.
-.PP
-/var/lib/urpmi/provides
-.br
-A simple text file containning all provides and the list of associated
-packages that contains them.
-.PP
-/var/lib/urpmi/compss
+/etc/urpmi/inst.list
.br
-A simple text file containning for each Group used the list of package in
-this group.
+Contains package names that should be installed instead of updated.
.SH "SEE ALSO"
urpmi(8),
urpmi.update(8),
diff --git a/man/C/urpmi.removemedia.8 b/man/C/urpmi.removemedia.8
index 6b348f44..3ff7a239 100644
--- a/man/C/urpmi.removemedia.8
+++ b/man/C/urpmi.removemedia.8
@@ -1,4 +1,4 @@
-.TH urpmi.removemedia 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmi.removemedia 8 "12 Feb 2001" "MandrakeSoft" "Mandrake Linux"
.IX urpmi.removemedia
.SH NAME
urpmi.removemedia \- remove a rpms media from the known medias of urpmi
@@ -13,10 +13,12 @@ the named media and to rpms from that media.
.SH OPTIONS
.IP "\fB\-a\fP"
Select all media to remove them.
+.IP "\fB\-c\fP"
+Clean headers cache directory (/var/cache/urpmi/headers).
.SH FILES
-/usr/bin/urpmi
+/usr/sbin/urpmi.removemedia
.br
-The \fBurpmi\fP executable (perl script)
+The \fBurpmi.removemedia\fP executable (perl script)
.PP
/var/lib/urpmi/list.*
.br
@@ -36,19 +38,9 @@ Contains media description, previous format from older urpmi is accepted.
.br
Contains package names that should be not automatically updated.
.PP
-/var/lib/urpmi/depslist.ordered
+/etc/urpmi/inst.list
.br
-A simple text file containing all dependencies of all known packages.
-.PP
-/var/lib/urpmi/provides
-.br
-A simple text file containning all provides and the list of associated
-packages that contains them.
-.PP
-/var/lib/urpmi/compss
-.br
-A simple text file containning for each Group used the list of package in
-this group.
+Contains package names that should be installed instead of updated.
.SH "SEE ALSO"
urpmi(8),
urpmi.addmedia(8),
diff --git a/man/C/urpmi.update.8 b/man/C/urpmi.update.8
index ef28a86f..26b9916b 100644
--- a/man/C/urpmi.update.8
+++ b/man/C/urpmi.update.8
@@ -1,4 +1,4 @@
-.TH urpmi.update 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmi.update 8 "12 Feb 2001" "MandrakeSoft" "Mandrake Linux"
.IX urpmi.update
.SH NAME
urpmi.update \- Updates packages list for specified medias
@@ -11,17 +11,25 @@ Usefull for ftp location for example.
<\fInames\fP> is a list of name you first told to urpmi.addmedia
.SH OPTIONS
+.IP "\fB\--wget\fP"
+use wget only for downloading distant files. By default curl is used if
+available or wget instead.
+.IP "\fB\--curl\fP"
+use curl only for downloading distant files. By default curl is used if
+available or wget instead.
.IP "\fB\-a\fP"
Select all media that are not using a removable device to update them.
.IP "\fB\-c\fP"
Clean /var/cache/urpmi/headers directory on exit.
+.IP "\fB\-d\fP"
+Force complete computation of (not used anymore) /var/lib/urpmi/depslist.ordered file.
.IP "\fB\-f\fP"
Force rebuild of hdlist files or base files (/var/lib/urpmi/depslist.ordered,
/var/lib/urpmi/provides and /var/lib/urpmi/compss).
.SH FILES
-/usr/bin/urpmi
+/usr/sbin/urpmi.update
.br
-The \fBurpmi\fP executable (perl script)
+The \fBurpmi.update\fP executable (perl script)
.PP
/var/lib/urpmi/list.*
.br
@@ -47,19 +55,9 @@ Contains media description, previous format from older urpmi is accepted.
.br
Contains package names that should be not automatically updated.
.PP
-/var/lib/urpmi/depslist.ordered
+/etc/urpmi/inst.list
.br
-A simple text file containing all dependencies of all known packages.
-.PP
-/var/lib/urpmi/provides
-.br
-A simple text file containning all provides and the list of associated
-packages that contains them.
-.PP
-/var/lib/urpmi/compss
-.br
-A simple text file containning for each Group used the list of package in
-this group.
+Contains package names that should be installed instead of updated.
.SH "SEE ALSO"
urpmi(8),
urpmi.addmedia(8),
diff --git a/man/C/urpmq.8 b/man/C/urpmq.8
index b347f2e9..6dae76bb 100644
--- a/man/C/urpmq.8
+++ b/man/C/urpmq.8
@@ -1,4 +1,4 @@
-.TH urpmq 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmq 8 "12 Feb 2001" "MandrakeSoft" "Mandrake Linux"
.IX urpmq
.SH NAME
urpmq \- urpmi database query tool.
@@ -11,16 +11,27 @@ packages or packages that will be installed if you start urpmi.
.PP
Output format of urpmq is the following according to command line options:
.IP
-[group/]package_name[-version][-release]
+[group/]package_name[-version][-release][.arch]
.SH OPTIONS
.IP "\fB\--help\fP"
-print an help message and exit.
+print an help message and exit (this is the same as \fB-h\fP or \fB-?\fP).
.IP "\fB\--update\fP"
use only update media. This means \fBurpmq\fP will search and resolve
dependencies only in media marked as update.
+.IP "\fB\--media\fP"
+select specific media to use instead of all media available (or update media is
+\fB--updtae\fP is used).
.IP "\fB\--auto-select\fP"
automatically select all packages that have to be upgraded according to already
installed packages and packages listed in various media registered.
+.IP "\fB\--fuzzy\fP"
+disable fast search on exact package name, ie it will propose all
+package containing the name even if one has the given name (this is the same
+as \fB\-y\fP).
+.IP "\fB\--src\fP"
+next package name is a source package and it will select all dependencies if
+\fBurpmi\fP is run as root or only install source package as simple user (this
+is the same as \fB\-s\fP).
.IP "\fB\--headers\fP"
extract headers for package selected to standard output.
.IP "\fB\--sources\fP"
@@ -34,26 +45,24 @@ select dependancies (maximal closure).
.IP "\fB\-u\fP"
deselect packages if a better version is already installed, this option can be
used with \fB-d\fP to simulate \fB-M\fP mode of \fBurpmi\fP.
-.IP "\fB\-m\fP"
-choose minimun closure of requires. This is a relatively
-slow algorithm that tries to minimize the number of package to upgrade
-to only what is really necessary.
-.IP "\fB\-M\fP"
-disable minimal closure algorithm so both \fB-d\fP and \fB-u\fP are similar to \fB-M\fP
-mode of \fBurpmi\fP.
.IP "\fB\-c\fP"
if maximal closure is used, assume that a package listed mey have wrong or not
up-to-date dependancies. This cause more package to be upgraded and may correct
unresolved dependancies on the rpm database.
.IP "\fB\-p\fP"
-allow search in provides to find package.
+allow search in provides to find package (default).
+.IP "\fB\-P\fP"
+do not search in provides to find package (this is the opposite of \fB-p\fP).
+.IP "\fB\-y\fP"
+this is the same as \fB--fuzzy\fP.
+.IP "\fB\-s\fP"
+this is the same as \fB--src\fP.
.IP "\fB\-g\fP"
print group of each packages listed.
.IP "\fB\-r\fP"
print version and release of each packages listed.
-.IP "\fB\-d\fP"
-print closure of required packages needed by requested packages on command
-line.
+.IP "\fB\-f\fP"
+print version, release and arch of each packages listed.
.SH FILES
/usr/bin/urpmq
.br
@@ -83,19 +92,9 @@ Contains media description, previous format from older urpmi is accepted.
.br
Contains package names that should be not automatically updated.
.PP
-/var/lib/urpmi/depslist.ordered
-.br
-A simple text file containning all dependencies of all known packages.
-.PP
-/var/lib/urpmi/provides
-.br
-A simple text file containning all provides and the list of associated
-packages that contains them.
-.PP
-/var/lib/urpmi/compss
+/etc/urpmi/inst.list
.br
-A simple text file containning for each Group used the list of package in
-this group.
+Contains package names that should be installed instead of updated.
.SH "SEE ALSO"
urpmi(8),
urpmi.addmedia(8),
@@ -109,12 +108,3 @@ rpmdrake(8)
Francois Pons, Mandrakesoft
.br
fpons@mandrakesoft.com
-
-
-
-
-
-
-
-
-
diff --git a/man/fr/urpmi.8 b/man/fr/urpmi.8
index c7f76c26..f6c08a20 100644
--- a/man/fr/urpmi.8
+++ b/man/fr/urpmi.8
@@ -1,18 +1,18 @@
-.TH urpmi 8 "05 Jul 2001" "MandrakeSoft" "Mandrake Linux"
+.TH urpmi 8 "12 Feb 2001" "MandrakeSoft" "Mandrake Linux"
.IX urpmi
.SH NOM
urpmi \- interface rpm pour simplifier les installations
.SH SYNOPSIS
.B urpmi [\fIoptions\fP] [\fIpackage_names\fP | \fIrpm_files...\fP]
.SH DESCRIPTION
-urpmi permet aux utilisateurs d'installer eux-mêmes des rpms. En fait,
-il autorise uniquement les rpms bien connus à être installés. Si vous
-voulez installer un fichier rpm local, vous devez être super-utilisateur.
+urpmi autorise les rpms bien connus (ou les fichier .rpm) à être installés ainsi
+que leurs dépendances.
+Vous pouvez l'utiliser pour installer les dépendances d'un paquetage source en
+tant que super-utilisateur (root) ou le paquetage source lui même en tant que
+simple utilisateur.
+
En fait, rpm est à urpmi ce que insmod est à modprobe, ou dpkg à apt-get.
.PP
-Tous les utilisateurs appartenant au groupe urpmi peuvent installer des
-paquetages.
-.br
Lancez urpmi suivi de ce que vous pensez être le nom du/des paquetages(s),
et urpmi :
.br
@@ -43,19 +43,39 @@ Pour installer toutes les entrées de menu de tous les paquetages connus, utilise
autoirpm-icons.
.SH OPTIONS
.IP "\fB\--help\fP"
-affiche un message d'aide et quitte.
+affiche un message d'aide et quitte (identique à \fB-h\fP ou \fB-?\fP).
.IP "\fB\--update\fP"
utilise seulement des médias de mise à jour. Cela signifie que \fBurpmi\fP
ne recherchera et ne résolvera les dépendances que sur les médias marqués comme
mises à jour.
-.IP "\fB\--auto\fP"
+.IP "\fB\--media\fP"
+sélectionne les media donnée plutôt que tous les media disponibles.
+.IP "\fB\--auto\fP"
installe toutes les dépendances nécessaires sans rien demander.
-.IP "\fB\--auto-select\fP"
+.IP "\fB\--auto-select\fP"
sélectionne automatiquement tous les paquetages qui doivent être mis à jour
selon les paquetages déjà installés et les paquetages listés dans les divers
médias enregistrés.
+.IP "\fB\--fuzzy\fP"
+désactive la recherche rapide sur un nom de paquetage exact et propose tous les
+noms de paquetage correspondant au paramètre donnée (identique à \fB-y\fP).
+.IP "\fB\--src\fP"
+le prochain nom de paquetage est considéré comme étant un nom de paquetage
+source.
+.IP "\fB\--noclean\fP"
+ne suprime aucun paquetages du cache (/var/cache/urpmi/rpms).
+.IP "\fB\--complete\fP"
+utilise le serveur parsehdlist pour étendre la recherche de paquetages à mettre
+à jour au moyen de \fB--auto-select\fP (ne doit pas être nécessaire dans la
+majorité des cas).
.IP "\fB\--force\fP"
répond par l'affirmative à toutes les questions.
+.IP "\fB\--wget\fP"
+utilise wget pour télécharger les fichiers. Par défaut curl est utilisé s'il est
+disponible ou wget dans le cas contraire.
+.IP "\fB\--curl\fP"
+utilise curl pour télécharger les fichiers. Par défaut curl est utilisé s'il est
+disponible ou wget dans le cas contraire.
.IP "\fB\--X\fP"
utilise l'interface X.
.IP "\fB\--best-output\fP"
@@ -63,27 +83,20 @@ essaye d'utiliser l'interface X, ou si elle n'est pas disponible, l'interface
en mode texte (qui utilise rpm).
.IP "\fB\-a\fP"
si plusieurs paquetages coïncident avec la sous-chaîne donnée, les prendre tous.
-.IP "\fB\-m\fP"
-cherche un ensemble minimum de dépendances (option par défaut). C'est un
-algorithme plutôt lent qui essaye de limiter le nombre de paquetages à
-mettre à jour à ceux qui sont vraiment nécessaires.
-.IP "\fB\-M\fP"
-choisit un ensemble maximum de dépendances. C'est l'algorithme le plus rapide
-qui essaye de mettre à jour toutes les dépendances si elles peuvent être mises
-à jour.
-.IP "\fB\-c\fP"
-si l'ensemble maximum est utilisé, suppose qu'un paquetage listé peut avoir
-une mauvaise mise-à-jour, ou pas actualisée. Cela entraîne la mise-à-jour de
-davantage de paquetages et peut corriger les dépendances non résolues dans
-la base de données rpm.
.IP "\fB\-p\fP"
-autorise la recherche dans "provides" pour trouver un paquetage.
+autorise la recherche dans "provides" pour trouver un paquetage (par défaut).
+.IP "\fB\-P\fP"
+désactive la recherche dans "provides" pour trouver un paquetage.
+.IP "\fB\-y\fP"
+identique à \fB--fuzzy\fP.
+.IP "\fB\-s\fP"
+identique à \fB--src\fP.
.IP "\fB\-q\fP"
active le mode silencieux pour la mise à jour utilisant rpm
.IP "\fB\-v\fP"
active un mode verbeux avec de nombreux messages.
.SH FICHIERS
-/usr/bin/urpmi
+/usr/sbin/urpmi
.br
L'exécutable \fBurpmi\fP (script perl)
.PP
@@ -113,19 +126,9 @@ Contient la description du médium, l'ancien format urpmi est accepté.
.br
Contient les noms de paquetages à ne pas mettre à jour automatiquement.
.PP
-/var/lib/urpmi/depslist.ordered
-.br
-Un simple fichier texte contenant les dépendances de tous les paquetages connus.
-.PP
-/var/lib/urpmi/provides
-.br
-Un simple fichier texte contenant tous les « provides » et la liste des
-paquetages associés qui les contiennent.
-.PP
-/var/lib/urpmi/compss
+/etc/urpmi/inst.list
.br
-Un simple fichier texte contenant pour chaque groupe utilisé la liste des
-paquetages dans ce groupe.
+Contient les noms de paquetages à installer plutôt qu'à mettre à jour.
.SH "VOIR AUSSI"
urpmi.addmedia(8),
urpmi.update(8),
diff --git a/urpm.pm b/urpm.pm
index 3258ee3f..8d77a06b 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -15,12 +15,57 @@ urpm - Mandrake perl tools to handle urpmi database
require urpm;
my $urpm = new urpm;
-
$urpm->read_config();
+ $urpm->add_medium('medium_ftp',
+ 'ftp://ftp.mirror/pub/linux/distributions/mandrake-devel/cooker/i586/Mandrake/RPMS',
+ 'synthesis.hdlist.cz',
+ update => 0);
+ $urpm->add_distrib_media('stable', 'removable://mnt/cdrom',
+ update => 1);
+ $urpm->select_media('contrib', 'update');
+ $urpm->update_media(%options);
+ $urpm->write_config();
+
+ my $urpm = new urpm;
+ $urpm->read_config(nocheck_access => $uid > 0);
+ foreach (grep { !$_->{ignore} } @{$urpm->{media} || []}) {
+ $urpm->parse_synthesis($_);
+ }
+ if (@files) {
+ push @names, $urpm->register_local_packages(@files);
+ }
+ $urpm->relocate_depslist_provides();
+
+ my %packages;
+ @names and $urpm->search_packages(\%packages, [ @names],
+ use_provides => 1);
+ if ($auto_select) {
+ my (%to_remove, %keep_files);
+
+ $urpm->select_packages_to_upgrade('', \%packages,
+ \%to_remove, \%keep_files,
+ use_parsehdlist => $complete);
+ }
+ $urpm->filter_packages_to_upgrade(\%packages,
+ $ask_choice);
+ $urpm->deselect_unwanted_packages(\%packages);
+
+ my ($local_sources,
+ $list,
+ $local_to_removes) = $urpm->get_source_packages(\%packages);
+ my %sources = $urpm->download_source_packages($local_sources,
+ $list,
+ 'force_local',
+ $ask_medium_change);
+ my @rpms_install = grep { $_ !~ /\.src.\.rpm/ } values %{
+ $urpm->extract_packages_to_install(\%sources)
+ || {}};
+ my @rpms_upgrade = grep { $_ !~ /\.src.\.rpm/ } values %sources;
+
=head1 DESCRIPTION
-C<urpm> is used by urpmi executable to manipulate packages and media
+C<urpm> is used by urpmi executables to manipulate packages and media
on a Linux-Mandrake distribution.
=head1 SEE ALSO
@@ -30,7 +75,7 @@ files.
=head1 COPYRIGHT
-Copyright (C) 2000 MandrakeSoft <fpons@mandrakesoft.com>
+Copyright (C) 2000,2001,2002 MandrakeSoft <fpons@mandrakesoft.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -586,9 +631,11 @@ sub build_synthesis_hdlist {
#- take care of modification and try some trick to bypass
#- computational of base files.
#- allow options :
-#- all -> all medium are rebuilded
-#- force -> try to force rebuilding base files (1) or hdlist from rpms files (2).
-#- noclean -> keep header directory cleaned.
+#- all -> all medium are rebuilded.
+#- force -> try to force rebuilding base files (1) or hdlist from rpms files (2).
+#- probe_with_hdlist -> probe synthesis or hdlist.
+#- ratio -> use compression ratio (with gzip, default is 4)
+#- noclean -> keep header directory cleaned.
sub update_media {
my ($urpm, %options) = @_; #- do not trust existing hdlist and try to recompute them.