LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2014, 06:44 PM   #1
HWDPlinux
Member
 
Registered: Mar 2014
Posts: 32

Rep: Reputation: Disabled
Studying for LPIC... Need RPM help.


I need something explained. What is the purpose of rebuilding an rpm from source code?

The way I understand is, the only reason you need to rebuild an rpm from source code is if you have migrated an rpm from one dist of linux to a different one, which resulted in dependency problems.

Another thing, is "building a binary package from source" the same as "rebuilding a package from source"?

Can anyone let me know if I have the right idea?

Last edited by HWDPlinux; 04-27-2014 at 08:26 PM.
 
Old 04-28-2014, 12:23 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
many reasons to use "rpmbuild" to convert a standard source build into a rpm package

the main is
" the office"
a custom update needs to be pushed to the 50 + RHEL6 machines in the office

you build the custom code
Turn it into a RPM with a higher version number
move it to the local software repo
and let the office machines auto install it on the normal everyday update check

or other reasons
an example
I have been building the program " The Gimp " since 2001
it is right now just an old habit
but replacing the OpenSUSE version with MINE
has issues
the rpm dependencies in the database are "out of wack"

some programs NEED the gimp development code installed
( the SAME CODE i built from source )
so turning it into a rpm i can use the package manager to install MY build of it
and keep the package manager happy by NOT having missing dependencies
and NOT having the package manager AUTO reinstall the OS version of the program over the VERSION I BUILT .

Last edited by John VV; 04-28-2014 at 12:26 AM.
 
Old 04-28-2014, 01:16 AM   #3
HWDPlinux
Member
 
Registered: Mar 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
So that custom code you build for the new update, is that code built from the previous versions source code, with some changes made? (and the updated version number)?

As far as the Gimp example. So you are taking a program that already existed on OpenSUSE and you are changing the code, and I assume creating new config files/libraries and such. Which you then build into an rpm package that has the same name as the old gimp program but a higher version number? I assume thats how you prevent the reinstallation of the original package?
Sorry if I am way off...
 
Old 04-28-2014, 02:15 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
My own example, compiled the kernel module for a b43 driver not included in centos. I have 5 systems with that wireless card and don't want to always compile the kernel module, so an rpm is quick and easy.
 
1 members found this post helpful.
Old 04-28-2014, 03:11 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
post #3 is about right

now you do not HAVE TO do that.
But once you bass say 3 or 4 DEFAULT installed programs or common ones it gets VERY VERY complicated
locking out rpm's you do NOT want to be installed

so making sure that the rpm database is CORRECT is VERY NICE and a very GOOD idea

but
you do not HAVE TOO , it is just a very good idea too do that .
 
1 members found this post helpful.
  


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
LXer: Linux Professional Institute revises objectives for LPIC-2 and LPIC-3 Linux certification prog LXer Syndicated Linux News 0 06-18-2013 01:20 PM
LXer: Linux Professional Institute revises LPIC-2 and LPIC-3 certification programs LXer Syndicated Linux News 0 01-25-2013 06:01 AM
LPIC-1 and LPIC-2 objectives to get updated stef80 Linux - Certification 5 05-09-2012 04:43 PM
Studying for LPIC - Level 1 (101 & 102) linuxlearner17 Linux - Certification 12 10-14-2010 05:19 PM
Need some advice of studying IT koshihaku Linux - Newbie 3 09-12-2010 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 AM.

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