Changeset 516 for yum/trunk/docs/yum.8


Ignore:
Timestamp:
Feb 3, 2015, 9:39:54 AM (11 years ago)
Author:
Yuri Dario
Message:

yum: update trunk to 3.4.3.

Location:
yum/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yum/trunk

  • yum/trunk/docs/yum.8

    r2 r516  
    2424.I \fR * update [package1] [package2] [\&.\&.\&.]
    2525.br
     26.I \fR * update-to [package1] [package2] [\&.\&.\&.]
     27.br
    2628.I \fR * check\-update
    2729.br
    2830.I \fR * upgrade [package1] [package2] [\&.\&.\&.]
     31.br
     32.I \fR * upgrade-to [package1] [package2] [\&.\&.\&.]
     33.br
     34.I \fR * distribution-synchronization [package1] [package2] [\&.\&.\&.]
    2935.br
    3036.I \fR * remove | erase package1 [package2] [\&.\&.\&.]
     
    4046.I \fR * makecache
    4147.br
    42 .I \fR * groupinstall group1 [group2] [\&.\&.\&.]
    43 .br
    44 .I \fR * groupupdate group1 [group2] [\&.\&.\&.]
    45 .br
    46 .I \fR * grouplist [hidden] [groupwildcard] [\&.\&.\&.]
    47 .br
    48 .I \fR * groupremove group1 [group2] [\&.\&.\&.]
    49 .br
    50 .I \fR * groupinfo group1 [\&.\&.\&.]
     48.I \fR * groups  [\&.\&.\&.]
    5149.br
    5250.I \fR * search string1 [string2] [\&.\&.\&.]
     
    5755.br
    5856.I \fR * localinstall rpmfile1 [rpmfile2] [\&.\&.\&.]
    59 .br
    60 .I \fR * localupdate rpmfile1 [rpmfile2] [\&.\&.\&.]
     57    (maintained for legacy reasons only - use install)
     58.br
     59.I \fR * localupdate rpmfile1 [rpmfile2] [\&.\&.\&.]
     60    (maintained for legacy reasons only - use update)
    6161.br
    6262.I \fR * reinstall package1 [package2] [\&.\&.\&.]
     
    6868.I \fR * repolist [all|enabled|disabled]
    6969.br
    70 .I \fR * version [all|installed|available|group-*|grouplist|groupinfo]
    71 .br
    72 .I \fR * history [info|list|summary|redo|undo|new]
     70.I \fR * version [ all | installed | available | group-* | nogroups* | grouplist | groupinfo ]
     71.br
     72.I \fR * history [info|list|packages-list|summary|addon-info|redo|undo|rollback|new]
    7373.br
    7474.I \fR * check
     
    8888If no package matches the given package name(s), they are assumed to be a shell
    8989glob and any matches are then installed\&. If the name starts with an
    90 @ character the rest of the name is used as though passed to the groupinstall command\&. If the name is a file, then install works
     90@ character the rest of the name is used as though passed to the groupinstall
     91command\&. If the name starts with a - character, then a search is done within
     92the transaction and any matches are removed. If the name is a file, then install works
    9193like localinstall\&. If the name doesn't match a package, then package
    9294"provides" are searched (Eg. "_sqlitecache.so()(64bit)") as are
     
    107109obsoletes in its calculations - this makes it better for distro\-version
    108110changes, for example: upgrading from somelinux 8.0 to somelinux 9.
     111
     112Note that "\fBupdate\fP" works on installed packages first, and only if there
     113are no matches does it look for available packages. The difference is most
     114noticable when you do "\fBupdate\fP foo-1-2" which will act exactly as
     115"\fBupdate\fP foo" if foo-1-2 is installed. You can use the "\fBupdate-to\fP"
     116if you'd prefer that nothing happen in the above case.
     117.IP
     118.IP "\fBupdate-to\fP"
     119This command works like "\fBupdate\fP" but always specifies the version of the
     120package we want to update to.
    109121.IP
    110122.IP "\fBcheck\-update\fP"
     
    120132for more details.
    121133.IP
     134.IP "\fBupgrade-to\fP"
     135This command works like "\fBupgrade\fP" but always specifies the version of the
     136package we want to update to.
     137.IP
     138.IP "\fBdistribution\-synchronization\fP or \fBdistro\-sync\fP"
     139Synchronizes the installed package set with the latest packages available, this
     140is done by either obsoleting, upgrading or downgrading as appropriate. This will
     141"normally" do the same thing as the upgrade command however if you have the
     142package FOO installed at version 4, and the latest available is only
     143version 3, then this command will \fBdowngrade\fP FOO to version 3.
     144
     145If you give the optional argument "full", then the command will also reinstall
     146packages where the install checksum and the available checksum do not match. And
     147remove old packages (can be used to sync. rpmdb versions). The optional argument
     148"different" can be used to specify the default operation.
     149
     150This command does not perform operations on groups, local packages or negative
     151selections.
     152.IP
    122153.IP "\fBremove\fP or \fBerase\fP"
    123154Are used to remove the specified packages from the system
     
    125156removed\&. remove operates on groups, files, provides and filelists just like
    126157the "install" command\&.(See \fBSpecifying package names\fP for more information)
     158
     159Note that "yum" is included in the protected_packages configuration, by default.
     160So you can't accidentally remove yum itself.
    127161.IP
    128162.IP "\fBlist\fP"
     
    137171.IP
    138172.IP "\fBsearch\fP"
    139 Is used to find any packages matching a string in the description, summary
    140 and package name fields of an rpm. Useful for finding a package
    141 you do not know by name but know by some word related to it.
     173This is used to find packages when you know something about the package but
     174aren't sure of it's name. By default search will try searching just package
     175names and summaries, but if that "fails" it will then try descriptions and url.
     176
     177Yum search orders the results so that those packages matching more terms will
     178appear first.
     179
     180You can force searching everything by specifying "all" as the first argument.
    142181.IP
    143182.IP "\fBinfo\fP"
     
    155194\fByum\fP repos.
    156195.IP
    157 .IP "\fBgroupinstall\fP"
    158 Is used to install all of the individual packages in a group, of the specified
     196.IP "\fBgroups\fP"
     197A command, new in 3.4.2, that collects all the subcommands that act on groups together.
     198
     199"\fBgroup install\fP" is used to install all of the individual packages in a group, of the specified
    159200types (this works as if you'd taken each of those package names and put them on
    160201the command line for a "yum install" command).
    161202 The group_package_types configuration option specifies which types will
    162203be installed.
    163 .IP
    164 .IP "\fBgroupupdate\fP"
    165 Is just an alias for groupinstall, which will do the right thing because
     204
     205"\fBgroup update\fP" is just an alias for groupinstall, which will do the right thing because
    166206"yum install X" and "yum update X" do the same thing, when X is already
    167207installed.
    168 .IP
    169 .IP "\fBgrouplist\fP"
    170 Is used to list the available groups from all \fByum\fP repos. Groups are marked
     208
     209"\fBgroup list\fP" is used to list the available groups from all \fByum\fP repos. Groups are marked
    171210as "installed" if all mandatory packages are installed, or if a group doesn't
    172211have any mandatory packages then it is installed if any of the optional or
     
    175214"user visible". If you pass the \-v option, to enable verbose mode, then the
    176215groupids are displayed.
    177 .IP
    178 .IP "\fBgroupremove\fP"
    179 Is used to remove all of the packages in a group, unlike "groupinstall" this
     216
     217"\fBgroup remove\fP" is used to remove all of the packages in a group, unlike "groupinstall" this
    180218will remove everything regardless of group_package_types. It is worth pointing
    181 out that packages can be in more than one group, so "groupinstall X Y" followed
    182 by "groupremove Y" does not do give you the same result as "groupinstall X".
    183 .IP
    184 .IP "\fBgroupinfo\fP"
    185 Is used to give the description and package list of a group (and which type
     219out that packages can be in more than one group, so "group install X Y" followed
     220by "group remove Y" does not do give you the same result as "group install X".
     221
     222The groupremove_leaf_only configuration changes the behaviour of this command
     223to only remove packages which aren't required by something else.
     224
     225"\fBgroup info\fP" is used to give the description and package list of a group (and which type
    186226those packages are marked as). Note that you can use the yum-filter-data and
    187227yum-list-data plugins to get/use the data the other way around (Ie. what
     
    189229mode, then the package names are matched against installed/available packages
    190230similar to the list command.
    191 .IP 
     231.IP
    192232.IP "\fBshell\fP"
    193233Is used to enter the 'yum shell', when a filename is specified the contents of
     
    201241Is used to install a set of local rpm files. If required the enabled
    202242repositories will be used to resolve dependencies. Note that the install command
    203 will do a local install, if given a filename.
     243will do a local install, if given a filename. This option is maintained for legacy
     244reasons only.
    204245.IP
    205246.IP "\fBlocalupdate\fP"
     
    208249the remaining specified packages will be ignored.
    209250If required the enabled repositories will be used to resolve dependencies. Note
    210 that the update command will do a local install, if given a filename.
     251that the update command will do a local update, if given a filename. This option is maintained for
     252legacy reasons only.
    211253.IP
    212254.IP "\fBreinstall\fP"
     
    221263should work (and thus. all the simple cases will work). Also this does not
    222264work for "installonly" packages, like Kernels. downgrade operates
    223 on groups, files, provides and filelists just like the "install" command\&.
     265on groups, files, provides, filelists and rpm files just like the "install" command\&.
    224266.IP
    225267.IP "\fBdeplist\fP"
    226268Produces a list of all dependencies and what packages provide those
    227 dependencies for the given packages.
     269dependencies for the given packages. As of 3.2.30 it now just shows the latest
     270version of each package that matches (this can be changed by
     271using --showduplicates) and it only shows the newest providers (which can be
     272changed by using --verbose).
    228273.IP
    229274.IP "\fBrepolist\fP"
     
    234279
    235280You can pass repo id or name arguments, or wildcards which to match against
    236 both of those. However if the ir or name matches exactly then the repo will
     281both of those. However if the id or name matches exactly then the repo will
    237282be listed even if you are listing enabled repos. and it is disabled.
    238283
     
    255300the yumdb. Note that this rpmdb version is now also used significantly within
    256301yum (esp. in yum history).
     302
     303The version command will now show "groups" of packages as a separate version,
     304and so takes sub-commands:
     305
     306"version grouplist" - List the defined version groups.
     307
     308"version groupinfo" - Get the complete list of packages within one or more version groups.
     309
     310"version installed" - This is the default, only show the version information for installed packages.
     311
     312"version available" - Only show the version information for available packages.
     313
     314"version all" - Show the version information for installed and available packages.
     315
     316"version nogroups | nogroups-*" - Just show the main version information.
     317
     318"version group-*" - Just show the grouped version information, if more arguments are given then only show the data for those groups.
     319
    257320.IP
    258321.IP "\fBhistory\fP"
    259322The history command allows the user to view what has happened in past
    260323transactions (assuming the history_record config. option is set). You can use
    261 info/list/summary to view what happened, undo/redo to act on that information
    262 and new to start a new history file.
     324info/list/packages-list/summary to view what happened, undo/redo/rollback to act
     325on that information and new to start a new history file.
    263326
    264327The info/list/summary commands take either a transaction id or a package (with
     
    266329no arguments. list can be passed the keyword "all" to list all the transactions.
    267330
    268 The undo/redo commands take either a transaction id or the keyword last and
    269 an offset from the last transaction (Eg. if you've done 250 transactions,
    270 "last" refers to transaction 250, and "last-4" refers to transaction 246).
     331The packages-list command takes a package  (with wildcards, as in
     332\fBSpecifying package names\fP).
     333
     334The undo/redo/rollback commands take either a single transaction id or the
     335keyword last and an offset from the last transaction (Eg. if you've done 250
     336transactions, "last" refers to transaction 250, and "last-4" refers to
     337transaction 246).
     338
     339The undo/redo commands act on the specified transaction, undo'ing or repeating
     340the work of that transaction. While the rollback command will undo all
     341transactions upto the point of the specified transaction. For example, if you
     342have 3 transactions, where package A; B and C where installed respectively.
     343Then "undo 1" will try to remove pacakge A, "redo 1" will try to install package
     344A (if it is not still installed), and "rollback 1" will try to remove packages
     345B and C. Note that after a "rollback 1" you will have a fourth transaction,
     346although the ending rpmdb version (see: yum version) should be the same in
     347transactions 1 and 4.
     348
     349The addon-info command takes a transaction ID, and the packages-list command
     350takes a package (with wildcards).
     351
     352In "history list" you can change the behaviour of the 2nd column via. the
     353configuration option history_list_view.
    271354
    272355In "history list" output the Altered column also gives some extra information
    273 if there was something not good with the transaction.
     356if there was something not good with the transaction (this is also shown at the
     357end of the package column in the packages-list command).
    274358
    275359.I \fB>\fR - The rpmdb was changed, outside yum, after the transaction.
     
    280364.br
    281365.I \fB#\fR - The transaction completed, but with a non-zero status.
     366.br
     367.I \fBE\fR - The transaction completed fine, but had warning/error output during the transaction.
     368.br
     369.I \fBP\fR - The transaction completed fine, but problems already existed in the rpmdb.
     370.br
     371.I \fBs\fR - The transaction completed fine, but --skip-broken was enabled and had to skip some packages.
    282372.br
    283373
     
    287377can pass the check command the arguments "dependencies" or "duplicates", to
    288378limit the checking that is performed (the default is "all" which does both).
     379
     380The info command can also take ranges of transaction ids, of the form
     381start..end, which will then display a merged history as if all the
     382transactions in the range had happened at once\&.
     383.br
     384Eg. "history info 1..4" will merge the first four transactions and display them
     385as a single transaction.
    289386.IP
    290387.IP "\fBhelp\fP"
     
    332429.IP "\fB\-C, \-\-cacheonly\fP"
    333430Tells yum to run entirely from system cache - does not download or
    334 update any headers unless it has to to perform the requested action.
     431update any headers unless it has to to perform the requested action. If you're
     432using this as a user yum will not use the tempcache for the user but will only
     433use the system cache in the system cachedir.
    335434.IP "\fB\-\-version\fP"
    336435Reports the \fByum\fP version number and installed package versions for
     
    341440.IP "\fB\-\-installroot=root\fP"
    342441Specifies an alternative installroot, relative to which all packages will be
    343 installed.
     442installed. Think of this like doing "chroot <root> yum" except using
     443\-\-installroot allows yum to work before the chroot is created.
     444Note: You may also want to use the option \-\-releasever=/ when creating the
     445installroot as otherwise the $releasever value is taken from the rpmdb within
     446the installroot (and thus. will be empty, before creation).
    344447.br
    345448Configuration Option: \fBinstallroot\fP
     
    397500.IP "\fB\-\-releasever=version\fP"
    398501Pretend the current release version is the given string. This is very useful
    399 when combined with \-\-installroot. Note that with the default upstream cachedir,
    400 of /var/cache/yum, using this option will corrupt your cache (and you can use
    401 $releasever in your cachedir configuration to stop this).
     502when combined with \-\-installroot. You can also use \-\-releasever=/ to take
     503the releasever information from outside the installroot.
     504Note that with the default upstream cachedir, of /var/cache/yum, using this
     505option will corrupt your cache (and you can use $releasever in your cachedir
     506configuration to stop this).
    402507.PP
    403508.IP "\fB\-t, \-\-tolerant\fP"
    404509This option currently does nothing.
    405510.br
     511.IP "\fB\-\-setopt=option=value\fP"
     512Set any config option in yum config or repo files. For options in the global
     513config just use: \-\-setopt=option=value for repo options use: \-\-setopt=repoid.option=value
     514.PP
     515
    406516.SH "LIST OPTIONS"
    407517The following are the ways which you can invoke \fByum\fP in list
     
    491601availability of packages. Using this option will force yum to download all the
    492602metadata the next time it is run.
    493 
    494 .IP "\fByum clean dbcache\fP"
    495 Eliminate the sqlite cache used for faster access to metadata.
    496 Using this option will force yum to download the sqlite metadata the next time
    497 it is run, or recreate the sqlite metadata if using an older repo.
    498603
    499604.IP "\fByum clean dbcache\fP"
Note: See TracChangeset for help on using the changeset viewer.