Jump to content

Problem Installing src rpm


banjo
 Share

Recommended Posts

I have a real nOObie question this time.

 

I downloaded and installed a source rpm

called abcm2ps-3.7.11-1.src.rpm

 

The install went OK as far as I can

tell. But now I cannot find the source

anywhere.

 

Where did the source code go?

 

I suppose that this is in a tutorial

somewhere, but I can't find that either.

 

If I want to modify the source before

building it, where do I look for it to do

that? Do I have to get a tar.gz?

 

I know that I must be missing something

obvious, but I am having a brain cramp

or something.

 

A pointer to a tutorial is fine if there

is one that covers this subject.

 

Thanks in advance.

Banjo

(_)=='=~

Link to comment
Share on other sites

Easiest for sources:

rpmbuild --rebuild the.source.rpm

 

Do this as root. Then go to /usr/src/RPM/RPMS/i586/new.built.rpm

 

You'll find a fresh new rpm just for you. I would install it using

urpmi /usr/src/RPM/RPMS/new.built.rpm

 

You don't even have to go to the directory, unless of course you don't know what the rpm is called!

 

Oh, if you want to modify, you'll find them in the /usr/src/RPM/SPECS directory.

Link to comment
Share on other sites

So rebuilding the package extracts the source

from the tar.gz down in /usr/src? I guess I assumed

that installing it would do that.

 

Ah, me. So much to learn.... so little time.

 

Thanks for the info. I am not at my Linux box

right now, so I will have to try this when I get

home.

 

Banjo

(_)=='=~

Link to comment
Share on other sites

If I want to modify the source before  

building it, where do I look for it to do  

that? Do I have to get a tar.gz?

No you don't need a tar.gz.

 

See:

rpmbuild --help

rpm -help

(probably rpmbuild)has a command that'll extract ONLY. Then you can go to the /usr/src/ tree and modify the source b4 building.

Link to comment
Share on other sites

So, then all of this is owned by root?

 

And then you go in and mess around with

the source code as root and rebuild?

 

That makes me nervous. I don't like to play

around as root. It appears that this rpm system

is designed mostly for grabbing the source and

building a package as is, and not so much for folks

who want to make changes.

 

Am I still missing something?

(sorry to be such a pain....)

 

Banjo

(_)=='=~

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...