LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Could we bypass Mock command to unpack the source rpm file? (https://www.linuxquestions.org/questions/linux-general-1/could-we-bypass-mock-command-to-unpack-the-source-rpm-file-723111/)

just.srad 05-02-2009 05:42 AM

Could we bypass Mock command to unpack the source rpm file?
 
I would like to rebuild the fedora kernel using the source rpm file.

however when i type "rpm -i kernel-2.6.29.1-111.fc11.src.rpm".

The following error occurs as shown

Code:

warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root

But based on the book"RHCE Study Guide, 5th Edition" by Michael Jang,
page 231, i should be able to execute the able command.

Any advise would be appreciated.

Justin

knudfl 05-02-2009 06:45 AM

Well, the word 'mockbuild' is mentioned somewhere in the package.
And if you look for it, you will probably not find it.
An rpm package is mainly a cpio archive, and the archive holds an
information about, who packed it. [ user=owner :: group ] see 'man cpio'.
That may be the info which appears.

Unpack a couple of 'src.rpm's , and other non exsisting "users"
and "groups" will display as a warning only, not an error.

...... There is no mock command ! ......

I unpacked a random src.rpm, it said
warning: user mandrake does not exist - using root
warning: group mandrake does not exist - using root

A warning is an information and not an error, and in this
case it has no meaning, and is to be ignored.
.....

just.srad 05-03-2009 09:48 AM

Thanks for the reply.. i think i have more to understand the whole rpm stuff by reading up.

Appreciate it, Knudfl.

Justin


All times are GMT -5. The time now is 05:31 PM.