Creating an RPM for a package for ease of maintenance...
Hi Forum
Considering I Install Fedora 10 ( according to Phoronix FC 10 is faster than FC 12 ) 64 bits in a box, and I plan to install some packages compiled from source ( generally I avoid using precompiled packages, most of the stuff I use is Heavy number crunching so I prefer to compile from source using icc/ifort/mkl from intel, instead of the more usual gcc ) like Scilab, Octave/QtOctave, Paraview, GMSH, etc... instead of using the traditional ./configure make install scheme, I was wandering if one can make a binary rpm of these, that will allow me to simply rpm -e <whatever>.rpm in case I plan to use a different version ot the package... Is there some sort of src2rpm thing for Fedora...? BRGDS Alex |
checkinstall is what you need.
|
Hi 18Googol2
Assuming I ran #cmake <what/eve/r>&&make&&make install, how do I use checkinstall to safely remove all the files added into /usr/local/bin /usr/local/lib /usr/local/share... etc...? In case I want to remove the package...? BRGDS Alex |
The installation and removal procedures are well written in the doco:
http://www.asic-linux.com.mx/~izto/c...ll/docs/README But in short, checkinstall build the .rpm package from source, then you can add the application by 'rpm -i', and in case you need to remove the package, just run 'rpm -e' as usual :) PS: remember to not run 'make install', instead cmake && make && checkinstall :) |
Hi 18Googol2
Thanks for yr reply :-) BRGDS Alex |
Short : Checkinstall uses 'make install' and
keeps track of the locations to create a package. Some of the software, you use, are available as SRC.RPMS which includes patches and a "spec" file, used to build rpm packages. The file.spec can often be edited to your requirements. 10,000 packages source, Fedora 12 http://download.fedora.redhat.com/pu.../source/SRPMS/ And 10,000 , Fedora 13 Rawhide : http://download.fedora.redhat.com/pu.../source/SRPMS/ .. all most often ready to build with 'rpmbuild -bb name.spec' on Fedora 10 or 11. Notice : Fedora 10 is left unsupported, ( no more updates ) in about 50 days. ..... |
Hi Knudfl
Does this mean that the FC10 repos will no longer exist in 50 days... ?? BRGDS Alex |
The repo's will be moved to the archive after some time.
You will find out when you get stopped, and then have to disable the ' update.repo '. And some months later have to change URL to the "( old ) archive". The Fedora 9 support / update stopped four months ago. and it's still here http://download.fedora.redhat.com/pu...inux/releases/ Updates ... ( no Fedora 9, empty. ) http://download.fedora.redhat.com/pu...linux/updates/ Fedora 7 + 8 http://archives.fedoraproject.org/pu...inux/releases/ Archive link : http://archives.fedoraproject.org/pu.../fedora/linux/ ..... |
All times are GMT -5. The time now is 07:23 AM. |