[Yum] yum install
Tambet Ingo
tambet at ximian.com
Wed May 10 12:08:26 UTC 2006
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
Tambet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-install.diff
Type: text/x-patch
Size: 709 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20060510/2f3dd138/attachment-0001.bin
More information about the Yum
mailing list