LinuxQuestions.org
Review your favorite Linux distribution.
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 11-08-2011, 11:23 PM   #1
anuradha jain
LQ Newbie
 
Registered: Nov 2011
Location: Bangalore
Posts: 3

Rep: Reputation: Disabled
RPM installation


hey,

i am having a problem in RPM installation. i have downloaded a source code (hello-2.7)and moved it to a 'SOURCE' sub-directory which is under a directory named 'rpmdir'. i have also written a simple spec file (hello.spec) that included the most basic information only. this hello.spec file is in a sub-directory named 'SPEC'. now please help me proceed further as i do not know what to do next. i have been doing all this as root user.

Please revert as soon as possible.

Regards-
Anuradha
 
Old 11-09-2011, 12:56 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

First of all, what are you trying? Generate a RPM file from your source code and use that to install on your (or other) systems? Or are you looking for a way to compile your source code and install it on your system only? Have a look at these links, I'm sure they'll help you.

RPM Building crash course
Some info on working with source code packages

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric
 
Old 11-09-2011, 01:07 AM   #3
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
Quote:
i have been doing all this as root user.
big problem
You never build a rpm as root .
this is for fedora but should work on CentOS
https://fedoraproject.org/wiki/How_t...an_RPM_package

if this is Red Hat ( RHEL 5 & 6 ) then please use your user name and password you set up with red hat when you bought the REQUIRED license and search " rpm build" on the rhn knowledge base
https://access.redhat.com/knowledge/search
 
Old 11-09-2011, 02:23 AM   #4
anuradha jain
LQ Newbie
 
Registered: Nov 2011
Location: Bangalore
Posts: 3

Original Poster
Rep: Reputation: Disabled
Dear Eric,

i am trying to generate RPM from source code and then use that to install on my system.... so i would be graetful if u give me a guide that describes the whole process step wise. i would not mind starting all over again.. as i am new to linux, i would like a more descriptive support.

Thanks-
anuradha
 
Old 11-09-2011, 03:13 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
Quote:

i am trying to generate RPM from source code and then use that to install on my system.... so i would be graetful if u give me a guide that describes the whole process step wise. i would not mind starting all over again.. as i am new to linux, i would like a more descriptive support.
we did
the instructions for fedora were posted
and a link that is on the fedora wiki
a bit old( for fedora ) but will work for RHEL5 and CentOS5
http://www.g-loaded.eu/2006/04/05/ho...ges-on-fedora/
 
Old 11-09-2011, 04:13 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Here's another one, more generic for all RPM based distros, and in my opinion worth reading every page. I at least learned a lot from it.

http://www.gurulabs.com/downloads/GU...GUIDE-v1.0.PDF

Kind regards,

Eric
 
  


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
RPM installation ksp009 Linux - Newbie 9 12-22-2010 12:44 PM
rpm -ihv hp_qla2x00src-8.01.07.25-1.linux.rpm during Qlogic driver installation Dennisliu Linux - Software 5 09-10-2008 05:08 PM
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 12:42 AM
RPM installation joint SUSE / openSUSE 2 10-10-2006 10:15 AM
installation of rpm shashank Linux - Software 1 04-14-2005 09:15 PM

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

All times are GMT -5. The time now is 10:49 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