[Yum] yum install

seth vidal skvidal at linux.duke.edu
Wed May 10 12:19:53 UTC 2006


On Wed, 2006-05-10 at 15:08 +0300, Tambet Ingo wrote:
> Hey,
> 
> Sometimes, it's required to remove and install packages within one rpm
> transaction. For example, if there are two packages which have the same
> provides but different package names, there's no way currently to
> replace it. Ugh, that was confusing, wasn't it? Here's (hopefully) a
> better example:
> 
> Installed:
> foo (requires bar)
> bar (provides bar)
> 
> Available:
> baz (provides bar, conflicts with 'bar' package)
> 
> So in this case, there isn't a nice way to replace the 'bar' provider.
> People would usually do something like:
> 
> rpm -e --nodeps bar
> rpm -ivh baz
> 
> The attached patch adds a way to do that: If a package name is prefixed
> with the '~' character and passed to "yum install", it's removed instead
> of installed. So, to continue with the example:
> 
> yum install baz ~bar

all you have to do is run this is in the yum shell:

yum shell
> remove bar
> install baz
> run

-sv







More information about the Yum mailing list