Ask Your Question

Will dependencies be installed by the packaged rpm ?

asked 2016-02-26 09:27:04 -0500

Hemanth Kumar gravatar image

So if i compile and install the dependencies needed for a program(before building rpm in my system), and later package an rpm for the main program.And if that rpm is installed in a fresh system(where dependencies are not installed) will it pull the dependencies automatically? OR the program installed with that rpm won't function because of the missing dependencies ? How does this works ?

edit retag flag offensive close merge delete


If you properly package the rpm, yes

bodhi.zazen gravatar imagebodhi.zazen ( 2016-02-28 12:57:46 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-26 09:48:53 -0500

aeperezt gravatar image

When you build an rpm package you must include the require build dependency and running dependency, for example if you program is wrote on C your will require gcc to build it but not to run it. I you program require a library that is on the list of Fedora packages no issue if there is a library requirement that is not on Fedora packages then you have to build a rpm for that library so it will be include on Fedora.

Dnf will read the rpm package and will install all require libraries or programs needed in order for your program to run.

You should read

edit flag offensive delete link more

answered 2016-02-26 12:58:45 -0500

geforce gravatar image

fedora rpmbuild uses autorequires (doesn't work for python programs).

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-26 09:27:04 -0500

Seen: 86 times

Last updated: Feb 26 '16