Tell yum that a package is installed

This is a discussion on Tell yum that a package is installed within the Redhat forums, part of the Linux category; I just built and installed iptables from source, and now I want to use yum to install some other packages that depend on iptables. But yum doesn't recognize that iptables ...

Go Back   Unix Linux Forum > Unix > Linux > Redhat

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 07:36 PM
Default Tell yum that a package is installed

I just built and installed iptables from source, and now I want to use
yum to install some other packages that depend on iptables. But yum
doesn't recognize that iptables is already installed, and it's wants
to install over it. Is there a way I can force yum to know it's
already there?

Thanks,
-Brian
Reply With Quote
  #2  
Old 08-26-2008, 08:06 PM
Default Re: Tell yum that a package is installed

mearns.b@gmail.com wrote:
> I just built and installed iptables from source, and now I want to use
> yum to install some other packages that depend on iptables. But yum
> doesn't recognize that iptables is already installed, and it's wants
> to install over it. Is there a way I can force yum to know it's
> already there?


1. Build iptables into an rpm and install the rpm (recommended)
2. Use rpm to install your other package and force nodeps

Ignoring dependencies is exactly contrary to the philosophy of yum, so
there's nothing you can do with yum that will change that, unless you
hack yum itself or, maybe, write a plugin.
Reply With Quote
  #3  
Old 08-27-2008, 08:28 AM
Default Re: Tell yum that a package is installed

Thanks, Allen. I'll look into your suggestion; I've be wanting to
learn how to create an rpm anyway.

-Brian
Reply With Quote
  #4  
Old 08-27-2008, 03:02 PM
Default Re: Tell yum that a package is installed

On Wed, 27 Aug 2008 05:28:59 -0700, mearns.b typed this message:

> Thanks, Allen. I'll look into your suggestion; I've be wanting to learn
> how to create an rpm anyway.
>
> -Brian


I think there is an option -t for tolerate command line errors, and a
yum plugin yum-skip-broken for a yum --skip-broken install

Worse case rpm --nodeps -Uhv
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:20 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger