[Yum] yum install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.dulug.duke.edu/pipermail/yum/attachments/20060510/2f3dd138/yum-install.bin

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux