LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-26-2009, 12:22 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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
 
Old 11-26-2009, 12:42 PM   #2
18Googol2
Member
 
Registered: Oct 2008
Distribution: FreeBSD, RedHat, Centos, Solaris, AIX
Posts: 34

Rep: Reputation: 17
checkinstall is what you need.
 
Old 11-26-2009, 12:49 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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
 
Old 11-26-2009, 01:04 PM   #4
18Googol2
Member
 
Registered: Oct 2008
Distribution: FreeBSD, RedHat, Centos, Solaris, AIX
Posts: 34

Rep: Reputation: 17
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

Last edited by 18Googol2; 11-26-2009 at 01:06 PM.
 
Old 11-26-2009, 01:11 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi 18Googol2

Thanks for yr reply :-)

BRGDS

Alex
 
Old 11-26-2009, 02:04 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
.....
 
Old 11-26-2009, 02:46 PM   #7
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Knudfl

Does this mean that the FC10 repos will no longer exist in 50 days... ??

BRGDS

Alex
 
Old 11-26-2009, 03:04 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/
.....

Last edited by knudfl; 11-26-2009 at 03:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while creating RPM package kavinsiva Linux - Newbie 3 08-21-2009 06:54 AM
Creating RPM Package without sources, building etc prakashpms Linux - Software 1 08-27-2008 02:19 PM
problems in creating a rpm package gobi_dgm Linux - Software 1 09-18-2006 05:28 AM
LXer: Ease package management with SUSE's y2pmsh LXer Syndicated Linux News 0 02-17-2006 05:46 AM
Creating an RPM package? WeNdeL Linux - Software 3 03-05-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration