LinuxQuestions.org
Register a domain and help support LQ
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-05-2006, 05:36 PM   #1
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Rep: Reputation: 0
Install source rpm package


Hi there,

I run RHEL 4, how do install source rpm package ?

I downloaded vsftpd_2.05.src.rpm , I need to know the steps to install this inot Linux box
 
Old 04-05-2006, 08:13 PM   #2
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
first run the command as su:
rpmbuild --rebuild vsftpd_2.05.src.rpm

after this command runs, it will write a file(s) to usr/src/redhat/RPMS/arch
where "arch" is i386 or i686.

go to the /usr/src/redhat/RPMS/i386(or i686, where ever the rpmbuild command wrote) and install the file,
rpm -ivh vsftpd_2.05.i#.rpm (where # is either i386 or i686) if vsftpd is not on system
or
rpm -Uvh vsftpd_2.05.i#.rpm (where # is either i386 or i686) if vsftpd is on your system and you want to update it

Good Luck,
John
 
Old 04-06-2006, 11:13 AM   #3
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your quick reply,

I try to run this command :rpmbuild --rebuild vsftpd_2.05.src.rpm, iam getting command not found error, ? do I need to install rpmbuild package first ?
 
Old 04-06-2006, 12:09 PM   #4
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
Yes, you need to install rpm-build package first.
 
Old 04-06-2006, 12:11 PM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Should think so.

Another possibility is that rpmbuild is not on your path, could check this with 'echo $PATH'. If it isn't on path remedy this by finding the path to rpmbuild, say /path/to/bin/rpmbuild, and adding this to path by putting:
export PATH=$PATH:/path/to/bin
in .bash_profile, I should think.
 
Old 04-07-2006, 10:58 AM   #6
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I am sure the rpm-build is ont installed, I was in rpmfind.net site, the only rpm-build package I can find is for redhat linux 9, I have RHLE 4 on my system. Can I install Redhat9 or Fedora RPM package on Redhat enterprise linux 4 box ?


Can I install rpm source file using rpm -ba command ?


Thanks,
 
Old 04-07-2006, 11:13 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Don't you have any RHEL installation discs? It would be easier to install rpmbuild and vsftpd from these than trying to install Redhat 9 or Fedora Core rpms. Also if you paid for RHEL then you can install them from RHN.
 
Old 04-07-2006, 02:45 PM   #8
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
rpm-build-4.3.3-7_nonptl.i386.rpm can be found on disc 3 of RHEL4 installation discs or at the following website:
http://www.math.ias.edu/PU_IAS/data/.../i386/?C=M;O=A

vsftpd-2.0.1-5.EL4.3.i386.rpm can be found on disc 2 of the RHEL4 source discs or at the above website.

Hope this helps,
John
 
  


Reply


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
Installed a package via rpm YaST, now overwrite-upgrade to new with source? hgb SUSE / openSUSE 3 11-14-2005 02:13 AM
Expand an Source RPM Package louisb Linux - Enterprise 5 07-06-2005 11:37 AM
Debian: Problem installing 'Source RPM package' driver for winmodem Steerpike_jhb Linux - Newbie 8 03-17-2005 04:33 AM
how to make rpm package from source tarball? demmylls Linux - General 2 03-10-2004 12:31 PM
What is the name of the package (rpm/source) containing ./confiugre? Rampage2884 Linux - General 5 05-19-2002 06:34 AM


All times are GMT -5. The time now is 09:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration