On Tue, Mar 16, 2004, Mike's List wrote:
> bash-2.05b# openpkg rpm --erase postfix
> error: Failed dependencies:
> MTA is needed by (installed) qpopper-4.0.5-2.0.0
> MTA is needed by (installed) pine-4.58L-2.0.0
>
> I've added --force, but rpm -e doesn't seems to work. Is there a way to
> remove a package (force) even when dependencies failed? I want to remove
> postfix binary package and rebuild it from source.
>
Mike,
you can leave the package installed while rebuilding because OpenPKG
builds packages in a temporary area and not in the final install
location.
You can then install the "new" package using
$ openpkg -U new.rpm
If the package is not really "new" but equal to the already installed
package (you'll see conflicting files) then use
$ openpkg -U new.rpm --force
In case you're actually downgrade (backrev to) an old package use
$ openpkg -U new.rpm --oldpackage
If you still prefer to uninstall the package first breaking the
dependencies use
$ openpkg -e old --nodeps
--
[EMAIL PROTECTED], Cable & Wireless
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]