Ask Your Question
0

Will dependencies be installed by the packaged rpm ?

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

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

Comments

If you properly package the rpm, yes

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

2 Answers

Sort by ยป oldest newest most voted
1

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

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 https://fedoraproject.org/wiki/How_to...

edit flag offensive delete link more
0

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

geforce gravatar image

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

http://www.rpm.org/max-rpm/s1-rpm-dep...

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 79 times

Last updated: Feb 26 '16