Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 15, 2004 2:44 am 
Offline
Newbie

Joined: Thu Jul 15, 2004 2:34 am
Posts: 3
Can anyone tell me how to reconfigure srpms of httpd for redhat 9?

Any how to links for setting up virtualmin tried every search

Thanks in advance!

_________________
---------------------------------------------
Shan


Top
   
 Post subject:
PostPosted: Thu Jul 15, 2004 7:15 am 
Offline
Senior Member
User avatar

Joined: Sun Nov 23, 2003 1:40 pm
Posts: 79
Website: http://www.whitehouse.gov/history/presidents/bc42.html
You should visit rpm.org and take a look at the RPM-HOWTO (the Mandrake RPM-HOWTO is really helpful as well.) Or read the following ....

Sunny's Absurdly Short Guide to Mucking with RPMS:

ALL OF THIS IS TO BE DONE AS A NORMAL USER. BUILDING THINGS AS ROOT IS A BAD IDEA!

1) Create a little directory structure:
cd ~
for i in rpm "rpm/RPMS" "rpm/SRPMS" "rpm/SOURCES" "rpm/BUILD" "rpm/SPECS" "rpm/tmp" ; do mkdir "$i" ; done

2) Setup your rpm configuration files:
echo "%_topdir /home/$USER/rpm" >> ~/.rpmmacros
echo "%_tmpdir /home/$USER/rpm/tmp" >> ~/.rpmmacros

3) "Install" your source RPM:
rpm -ivh httpd.src.rpm

4) Your rpm SPEC file will be in rpm/SPECS. The pristine binaries and external patches will be in rpm/SOURCES. You can change whatever you like.

5) When you are done doing your changes, you can rebuild your SRPM with the fillowing command:
rpmbuild -ba httpd.spec

6) Your new RPM(s) will be in rpm/RPMS/$arch/ and your new SRPM (containing all the chnages you made) will be in rpm/SRPMS

The End

Bill Clinton
(aka sunny)


Top
   
 Post subject:
PostPosted: Thu Jul 15, 2004 9:45 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Note that you might need to install a seperate "rpmbuild" package to get that command. In older versions of RedHat the "rpm" command did the building; this changed at some point; I can't remember whether RedHat 9 needed "rpmbuild -ba" or just "rpm -ba"

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject: onto it!
PostPosted: Fri Jul 16, 2004 3:20 am 
Offline
Newbie

Joined: Thu Jul 15, 2004 2:34 am
Posts: 3
Thanks Sunny, Stephen.
Really appreciate it.

_________________
---------------------------------------------

Shan


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: wolfsoft and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group