Creating an RPM for a package for ease of maintenance...
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...?
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...?
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.