Ask Your Question
0

Auto dependency resolution in installing rpm

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

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
1

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

ZenDark gravatar image

You can use yum to resolve dependencies:

yum localinstall package.rpm

edit flag offensive delete link more

Comments

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

shaiton gravatar imageshaiton ( 2011-11-26 11:30:58 -0500 )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 -0500 )edit

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

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

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

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
0

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

sagitter gravatar image

Simply (as root):

yum-builddep package-name

edit flag offensive delete link more
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 38,043 times

Last updated: Aug 22 '12