Cannot configure SRPMS for redhat 9 Httpd?

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!

3 Replies

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)

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"

Thanks Sunny, Stephen.

Really appreciate it.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct