0

Hello I'm using Red Hat Enterprise Linux Server 6.2, I'm having issue installing package in via terminal.

I already have packages in specific folder including the dependencies.
For example, when i try this command. example:

yum install package.1.0.1.el6.i686.rpm

It will output something like this:

Error: Package: package.1.0.1.el6.i686.rpm
Requires: libpackage1.1.1.el6.i686.rpm

The packages required packages was already in the same folder. When I try using GUI it successfully installing with the dependencies required. I'm just trying to practice installing via terminal so some servers don't use GUI.

Thanks

2
  • 1
    So what is your question? Commented Feb 17, 2016 at 13:49
  • how to automatically install the dependencies in yum Commented Feb 17, 2016 at 14:09

1 Answer 1

1

yum will not automatically look in the local directory for dependencies - it will look at it's configured repositories to resolve dependencies. Is there a reason you can't use the standard repositories and pull dependencies from the network?

If you do have a complete set of dependencies, you can use rpm --aid to install a package and dependencies from a local directory, or you can play around with yum localinstall if that functionality hasn't been deprecated.

2
  • So in other word I need to install all dependencies manually? Commented Feb 17, 2016 at 14:10
  • No. yum should take care of dependencies for you without you having to download them, if you're using the Red Hat repositories. rpm --aid will try to pick up the dependencies it needs from the local working directory and install them for you. Commented Feb 17, 2016 at 14:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.