Yuan Yijun (bbbush) wrote,
Yuan Yijun

  • Mood:
  • Music:

yum 的新功能

Panu Matilainen
PMATILAI laiskiainen.org致 Development

> Unable to read version lock configuration: [Errno 5] OSError: [Errno
> 2] No such file or directory: '/etc/yum/pluginconf.d/versionlock.list'

...but this is by design - if the versionlock plugin is enabled it will
refuse to do anything at all unless a versionlock list can be found. The
rationale is that if you care enough about package versions to use
versionlock plugin, you don't want a config file gone missing (or
unreachable due to network break etc) mean that the system can be
updated to any available package versions. So it needs to stop.

The fix is to either 'rpm -e yum-versionlock' if you don't use it or to
provide the missing config file.

- Panu -

Panu Matilainen
PMATILAI laiskiainen.org 致 Development

On Tue, 2006-09-05 at 16:14 -0400, seth vidal wrote:
> On Tue, 2006-09-05 at 23:03 +0300, Panu Matilainen wrote:
> > Yum CVS just gained the ability to downgrade packages, with a little
> > help from yet another plugin. Means you can downgrade to manually
> > specified version of a package with --allow-downgrade assuming you have
> > the plugin installed.
> >
> > Apt-rpm supports crack like 'apt-get install "foo<1.2"' but hell is
> > going to freeze over a couple of times before Seth will accept things
> > like that in Yum :) OTOH it would probably be possible to write a plugin
> > to "revert to previous version" now, implementation is left as an
> > excercise for the reader though...
> yum already supports >=< options - it was part of the
> provides-based-installs.

So the hell frozen over already god knows how many times :) Didn't
remember that, possibly because it doesn't actually downgrade the
package if already installed to meet the requirement. Anyway, that seems
to work as well with --allow-downgrade now.

- Panu -

又,那个 yum 的插件貌似很多很多吗,我的机器上只装了四五个
Tags: 转载

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded