Re: Installing dependencies only



On Sun, 2006-03-26 at 13:23 +0100, Paul Smith wrote:
On 3/26/06, Anne Wilson <cannewilson@xxxxxxxxxxxxx> wrote:
Is it possible with yum and with only one instruction to install not a
certain package but all its dependencies?

That is the normal behaviour. You ask for one package, and if you
already have all the dependencies you will get one package. If you
haven't got them all you may find that it says it needs to install 3 or
more. It always asks permission before installing.

Thanks, Anne, but it is not what I wanted to mean: imagine that the
package x.rpm has, as dependencies, the packages y.rpm and z.rpm; in
this case, I would like to install only the dependencies, i.e., only
y.rpm and z.rpm, and NOT x.rpm.

All I can suggest, then, is to ask yum for the original package, then when it
lists the necessaries, reject the install and give a new yum command listing
the required dependency packages.

It seems a rather strange requirement, so telling the reason for the
requirement may spark of some better solution from a more knowledgeable
poster.

Taking my example above, x.rpm is not supplied by any repository;
then, a simple method to install it is

yum localinstall x.rpm

With this procedure, I will know the dependencies, which I will install before

rpm -ihv x.rpm

as "yum localinstall" is not able to install x.rpm due to the fact
that x.rpm is not signed.

Two ways of installing x.rpm plus its dependencies:

First way, doesn't involve changing any config files:
# (echo config gpgcheck 0; echo localinstall x.rpm; echo run) | yum -y
shell

(that's all one line)


Second way, involves file edits first:
Edit /etc/yum.conf and change gpgcheck=1 to gpgcheck=0
Edit all of your /etc/yum.repos.d/*.repo files and add gpgcheck=1 to any
repo entry that doesn't have a gpgcheck entry.

Then you should just be able to do:
# yum localinstall x.rpm

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Installing dependencies only
    ... You ask for one package, ... already have all the dependencies you will get one package. ... this case, I would like to install only the dependencies, i.e., only ... as "yum localinstall" is not able to install x.rpm due to the fact ...
    (Fedora)
  • Re: Linux Vs. FreeBSD
    ... > the most widely used open source apps out there, ... > has made a lot of effort towards making it easy to install. ... > system of package management, toss it and get another one. ... since the binary dependencies certainly wouldn't be any ...
    (comp.os.linux.misc)
  • RE: BAD Error Installing new Apache2 & PHP?
    ... One thing that may have gotten my dependencies in a twist is that some ... version of libc6 is what I'm trying to do. ... Do I need to remove a package - libc6 or tzdata - to get past this? ... You might want to run 'apt-get -f install' to correct these. ...
    (Debian-User)
  • RE: [SLE] Not So Fast: Linux on the Desktop
    ... > The problem with Linux is dependencies. ... > available from the SuSE disc or not and then install that package. ... One of the reasons why I like Linux, is because I can let a 6-year old ...
    (SuSE)
  • Re: Installing dependencies only
    ... You ask for one package, ... already have all the dependencies you will get one package. ... haven't got them all you may find that it says it needs to install 3 ... as "yum localinstall" is not able to install x.rpm due to the fact ...
    (Fedora)