Page 1 of 1

Proper way to upgrade to a single package in Cauldron

PostPosted: Apr 5th, '13, 20:40
by zeke
I need the latest version of R-base (2.15) which is in Cauldron, but not MGA2 (v2.14). Because this is a production box, I don't want to upgrade it to the full Cauldron, but if I just try to install that package, I fall down a rabbit hole of dependencies that I don't have.

What is the recommended solution?

Re: Proper way to upgrade to a single package in Cauldron

PostPosted: Apr 6th, '13, 10:45
by djennings
If installing the cauldron package leads you down a rabbit hole of dependencies, then your only choice is to recompile R-base for mga2.

You can do this either by compiling the tar ball, or my preferred method which is to rebuilt the source rpm (srpm)
There is a guide at https://wiki.mageia.org/en/Packagers_RPM_tutorial

another guide which may be be more useful to you is here https://wiki.mageia.org/en/Packaging_for_beginners

there is a meta package called task-devel (I think) which will install most of what you need.
To add to the guide here are a few tips when rebuilding packages.

1. download the cauldron srpm to ~/rpm/SRPM. install it as user with. rpm -ivh rpmname.srpm
2. move to ~/rpm/SPECS. as root run the command urpmi rpmname.spec. This will install (hopefully) all the dependencies needed to compile

3. As user run rpmbuild -ba rpmname. spec
If all the build dependencies are installed it will compile and place a new rpm in ~/rpm/RPMS


Good luck

Re: Proper way to upgrade to a single package in Cauldron

PostPosted: Apr 6th, '13, 17:31
by doktor5000
djennings wrote:there is a meta package called task-devel (I think) which will install most of what you need.

If nothing has changed, it's either task-c-devel or task-c++-devel. Both install nearly the same stuff.