Jump to content

krename


neddie
 Share

Recommended Posts

I just realised that I haven't got krename installed, and then when I tried to urpmi it I realised that it's not in the repositories any more. What happened, why did it go? On further looking, I found it in contrib/backports but I'm a bit wary of mixing released stuff and backported stuff together, so I left it.

 

Instead I found gwenrename, which is kind of ok but not quite as powerful as krename, with not quite as many options for building the filenames. And it seems I can only launch it from inside konqueror, I can't just type gwenrename to launch the gui. A bit odd, no?

Link to comment
Share on other sites

Download the source rpm, krename-3.0.14-1.src.rpm, to your home directory from here:

 

http://www.krename.net/Stable.6.0.html

 

The open a console and as root run:

 

# rpmbuild --rebuild krename-3.0.14-1.src.rpm

 

That will automatically build a krename rpm for from the source and dump it in /usr/src/rpm/RPMS/i586. It will also build a "debug" rpm that you don't need. Install the krename rpm by double clicking on it and entering the root password when prompted. Did this myself and it built and installed fine without errors.

Link to comment
Share on other sites

I too thank you for that handy bit of info Pmpatrick. :thumbs:

Now I feel happier about trying src.rpms that I have seen for an application when there wasn't one in straight rpm.

Often wondered how to use them but wasn't game. :D

 

Cheers. John.

 

A followup.

I just downloaded the krename from Mandriva and even if it was from the backport it doesn't matter because I tried it and it works aok with NO problems.

 

JB.

Edited by AussieJohn
Link to comment
Share on other sites

Yes. It's actually likely safer (and always easier) to use packages from the /backports repositories than to rebuild a .src.rpm yourself.

 

The /backports repositories are expressly intended to be used with a normal 2007 Spring system, which is why they're inside the same tree :). Using /backports is not at all as dangerous as putting Cooker packages into a regular system. We don't officially support /backports packages, but this is just a precaution...in practical terms, they're usually very safe to use.

Link to comment
Share on other sites

Thanks for the info, that's helped me understand the backports a bit better. So would I be right in thinking that this was an oversight that krename didn't make it into the "release" for Spring, and that instead of adding it later into "release" or "updates", it got put into "backports" instead? So release for stuff that came out at release time, updates for security fixes / bug fixes for stuff in release, and backports for stuff that came out later, or new major versions (and the stuff they depend on, I guess)?

 

Seems like there's quite a lot of stuff in contrib/backports, but then contrib is enormous anyway so I guess that could make sense.

 

And a question about that rpmbuild command - I assume that does the same as a configure and make to compile it all, so you'd need to have all the devel libraries installed too. So it could get kind of interesting if the compile needs a different version of some devel library to link against?

Link to comment
Share on other sites

neddie, yes, that's exactly right.

 

.src.rpm's include information about the -devel packages they need to build. If you try and build one without the necessary -devel packages installed, it will refuse and tell you. If you do 'urpmi file.src.rpm', it will install all the necessary dependencies to build the package (which is confusingly different from the normal behaviour of urpmi, admittedly, but on the other hand is really useful :>)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...