up vote 0 down vote favorite
share [g+] share [fb]

I installed the latest MySQL server rpm, but it provides "MySQL-server-community" instead of "mysql-server" so packages that depend on "mysql-server" don't see that mysql is installed. I just want to edit the RPM file so it provides "mysql-server" instead. How can I do that?

link|improve this question
feedback

3 Answers

This info was found in a Redhat forum, but can be adapted to other distros:

You can if it's a source RPM.
Get the srpm for that package and install it in your system.
This will get extracted in /usr/src/redhat/.
Go to the SPEC directory and edit the spec file there.
Other files will be in BUILD directory.
The script for pre-install and post-install will be in the spec file.

After that rebuild the rpm using rpm -ba specfile.

link|improve this answer
feedback

Don't bother editing it to begin with. Create a new RPM that installs nothing, requires MySQL-server-community, and provides mysql-server. You don't have to make any changes to the RPM you got, which means you don't have to worry about upgrades.

link|improve this answer
feedback

I am not sure whether this answer helps you or not. But you can use rpm rebuild to rebuild the rpm from the installed one's and build a new one with custom name.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.