Ask Your Question

Auto dependency resolution in installing rpm

asked 2011-11-26 09:16:30 -0600

dmachop gravatar image

I built a local rpm from the source using Checkinstall. I would like to know how to enable auto dependency resolution for an rpm like 'auto apt' for Ubuntu.

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted

answered 2011-11-26 11:25:52 -0600

ZenDark gravatar image

You can use yum to resolve dependencies:

yum localinstall package.rpm

edit flag offensive delete link more


and the --nogpgcheck switch could be useful, as your package won't probably be signed.

shaiton gravatar imageshaiton ( 2011-11-26 11:30:58 -0600 )edit

It's worth noting that 'yum install' and 'yum localinstall' will do the same thing (yum can figure out if the package is a local file or not). Also, yum can (and by default in recent fedora's) ignore gpg checking local files. ;)

nirik gravatar imagenirik ( 2011-11-26 11:49:24 -0600 )edit

@nirik oh great! (I always used --no-gpg which was wrong…

shaiton gravatar imageshaiton ( 2011-11-26 12:31:44 -0600 )edit

answered 2016-09-16 00:27:42 -0600

We may use dnf command to install rpm package with dependencies. i. e. dnf install mysoftware.rpm

Run dnf command using root privilege.

edit flag offensive delete link more

answered 2011-11-26 12:09:10 -0600

sagitter gravatar image

Simply (as root):

yum-builddep package-name

edit flag offensive delete link more

answered 2012-08-22 13:00:12 -0600

PFudd gravatar image

I think the 'killer feature' of auto-apt that everyone here is missing is its ability to intercept filesystem requests, and for missing files (file not found errors) determine what package has those files and install the packages on the fly.

So, for any random program you're trying to install from source, you would do 'auto-apt run ./configure', and as configure proceeds to look for various programs and files, auto-apt can figure out what packages to get, install them, and then let configure continue.

But auto-apt isn't limited to analyzing 'configure': it's able to handle any program that tries to access files that are in known packages. Wouldn't you love it if a poorly-documented commercial program would just magically work the first time?

Anyhoo, I'd like to see auto-apt for Fedora as well. :-)

edit flag offensive delete link more

Question Tools


Asked: 2011-11-26 09:16:30 -0600

Seen: 38,168 times

Last updated: Aug 22 '12