packages: yum/installonlyn-enable.patch (NEW), yum/no-more-exactarchlist.pa...

glen glen at pld-linux.org
Wed Feb 3 01:30:28 CET 2010


Author: glen                         Date: Wed Feb  3 00:30:28 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fc patches

---- Files affected:
packages/yum:
   installonlyn-enable.patch (NONE -> 1.1)  (NEW), no-more-exactarchlist.patch (NONE -> 1.1)  (NEW), yum-HEAD.patch (NONE -> 1.1)  (NEW), yum-manpage-files.patch (NONE -> 1.1)  (NEW), yum-mirror-priority.patch (NONE -> 1.1)  (NEW), yum-multilib-policy-best.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/yum/installonlyn-enable.patch
diff -u /dev/null packages/yum/installonlyn-enable.patch:1.1
--- /dev/null	Wed Feb  3 01:30:28 2010
+++ packages/yum/installonlyn-enable.patch	Wed Feb  3 01:30:23 2010
@@ -0,0 +1,23 @@
+--- yum/config.py~  2008-02-08 16:22:27.000000000 -0500
++++ yum/config.py   2008-02-08 16:22:28.000000000 -0500
+@@ -593,7 +593,7 @@
+     # NOTE: If you set this to 2, then because it keeps the current kernel it
+     # means if you ever install an "old" kernel it'll get rid of the newest one
+     # so you probably want to use 3 as a minimum ... if you turn it on.
+-    installonly_limit = PositiveIntOption(0, range_min=2,
++    installonly_limit = PositiveIntOption(3, range_min=2,
+                                           names_of_0=["0", "<off>"])
+     kernelpkgnames = ListOption(['kernel','kernel-smp', 'kernel-enterprise',
+             'kernel-bigmem', 'kernel-BOOT', 'kernel-PAE', 'kernel-PAE-debug'])
+
+--- docs/yum.conf.5~	2009-05-11 11:55:25.000000000 -0400
++++ docs/yum.conf.5	2009-05-11 11:55:25.000000000 -0400
+@@ -108,7 +108,7 @@
+ 
+ .IP \fBinstallonly_limit \fR
+ Number of packages listed in installonlypkgs to keep installed at the same
+-time. Setting to 0 disables this feature. Default is '0'. Note that this
++time. Setting to 0 disables this feature. Default is '3'. Note that this
+ functionality used to be in the "installonlyn" plugin, where this option was
+ altered via. tokeep.
+ 

================================================================
Index: packages/yum/no-more-exactarchlist.patch
diff -u /dev/null packages/yum/no-more-exactarchlist.patch:1.1
--- /dev/null	Wed Feb  3 01:30:28 2010
+++ packages/yum/no-more-exactarchlist.patch	Wed Feb  3 01:30:23 2010
@@ -0,0 +1,13 @@
+--- yum/config.py~	2009-07-22 12:47:52.000000000 -0400
++++ yum/config.py	2009-07-22 12:48:39.000000000 -0400
+@@ -631,9 +631,7 @@
+                                           names_of_0=["0", "<off>"])
+     kernelpkgnames = ListOption(['kernel','kernel-smp', 'kernel-enterprise',
+             'kernel-bigmem', 'kernel-BOOT', 'kernel-PAE', 'kernel-PAE-debug'])
+-    exactarchlist = ListOption(['kernel', 'kernel-smp',
+-            'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem',
+-            'kernel-devel', 'kernel-PAE', 'kernel-PAE-debug'])
++    exactarchlist = ListOption([])
+     tsflags = ListOption()
+ 
+     assumeyes = BoolOption(False)

================================================================
Index: packages/yum/yum-HEAD.patch
diff -u /dev/null packages/yum/yum-HEAD.patch:1.1
--- /dev/null	Wed Feb  3 01:30:28 2010
+++ packages/yum/yum-HEAD.patch	Wed Feb  3 01:30:23 2010
@@ -0,0 +1,59277 @@
+diff --git a/.gitignore b/.gitignore
+index 52ce707..911da19 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -3,3 +3,7 @@
+ *~
+ *.bak
+ *.swp
++*.tar.*
++.project
++.pydevproject
++asthelper.completions
+diff --git a/Makefile b/Makefile
+index aba6eb2..f1921d0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -78,8 +78,8 @@ _archive:
+ 	@rm -rf ${PKGNAME}-%{VERSION}.tar.gz
+ 	@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
+ 	@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
+-	lynx -dump 'http://wiki.linux.duke.edu/WritingYumPlugins?action=print' > /tmp/${PKGNAME}/PLUGINS
+-	lynx -dump 'http://wiki.linux.duke.edu/YumFaq?action=print' > /tmp/${PKGNAME}/FAQ
++	lynx -dump 'http://yum.baseurl.org/wiki/WritingYumPlugins?format=txt' > /tmp/${PKGNAME}/PLUGINS
++	lynx -dump 'http://yum.baseurl.org/wiki/Faq?format=txt' > /tmp/${PKGNAME}/FAQ
+ 	@rm -f /tmp/${PKGNAME}/$(remove_spec)
+ 	@rm -rf /tmp/${PKGNAME}/.git
+ 	@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
+diff --git a/bin/yum.py b/bin/yum.py
+index 112cfad..7ccee31 100755
+--- a/bin/yum.py
++++ b/bin/yum.py
+@@ -18,7 +18,7 @@ current version of Python, which is:
+ 
+ If you cannot solve this problem yourself, please go to 
+ the yum faq at:
+-  http://wiki.linux.duke.edu/YumFaq
++  http://yum.baseurl.org/wiki/Faq
+   
+ """ % (sys.exc_value, sys.version)
+     sys.exit(1)
+diff --git a/cli.py b/cli.py
+index b098a9f..53025cc 100644
+--- a/cli.py
++++ b/cli.py
+@@ -99,10 +99,11 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         self.registerCommand(yumcommands.DowngradeCommand())        
+         self.registerCommand(yumcommands.VersionCommand())
+         self.registerCommand(yumcommands.HistoryCommand())
++        self.registerCommand(yumcommands.CheckRpmdbCommand())
+ 
+     def registerCommand(self, command):
+         for name in command.getNames():
+-            if self.yum_cli_commands.has_key(name):
++            if name in self.yum_cli_commands:
+                 raise yum.Errors.ConfigError(_('Command "%s" already defined') % name)
+             self.yum_cli_commands[name] = command
+             
+@@ -138,7 +139,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         """
+         usage = 'yum [options] COMMAND\n\nList of Commands:\n\n'
+         commands = yum.misc.unique(self.yum_cli_commands.values())
+-        commands.sort(cmp=lambda x,y : cmp(x.getNames()[0], y.getNames()[0]))
++        commands.sort(key=lambda x: x.getNames()[0])
+         for command in commands:
+             # XXX Remove this when getSummary is common in plugins
+             try:
+@@ -186,6 +187,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+             pc.errorlevel = opts.errorlevel
+             pc.disabled_plugins = self.optparser._splitArg(opts.disableplugins)
+             pc.enabled_plugins  = self.optparser._splitArg(opts.enableplugins)
++            pc.releasever = opts.releasever
+             self.conf
+                     
+         except yum.Errors.ConfigError, e:
+@@ -276,8 +278,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+             for arg in self.extcmds:
+                 self.verbose_logger.log(yum.logginglevels.DEBUG_4, '   %s', arg)
+         
+-        if not self.yum_cli_commands.has_key(self.basecmd):
+-            self.usage()
++        if self.basecmd not in self.yum_cli_commands:
++            self.logger.critical(_('No such command: %s. Please use %s --help'),
++                                  self.basecmd, sys.argv[0])
+             raise CliError
+     
+         self.yum_cli_commands[self.basecmd].doCheck(self, self.basecmd, self.extcmds)
+@@ -308,7 +311,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         if disk:
+             summary += _('Disk Requirements:\n')
+             for k in disk:
+-                summary += _('  At least %dMB needed on the %s filesystem.\n') % (disk[k], k)
++                summary += _('  At least %dMB more space needed on the %s filesystem.\n') % (disk[k], k)
+ 
+         # TODO: simplify the dependency errors?
+ 
+@@ -372,8 +375,11 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         # Check which packages have to be downloaded
+         downloadpkgs = []
+         stuff_to_download = False
++        install_only = True
+         for txmbr in self.tsInfo.getMembers():
+-            if txmbr.ts_state in ['i', 'u']:
++            if txmbr.ts_state not in ('i', 'u'):
++                install_only = False
++            else:
+                 stuff_to_download = True
+                 po = txmbr.po
+                 if po:
+@@ -387,7 +393,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         # Report the total download size to the user, so he/she can base
+         # the answer on this info
+         if stuff_to_download:
+-            self.reportDownloadSize(downloadpkgs)
++            self.reportDownloadSize(downloadpkgs, install_only)
+         
+         # confirm with user
+         if self._promptWanted():
+@@ -453,9 +459,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         self.populateTs(keepold=0) # sigh
+         tserrors = self.ts.test(testcb)
+         del testcb
+-        
+-        self.verbose_logger.log(yum.logginglevels.INFO_2,
+-            _('Finished Transaction Test'))
++
+         if len(tserrors) > 0:
+             errstring = _('Transaction Check Error:\n')
+             for descr in tserrors:
+@@ -589,7 +593,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         oldcount = len(self.tsInfo)
+         
+         for arg in userlist:
+-            if arg.endswith('.rpm') and os.path.exists(arg): # this is hurky, deal w/it
++            if (arg.endswith('.rpm') and (yum.misc.re_remote_url(arg) or
++                                          os.path.exists(arg))):
+                 self.localInstall(filelist=[arg])
+                 continue # it was something on disk and it ended in rpm 
+                          # no matter what we don't go looking at repos
+@@ -622,7 +627,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+             # pass them off to localInstall() and then move on
+             localupdates = []
+             for item in userlist:
+-                if item.endswith('.rpm') and os.path.exists(item): # this is hurky, deal w/it
++                if (item.endswith('.rpm') and (yum.misc.re_remote_url(item) or
++                                               os.path.exists(item))):
+                     localupdates.append(item)
+             
+             if len(localupdates) > 0:
+@@ -666,7 +672,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         oldcount = len(self.tsInfo)
+         
+         for arg in userlist:
+-            if arg.endswith('.rpm') and os.path.exists(arg):
++            if (arg.endswith('.rpm') and (yum.misc.re_remote_url(arg) or
++                                          os.path.exists(arg))):
+                 self.downgradeLocal(arg)
+                 continue # it was something on disk and it ended in rpm 
+                          # no matter what we don't go looking at repos
+@@ -690,7 +697,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         oldcount = len(self.tsInfo)
+ 
+         for arg in userlist:
+-            if arg.endswith('.rpm') and os.path.exists(arg):
++            if (arg.endswith('.rpm') and (yum.misc.re_remote_url(arg) or
++                                          os.path.exists(arg))):
+                 self.reinstallLocal(arg)
+                 continue # it was something on disk and it ended in rpm
+                          # no matter what we don't go looking at repos
+@@ -803,7 +811,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+             if keys != okeys:
+                 if akeys:
+                     print ""
+-                print self.fmtSection("Matched: " + ", ".join(sorted(keys)))
++                # Print them in the order they were passed
++                used_keys = [arg for arg in args if arg in keys]
++                print self.fmtSection(_('Matched: %s') % ", ".join(used_keys))
+                 okeys = keys
+                 akeys.update(keys)
+             self.matchcallback(po, matched_value, args)
+@@ -822,8 +832,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+ 
+         pkgs = []
+         for arg in args:
+-            if arg.endswith('.rpm') and os.path.exists(arg): # this is hurky, deal w/it
+-                thispkg = yum.packages.YumLocalPackage(self.ts, arg)
++            if (arg.endswith('.rpm') and (yum.misc.re_remote_url(arg) or
++                                          os.path.exists(arg))):
++                thispkg = yum.packages.YumUrlPackage(self, self.ts, arg)
+                 pkgs.append(thispkg)
+             else:                
+                 ematch, match, unmatch = self.pkgSack.matchPackageNames([arg])
+@@ -885,10 +896,12 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+             hdrcode, hdrresults = self.cleanHeaders()
+             xmlcode, xmlresults = self.cleanMetadata()
+             dbcode, dbresults = self.cleanSqlite()
++            rpmcode, rpmresults = self.cleanRpmDB()
+             self.plugins.run('clean')
+             
+-            code = hdrcode + pkgcode + xmlcode + dbcode
+-            results = hdrresults + pkgresults + xmlresults + dbresults
++            code = hdrcode + pkgcode + xmlcode + dbcode + rpmcode
++            results = (hdrresults + pkgresults + xmlresults + dbresults +
++                       rpmresults)
+             for msg in results:
+                 self.logger.debug(msg)
+             return code, []
+@@ -908,6 +921,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
+         if 'expire-cache' in userlist or 'metadata' in userlist:
+             self.logger.debug(_('Cleaning up expire-cache metadata'))
+             expccode, expcresults = self.cleanExpireCache()
++        if 'rpmdb' in userlist:
++            self.logger.debug(_('Cleaning up cached rpmdb data'))
++            expccode, expcresults = self.cleanRpmDB()
+         if 'plugins' in userlist:
+             self.logger.debug(_('Cleaning up plugins'))
+             self.plugins.run('clean')
+@@ -1131,7 +1147,7 @@ class YumOptionParser(OptionParser):
+             args = _filtercmdline(
+                         ('--noplugins','--version','-q', '-v', "--quiet", "--verbose"), 
+                         ('-c', '-d', '-e', '--installroot',
+-                         '--disableplugin', '--enableplugin'), 
++                         '--disableplugin', '--enableplugin', '--releasever'), 
+                         args)
+         except ValueError, arg:
+             self.base.usage()
+@@ -1218,6 +1234,9 @@ class YumOptionParser(OptionParser):
+                     self.base.usage()
+                     sys.exit(1)
+ 
++            if opts.rpmverbosity is not None:
++                self.base.conf.rpmverbosity = opts.rpmverbosity
++
+             # setup the progress bars/callbacks
+             self.base.setupProgressCallbacks()
+             # setup the callbacks to import gpg pubkeys and confirm them
+@@ -1300,27 +1319,33 @@ class YumOptionParser(OptionParser):
+ 
+         group.add_option("-t", "--tolerant", action="store_true",
+                 help=_("be tolerant of errors"))
+-        group.add_option("-C", dest="cacheonly", action="store_true",
+-                help=_("run entirely from cache, don't update cache"))
+-        group.add_option("-c", dest="conffile", default='/etc/yum/yum.conf',
+-                help=_("config file location"), metavar=' [config file]')
+-        group.add_option("-R", dest="sleeptime", type='int', default=None,
+-                help=_("maximum command wait time"), metavar=' [minutes]')
+-        group.add_option("-d", dest="debuglevel", default=None,
++        group.add_option("-C", "--cacheonly", dest="cacheonly",
++                action="store_true",
++                help=_("run entirely from system cache, don't update cache"))
++        group.add_option("-c", "--config", dest="conffile",
++                default='/etc/yum/yum.conf',
++                help=_("config file location"), metavar='[config file]')
++        group.add_option("-R", "--randomwait", dest="sleeptime", type='int',
++                default=None,
++                help=_("maximum command wait time"), metavar='[minutes]')
++        group.add_option("-d", "--debuglevel", dest="debuglevel", default=None,
+                 help=_("debugging output level"), type='int',
+-                metavar=' [debug level]')
++                metavar='[debug level]')
+         group.add_option("--showduplicates", dest="showdupesfromrepos",
+                         action="store_true",
+                 help=_("show duplicates, in repos, in list/search commands"))
+-        group.add_option("-e", dest="errorlevel", default=None,
++        group.add_option("-e", "--errorlevel", dest="errorlevel", default=None,
+                 help=_("error output level"), type='int',
+-                metavar=' [error level]')
++                metavar='[error level]')
++        group.add_option("", "--rpmverbosity", default=None,
++                help=_("debugging output level for rpm"),
++                metavar='[debug level name]')
+         group.add_option("-q", "--quiet", dest="quiet", action="store_true",
+                         help=_("quiet operation"))
+         group.add_option("-v", "--verbose", dest="verbose", action="store_true",
+                         help=_("verbose operation"))
+-        group.add_option("-y", dest="assumeyes", action="store_true",
+-                help=_("answer yes for all questions"))
++        group.add_option("-y", "--assumeyes", dest="assumeyes",
++                action="store_true", help=_("answer yes for all questions"))
+         group.add_option("--version", action="store_true", 
+                 help=_("show Yum version and exit"))
+         group.add_option("--installroot", help=_("set install root"), 
+@@ -1354,6 +1379,8 @@ class YumOptionParser(OptionParser):
+                 help=_("skip packages with depsolving problems"))
+         group.add_option("", "--color", dest="color", default=None, 
+                 help=_("control whether color is used"))
++        group.add_option("", "--releasever", dest="releasever", default=None, 
++                help=_("set value of $releasever in yum config and repo files"))
+ 
+ 
+         
+diff --git a/docs/yum.8 b/docs/yum.8
+index e2fbe3c..8d42d9d 100644
+--- a/docs/yum.8
++++ b/docs/yum.8
+@@ -35,7 +35,7 @@ gnome\-packagekit application\&.
+ .br 
+ .I \fR * provides  | whatprovides feature1 [feature2] [\&.\&.\&.]
+ .br  
+-.I \fR * clean [ packages | headers | metadata | dbcache | all ]
++.I \fR * clean [ packages | metadata | expire-cache | rpmdb | plugins | all ]
+ .br
+ .I \fR * makecache
+ .br
+@@ -71,6 +71,8 @@ gnome\-packagekit application\&.
+ .br
+ .I \fR * history [info|list|summary|redo|undo|new] 
+ .br
++.I \fR * check
++.br 
+ .I \fR * help [command] 
+ .br
+ .PP 
+@@ -82,10 +84,10 @@ Repository configuration is honored in all operations.
+ .IP "\fBinstall\fP"
+ Is used to install the latest version of a package or
+ group of packages while ensuring that all dependencies are
+-satisfied\&.  If no package matches the given package name(s), they are
+-assumed to be a shell glob and any matches are then installed\&. If the
+-name starts with an @ character the rest of the name is used as though
+-passed to the groupinstall command\&. If the name is a file, then install works
++satisfied\&.  (See \fBSpecifying package names\fP for more information) 
++If no package matches the given package name(s), they are assumed to be a shell 
++glob and any matches are then installed\&. If the name starts with an 
++@ character the rest of the name is used as though passed to the groupinstall command\&. If the name is a file, then install works
+ like localinstall\&. If the name doesn't match a package, then package
+ "provides" are searched (Eg. "_sqlitecache.so()(64bit)") as are
+ filelists (Eg. "/usr/bin/yum"). Also note that for filelists, wildcards will
+@@ -95,8 +97,8 @@ match multiple packages\&.
+ If run without any packages, update will update every currently
+ installed package.  If one or more packages or package globs are specified, Yum will
+ only update the listed packages\&.  While updating packages, \fByum\fP
+-will ensure that all dependencies are satisfied\&. If the packages or globs
+-specified match to packages which are not currently installed then update will
++will ensure that all dependencies are satisfied\&. (See \fBSpecifying package names\fP for more information) 
++If the packages or globs specified match to packages which are not currently installed then update will
+ not install them\&. update operates on groups, files, provides and filelists
+ just like the "install" command\&.
+ 
+@@ -121,7 +123,7 @@ for more details.
+ Are used to remove the specified packages from the system
+ as well as removing any packages which depend on the package being
+ removed\&. remove operates on groups, files, provides and filelists just like
+-the "install" command\&.
++the "install" command\&.(See \fBSpecifying package names\fP for more information) 
+ .IP 
+ .IP "\fBlist\fP"
+ Is used to list various information about available
+@@ -227,7 +229,22 @@ dependencies for the given packages.
+ .IP "\fBrepolist\fP"
+ Produces a list of configured repositories. The default is to list all
+ enabled repositories. If you pass \-v, for verbose mode, more information is
+-listed.
++listed. If the first argument is 'enabled', 'disabled' or 'all' then the command
++will list those types of repos.
++
++You can pass repo id or name arguments, or wildcards which to match against
++both of those. However if the ir or name matches exactly then the repo will
++be listed even if you are listing enabled repos. and it is disabled.
++
++In non-verbose mode the first column will start with a '*' if the repo. has
++metalink data and the latest metadata is not local. For non-verbose mode the
++last column will also display the number of packages in the repo. and (if there
++are any user specified excludes) the number of packages excluded.
++
++One last special feature of repolist, is that if you are in non-verbose mode
++then yum will ignore any repo errors and output the information it can get
++(Eg. "yum clean all; yum -C repolist" will output something, although the
++package counts/etc. will be zeroed out).
+ .IP
+ .IP "\fBversion\fP"
+ Produces a "version" of the rpmdb, and of the enabled repositories if "all" is
+@@ -244,10 +261,31 @@ transactions (assuming the history_record config. option is set). You can use
+ info/list/summary to view what happened, undo/redo to act on that information
+ and new to start a new history file.
+ 
+-The info/list/summary commands take either a transactions id or a package (with
++The info/list/summary commands take either a transaction id or a package (with
+ wildcards, as in \fBSpecifying package names\fP), all three can also be passed
+ no arguments. list can be passed the keyword "all" to list all the transactions.
+-undo/redo just take a transaction id.
++
++The undo/redo commands take either a transaction id or the keyword last and
++an offset from the last transaction (Eg. if you've done 250 transactions,
++"last" refers to transaction 250, and "last-4" refers to transaction 246).
++
++In "history list" output the Altered column also gives some extra information
++if there was something not good with the transaction.
++
++.I \fB>\fR - The rpmdb was changed, outside yum, after the transaction.
++.br
++.I \fB<\fR - The rpmdb was changed, outside yum, before the transaction.
++.br
++.I \fB*\fR - The transaction aborted before completion.
++.br
++.I \fB#\fR - The transaction completed, but with a non-zero status.
++.br
++
++.IP
++.IP "\fBcheck\fP"
++Checks the local rpmdb and produces information on any problems it finds. You
++can pass the check command the arguments "dependencies" or "duplicates", to
++limit the checking that is performed (the default is "all" which does both).
+ .IP
+ .IP "\fBhelp\fP"
+ Produces help, either for all commands or if given a command name then the help
+@@ -261,12 +299,12 @@ to set\&.
+ .PP 
+ .IP "\fB\-h, \-\-help\fP"
+ Help; display a help message and then quit\&.
+-.IP "\fB\-y\fP"
++.IP "\fB\-y, \-\-assumeyes\fP"
+ Assume yes; assume that the answer to any question which would be asked 
+ is yes\&.
+ .br
+ Configuration Option: \fBassumeyes\fP
+-.IP "\fB\-c [config file]\fP" 
++.IP "\fB\-c, \-\-config=[config file]\fP" 
+ Specifies the config file location - can take HTTP and FTP URLs and local file
+ paths\&.
+ .br
+@@ -276,19 +314,24 @@ Run without output.  Note that you likely also want to use \-y\&.
+ .IP "\fB\-v, \-\-verbose\fP" 
+ Run with a lot of debugging output\&.
+ .br
+-.IP "\fB\-d [number]\fP" 
++.IP "\fB\-d, \-\-debuglevel=[number]\fP" 
+ Sets the debugging level to [number] \- turns up or down the amount of things that are printed\&. Practical range: 0 - 10
+ .br
+ Configuration Option: \fBdebuglevel\fP
+-.IP "\fB\-e [number]\fP" 
++.IP "\fB\-e, \-\-errorlevel=[number]\fP" 
+ Sets the error level to [number] Practical range 0 \- 10. 0 means print only critical errors about which you must be told. 1 means print all errors, even ones that are not overly important. 1+ means print more errors (if any) \-e 0 is good for cron jobs.
+ .br
+ Configuration Option: \fBerrorlevel\fP
+-.IP "\fB\-R [time in minutes]\fP" 
++.IP "\fB\-\-rpmverbosity=[name]\fP" 
++Sets the debug level to [name] for rpm scriplets. 'info' is the default, other
++options are: 'critical', 'emergency', 'error', 'warn' and 'debug'.
++.br
++Configuration Option: \fBrpmverbosity\fP
++.IP "\fB\-R, \-\-randomwait=[time in minutes]\fP" 
+ Sets the maximum amount of time yum will wait before performing a command \- it randomizes over the time.
+-.IP "\fB\-C\fP" 
+-Tells yum to run entirely from cache - does not download or update any
+-headers unless it has to to perform the requested action.
++.IP "\fB\-C, \-\-cacheonly\fP" 
++Tells yum to run entirely from system cache - does not download or
++update any headers unless it has to to perform the requested action.
+ .IP "\fB\-\-version\fP" 
+ Reports the \fByum\fP version number and installed package versions for
+ everything in history_record_packages (can be added to by plugins).
+@@ -350,8 +393,14 @@ Resolve depsolve problems by removing packages that are causing problems
+ from the transaction.
+ .br
+ Configuration Option: \fBskip_broken\fP
++.br
++.IP "\fB\-\-releasever=version\fP"
++Pretend the current release version is the given string. This is very useful
++when combined with \-\-installroot. Note that with the default upstream cachedir,
++of /var/cache/yum, using this option will corrupt your cache (and you can use
++$releasever in your cachedir configuration to stop this).
+ .PP 
+-.IP "\fB\-t, --tolerant\fP"
++.IP "\fB\-t, \-\-tolerant\fP"
+ This option currently does nothing.
+ .br
+ .SH "LIST OPTIONS"
+@@ -364,7 +413,7 @@ version of the package\&.
+ 
+ The format of the output of yum list is:
+ 
+-name.arch \[epoch\:\]version-release  repo or \@installed-from-repo
++name.arch [epoch:]version-release  repo or \@installed-from-repo
+ 
+ .IP "\fByum list [all | glob_exp1] [glob_exp2] [\&.\&.\&.]\fP"
+ List all available and installed packages\&.
+@@ -388,13 +437,36 @@ List the packages installed on the system that are obsoleted by packages
+ in any yum repository listed in the config file.
+ .IP
+ .IP "\fByum list recent\fP"
+-List packages recently added into the repositories. 
++List packages recently added into the repositories. This is often not helpful,
++but what you may really want to use is "yum list-updateinfo new" from the
++security yum plugin.
+ .IP
+-.IP "\fBSpecifying package names\fP"
+-All the list options mentioned above take file-glob-syntax wildcards or package
+-names as arguments, for example \fByum list available 'foo*'\fP will list
+-all available packages that match 'foo*'. (The single quotes will keep your
+-shell from expanding the globs.)
++
++.PP
++.SH "SPECIFYING PACKAGE NAMES"
++A package can be referred to for install, update, remove, list, info etc 
++with any of the following as well as globs of any of the following:
++.IP
++.br
++\fBname\fP
++.br
++\fBname.arch\fP
++.br
++\fBname-ver\fP
++.br
++\fBname-ver-rel\fP
++.br
++\fBname-ver-rel.arch\fP
++.br
++\fBname-epoch:ver-rel.arch\fP
++.br
++\fBepoch:name-ver-rel.arch\fP
++.IP
++For example: \fByum remove kernel-2.4.1-10.i686\fP
++     this will remove this specific kernel-ver-rel.arch.
++.IP
++Or:          \fByum list available 'foo*'\fP 
++     will list all available packages that match 'foo*'. (The single quotes will keep your shell from expanding the globs.)
+ .IP
+ .PP 
+ .SH "CLEAN OPTIONS"
+@@ -402,7 +474,7 @@ The following are the ways which you can invoke \fByum\fP in clean
+ mode. Note that "all files" in the commands below means 
+ "all files in currently enabled repositories". 
+ If you want to also clean any (temporarily) disabled repositories you need to
+-use \fB--enablerepo='*'\fP option.
++use \fB\-\-enablerepo='*'\fP option.
+ 
+ .IP "\fByum clean expire-cache\fP"
+ Eliminate the local data saying when the metadata and mirrorlists were downloaded for each repo. This means yum will revalidate the cache for each repo. next time it is used. However if the cache is still valid, nothing significant was deleted.
+@@ -411,7 +483,8 @@ Eliminate the local data saying when the metadata and mirrorlists were downloade
+ Eliminate any cached packages from the system.  Note that packages are not automatically deleted after they are downloaded.
+ 
+ .IP "\fByum clean headers\fP"
+-Eliminate all of the header files which yum uses for dependency resolution.
++Eliminate all of the header files, which old versions of yum used for
++dependency resolution.
+ 
+ .IP "\fByum clean metadata\fP"
+ Eliminate all of the files which yum uses to determine the remote
+@@ -420,34 +493,22 @@ metadata the next time it is run.
+ 
+ .IP "\fByum clean dbcache\fP"
+ Eliminate the sqlite cache used for faster access to metadata.
+-Using this option will force yum to recreate the cache the next time
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list