Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

How to make linux dowload dependencies mentioned in the requires tag in rpm spec

HI,
I have created an rpm spec file which has two require tags like :

Requires: maven >= 3.0.5
Requires: java >= 1:1.8

Open in new window

Although if any of maven or java is of lesser version the installation fails.
But how can i make it automatically download or upgrade also ?

Thanks
SOLUTION
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rohit Bajaj

ASKER

so just mentioning the require field in spec file is enough ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
so yum will automatically look for the dependencies in its configured repositories and if it finds,
It will either update it or install it.
Also one more thing i want to know is , how to see what rpms are in the yum repositories so as to specify the correct name in the require fields.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial