Re: depenancy problem: prevent yum from downloading a package I already have



Rahul wrote:
Matt Giwer <jull43@xxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:480d6535$0$5738$4c368faf@xxxxxxxxxxxxxx:


Obsolete does not mean useless or that it makes errors.

True. But sometimes one needs features that have only been added to the latest version.

If you can find an rpm of the newest version use yum to install
it with --nogpgcheck and localinstall. I guess if you can create your own rpm
package from what you have installed that would work too.

Thanks Matt! Those are new ideas for me to keep in mind the next time I run into a similar problem (I'm sure I will since pushing the latest stable versions does not seem to be RHEL's forte; I know Fedora is a better alternative but....)

But if you insist, get the original package you installed, let
yum do its thing which will create an installation record. Then reinstall the latest
version.


Another nice idea! Pretty similar to what I did finally.


Yum keeps a record of what it has installed. It does not check
the system for what has been installed by something else.


But why does yum not allow options of the sort:

(1) Allowing the user to tell the yum package manager: I've XXX installed at location yyy.

Well, that's not a yum problem, per se. It's an RPM problem, on which yum is built. And one can, in fact, build a fake, placeholder RPM for just that purpose.

It's just tricky to maintain such packages dependencies. What version of graphical libraries did your binary use? Did its binaries go where required by other tools? Does it have init scripts? What users need to be created? Where does its documentation and configuration files go? When you update it, how do you import old databses to new formats? These aren't such big problems for gnuplot, but for db4 or Apache or MySQL or zlib, it's an adventure.

You can override it, with RPM. Several of us have mentioned the 'yum --downloadonly' option, and the 'rpm -U --force' option.

(2) --ignore the depedancy on package xxx even if *you* (yum) think it is needed and absent.

Not allowing the user to do these things seems to be against the usual Linux assumption that the user knows best what he's asking for (even if he's making a bad coice!)

But, the user *CAN* do these things. It just takes using yum download tools, and using RPM directly!

The lack of such options (in my naiive mind) only seems to tie down a user to a particular package manager. The ability to use yum / rpms / source-makes on a per situation basis wuld seem more pragmatic. I strongly suspect there are implementation issues I'm totally ignorant of though! Just my curiosity.....

I've dealt with this in the past. Yes, RPM does centralize the information, but merging the information is a flipping nightmare without that central control. I think RPM, and Debian's '.deb' format, were written by people with an appreciation for how awkward simply assumeing a component is there can be. Many open source authors make very, very different assumptions about where things belong. (Dan Bernstein, author of qmail and djbdns, comes to mond!) These tools do not play nice with others unless force everyone to work with some sorts of standards: RPM provides many of these standards.
.



Relevant Pages

  • Re: ATI video comes out of the closet
    ... It can be done with RPM, but you have to know what you are ... I could see having a plugin to yum that would allow it. ... You can ignore the package manager all together, ... want to build custom menu items for each version so you know what ...
    (Fedora)
  • Re: Simple, but daunting query -> Post Installation
    ... Does anyone know a pop3 program that has an rpm associated with it? ... but daunting query -> Post Installation ... package management a little easier. ... Most people are now using either yum or up2date now. ...
    (Fedora)
  • Re: help required for debian refugee!
    ... >> have bought two books but they both rely on using X based tools and the ... >> i'd appreciate any help RE installation and configuration of packages. ... >> on the FC4 machines i think i will be using yum. ... > Use rpm for this. ...
    (linux.redhat)
  • Re: Fedora 5 and Wireshark
    ... Unfor, the site doesn't give ... don't you just install it using the package manager? ... rpm is the package manager. ... Many people prefer to use yum. ...
    (comp.os.linux.setup)
  • Re: A Problem using yum on Linux Fedora Core 4
    ... > required to run yum. ... there is something wrong with your python installation. ... That directory and those files are placed there by the yum rpm. ... home site of the package. ...
    (comp.os.linux.setup)