LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-29-2009, 10:57 PM   #1
mcpoon
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
Source rpm, binary rpm and source code


I am new to rpm thus I need some here. I have a src.rpm file and I have installed it using below command
rpm -ivh file.src.rpm
Then I found try to build the rpm file which is under root/BUILD/SPEC
rpmbuild -bb file.spec
After it is execute, a list of output is printed out and nothing changes in that directory thereafter.
Can someone help to explain how the source rpm or binary rpm work, where I can find the source code for the package and how the software or program will work with the source rpm?
Thank you.
 
Old 06-29-2009, 10:58 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,232

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
Can I ask why you are using src rpms?
 
Old 06-29-2009, 11:03 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Source RPMS are used to build binary rpms. They are effectively uncompiled source code in a particular format. Binary rpms are compiled packages that are platform specific, so an i386 binary is different from an x86_64 binary that is built for a 64 bit system.

Where you get stuff depend on what you want to get.
 
Old 06-29-2009, 11:03 PM   #4
mcpoon
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I need to install a program and src.rpm is what I found.
 
Old 06-29-2009, 11:08 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is in root/BUILD/RPMS ?
 
Old 06-30-2009, 09:33 AM   #6
doncrawley
LQ Newbie
 
Registered: Sep 2003
Location: Seattle, Washington
Distribution: Fedora, CentOS, Slackware, Ubuntu, Debian
Posts: 11

Rep: Reputation: 0
Installing new software

Since you're a newbie, I would strongly encourage you to use yum (Yellowdog Updater Modified) instead of trying to compile from source. yum will take care of dependencies for you and manage your software for you. Assuming you're using a Red Hat-based distro such as Red Hat, Fedora, or CentOS, yum is far and away the easiest software installation and management tool.

The yum utility is included with RHEL/Fedora/CentOS for the management of software. It is an interactive, automated system for maintaining systems using RPM. It allows you to install, update, and remove software on your computer running the RHEL/Fedora operating system. yum is a command-line utility which requires a network connection to a yum server, either locally or on the public Internet.

Using yum
  • yum y update will update all packages on your system. The y option will answer yes to all prompts such as confirmation that you want to install or update a particular package. (Use with care!)
  • yum y update [package name] will update only the specified package on your system. Yum resolves all dependencies during the update process.
  • yum y install [package name] will install the specified package on your system. Yum resolves all dependencies during the installation process.
  • yum check-update does what the name implies; it checks your machine to see if any updates need to be applied.
  • yum search [text string] will search for any packages matching the string in the description, summary, packager, and package name fields in the rpm.
  • yum deplist displays a list of all dependencies and the packages that provide those dependencies.
There are many other options available with yum. See the yum man page for details.

Adding additional yum repositories

Often, you may want to add more software sources, known as repositories. A repo that is commonly added is rpmforge. A good guide for that is here..
 
  


Reply

Tags
rpm, software, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Downloaded Wireshark source code and while make rpm got this error, kindly help pkhera_2001 Linux - Newbie 1 03-20-2008 08:09 AM
RPM vs compiling from Source Code ceci2 Linux - Enterprise 4 03-15-2005 03:58 PM
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 10:42 AM
specific source code and RPM for distro bshelton Linux - General 2 09-15-2003 08:54 PM
binary vs source RPM (and other RPM questions) calimer Linux - Software 4 06-22-2003 12:33 AM


All times are GMT -5. The time now is 04:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration