Changeset 516 for yum/trunk/docs/yum.8
- Timestamp:
- Feb 3, 2015, 9:39:54 AM (11 years ago)
- Location:
- yum/trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
docs/yum.8 (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yum/trunk
-
Property svn:mergeinfo
set to
/yum/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
yum/trunk/docs/yum.8
r2 r516 24 24 .I \fR * update [package1] [package2] [\&.\&.\&.] 25 25 .br 26 .I \fR * update-to [package1] [package2] [\&.\&.\&.] 27 .br 26 28 .I \fR * check\-update 27 29 .br 28 30 .I \fR * upgrade [package1] [package2] [\&.\&.\&.] 31 .br 32 .I \fR * upgrade-to [package1] [package2] [\&.\&.\&.] 33 .br 34 .I \fR * distribution-synchronization [package1] [package2] [\&.\&.\&.] 29 35 .br 30 36 .I \fR * remove | erase package1 [package2] [\&.\&.\&.] … … 40 46 .I \fR * makecache 41 47 .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 [\&.\&.\&.] 51 49 .br 52 50 .I \fR * search string1 [string2] [\&.\&.\&.] … … 57 55 .br 58 56 .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) 61 61 .br 62 62 .I \fR * reinstall package1 [package2] [\&.\&.\&.] … … 68 68 .I \fR * repolist [all|enabled|disabled] 69 69 .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] 73 73 .br 74 74 .I \fR * check … … 88 88 If no package matches the given package name(s), they are assumed to be a shell 89 89 glob 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 91 command\&. If the name starts with a - character, then a search is done within 92 the transaction and any matches are removed. If the name is a file, then install works 91 93 like localinstall\&. If the name doesn't match a package, then package 92 94 "provides" are searched (Eg. "_sqlitecache.so()(64bit)") as are … … 107 109 obsoletes in its calculations - this makes it better for distro\-version 108 110 changes, for example: upgrading from somelinux 8.0 to somelinux 9. 111 112 Note that "\fBupdate\fP" works on installed packages first, and only if there 113 are no matches does it look for available packages. The difference is most 114 noticable 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" 116 if you'd prefer that nothing happen in the above case. 117 .IP 118 .IP "\fBupdate-to\fP" 119 This command works like "\fBupdate\fP" but always specifies the version of the 120 package we want to update to. 109 121 .IP 110 122 .IP "\fBcheck\-update\fP" … … 120 132 for more details. 121 133 .IP 134 .IP "\fBupgrade-to\fP" 135 This command works like "\fBupgrade\fP" but always specifies the version of the 136 package we want to update to. 137 .IP 138 .IP "\fBdistribution\-synchronization\fP or \fBdistro\-sync\fP" 139 Synchronizes the installed package set with the latest packages available, this 140 is 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 142 package FOO installed at version 4, and the latest available is only 143 version 3, then this command will \fBdowngrade\fP FOO to version 3. 144 145 If you give the optional argument "full", then the command will also reinstall 146 packages where the install checksum and the available checksum do not match. And 147 remove old packages (can be used to sync. rpmdb versions). The optional argument 148 "different" can be used to specify the default operation. 149 150 This command does not perform operations on groups, local packages or negative 151 selections. 152 .IP 122 153 .IP "\fBremove\fP or \fBerase\fP" 123 154 Are used to remove the specified packages from the system … … 125 156 removed\&. remove operates on groups, files, provides and filelists just like 126 157 the "install" command\&.(See \fBSpecifying package names\fP for more information) 158 159 Note that "yum" is included in the protected_packages configuration, by default. 160 So you can't accidentally remove yum itself. 127 161 .IP 128 162 .IP "\fBlist\fP" … … 137 171 .IP 138 172 .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. 173 This is used to find packages when you know something about the package but 174 aren't sure of it's name. By default search will try searching just package 175 names and summaries, but if that "fails" it will then try descriptions and url. 176 177 Yum search orders the results so that those packages matching more terms will 178 appear first. 179 180 You can force searching everything by specifying "all" as the first argument. 142 181 .IP 143 182 .IP "\fBinfo\fP" … … 155 194 \fByum\fP repos. 156 195 .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" 197 A 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 159 200 types (this works as if you'd taken each of those package names and put them on 160 201 the command line for a "yum install" command). 161 202 The group_package_types configuration option specifies which types will 162 203 be 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 166 206 "yum install X" and "yum update X" do the same thing, when X is already 167 207 installed. 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 171 210 as "installed" if all mandatory packages are installed, or if a group doesn't 172 211 have any mandatory packages then it is installed if any of the optional or … … 175 214 "user visible". If you pass the \-v option, to enable verbose mode, then the 176 215 groupids 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 180 218 will 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 219 out that packages can be in more than one group, so "group install X Y" followed 220 by "group remove Y" does not do give you the same result as "group install X". 221 222 The groupremove_leaf_only configuration changes the behaviour of this command 223 to 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 186 226 those packages are marked as). Note that you can use the yum-filter-data and 187 227 yum-list-data plugins to get/use the data the other way around (Ie. what … … 189 229 mode, then the package names are matched against installed/available packages 190 230 similar to the list command. 191 .IP 231 .IP 192 232 .IP "\fBshell\fP" 193 233 Is used to enter the 'yum shell', when a filename is specified the contents of … … 201 241 Is used to install a set of local rpm files. If required the enabled 202 242 repositories will be used to resolve dependencies. Note that the install command 203 will do a local install, if given a filename. 243 will do a local install, if given a filename. This option is maintained for legacy 244 reasons only. 204 245 .IP 205 246 .IP "\fBlocalupdate\fP" … … 208 249 the remaining specified packages will be ignored. 209 250 If 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. 251 that the update command will do a local update, if given a filename. This option is maintained for 252 legacy reasons only. 211 253 .IP 212 254 .IP "\fBreinstall\fP" … … 221 263 should work (and thus. all the simple cases will work). Also this does not 222 264 work for "installonly" packages, like Kernels. downgrade operates 223 on groups, files, provides and filelists just like the "install" command\&.265 on groups, files, provides, filelists and rpm files just like the "install" command\&. 224 266 .IP 225 267 .IP "\fBdeplist\fP" 226 268 Produces a list of all dependencies and what packages provide those 227 dependencies for the given packages. 269 dependencies for the given packages. As of 3.2.30 it now just shows the latest 270 version of each package that matches (this can be changed by 271 using --showduplicates) and it only shows the newest providers (which can be 272 changed by using --verbose). 228 273 .IP 229 274 .IP "\fBrepolist\fP" … … 234 279 235 280 You can pass repo id or name arguments, or wildcards which to match against 236 both of those. However if the i ror name matches exactly then the repo will281 both of those. However if the id or name matches exactly then the repo will 237 282 be listed even if you are listing enabled repos. and it is disabled. 238 283 … … 255 300 the yumdb. Note that this rpmdb version is now also used significantly within 256 301 yum (esp. in yum history). 302 303 The version command will now show "groups" of packages as a separate version, 304 and 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 257 320 .IP 258 321 .IP "\fBhistory\fP" 259 322 The history command allows the user to view what has happened in past 260 323 transactions (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 information262 and new to start a new history file.324 info/list/packages-list/summary to view what happened, undo/redo/rollback to act 325 on that information and new to start a new history file. 263 326 264 327 The info/list/summary commands take either a transaction id or a package (with … … 266 329 no arguments. list can be passed the keyword "all" to list all the transactions. 267 330 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). 331 The packages-list command takes a package (with wildcards, as in 332 \fBSpecifying package names\fP). 333 334 The undo/redo/rollback commands take either a single transaction id or the 335 keyword last and an offset from the last transaction (Eg. if you've done 250 336 transactions, "last" refers to transaction 250, and "last-4" refers to 337 transaction 246). 338 339 The undo/redo commands act on the specified transaction, undo'ing or repeating 340 the work of that transaction. While the rollback command will undo all 341 transactions upto the point of the specified transaction. For example, if you 342 have 3 transactions, where package A; B and C where installed respectively. 343 Then "undo 1" will try to remove pacakge A, "redo 1" will try to install package 344 A (if it is not still installed), and "rollback 1" will try to remove packages 345 B and C. Note that after a "rollback 1" you will have a fourth transaction, 346 although the ending rpmdb version (see: yum version) should be the same in 347 transactions 1 and 4. 348 349 The addon-info command takes a transaction ID, and the packages-list command 350 takes a package (with wildcards). 351 352 In "history list" you can change the behaviour of the 2nd column via. the 353 configuration option history_list_view. 271 354 272 355 In "history list" output the Altered column also gives some extra information 273 if there was something not good with the transaction. 356 if there was something not good with the transaction (this is also shown at the 357 end of the package column in the packages-list command). 274 358 275 359 .I \fB>\fR - The rpmdb was changed, outside yum, after the transaction. … … 280 364 .br 281 365 .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. 282 372 .br 283 373 … … 287 377 can pass the check command the arguments "dependencies" or "duplicates", to 288 378 limit the checking that is performed (the default is "all" which does both). 379 380 The info command can also take ranges of transaction ids, of the form 381 start..end, which will then display a merged history as if all the 382 transactions in the range had happened at once\&. 383 .br 384 Eg. "history info 1..4" will merge the first four transactions and display them 385 as a single transaction. 289 386 .IP 290 387 .IP "\fBhelp\fP" … … 332 429 .IP "\fB\-C, \-\-cacheonly\fP" 333 430 Tells yum to run entirely from system cache - does not download or 334 update any headers unless it has to to perform the requested action. 431 update any headers unless it has to to perform the requested action. If you're 432 using this as a user yum will not use the tempcache for the user but will only 433 use the system cache in the system cachedir. 335 434 .IP "\fB\-\-version\fP" 336 435 Reports the \fByum\fP version number and installed package versions for … … 341 440 .IP "\fB\-\-installroot=root\fP" 342 441 Specifies an alternative installroot, relative to which all packages will be 343 installed. 442 installed. Think of this like doing "chroot <root> yum" except using 443 \-\-installroot allows yum to work before the chroot is created. 444 Note: You may also want to use the option \-\-releasever=/ when creating the 445 installroot as otherwise the $releasever value is taken from the rpmdb within 446 the installroot (and thus. will be empty, before creation). 344 447 .br 345 448 Configuration Option: \fBinstallroot\fP … … 397 500 .IP "\fB\-\-releasever=version\fP" 398 501 Pretend 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). 502 when combined with \-\-installroot. You can also use \-\-releasever=/ to take 503 the releasever information from outside the installroot. 504 Note that with the default upstream cachedir, of /var/cache/yum, using this 505 option will corrupt your cache (and you can use $releasever in your cachedir 506 configuration to stop this). 402 507 .PP 403 508 .IP "\fB\-t, \-\-tolerant\fP" 404 509 This option currently does nothing. 405 510 .br 511 .IP "\fB\-\-setopt=option=value\fP" 512 Set any config option in yum config or repo files. For options in the global 513 config just use: \-\-setopt=option=value for repo options use: \-\-setopt=repoid.option=value 514 .PP 515 406 516 .SH "LIST OPTIONS" 407 517 The following are the ways which you can invoke \fByum\fP in list … … 491 601 availability of packages. Using this option will force yum to download all the 492 602 metadata 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 time497 it is run, or recreate the sqlite metadata if using an older repo.498 603 499 604 .IP "\fByum clean dbcache\fP"
Note:
See TracChangeset
for help on using the changeset viewer.
