Hello list
Is it possible in any way to kernel-source rpm to go to a directory of your choice?
The context is, one is advised to build kernel sources as a normal user until you are ready to 'make install'. A source rpm installs by default into /usr/src/kernel-version which has no write permission for a normal user. And a normal user needs to do a 'su' to build there.
Parameshwara Bhat
Parameshwara Bhat wrote:
Hello list
Is it possible in any way to kernel-source rpm to go to a directory of your choice?
The context is, one is advised to build kernel sources as a normal user until you are ready to 'make install'. A source rpm installs by default into /usr/src/kernel-version which has no write permission for a normal user. And a normal user needs to do a 'su' to build there.
rpm2cpio your-kernel-src.rpm | cpio -idv
That should unpack the rpm to the directory you are currently in.
Parameshwara Bhat
Alex
Parameshwara Bhat said the following on 09/07/2004 08:58:
Hello list
Is it possible in any way to kernel-source rpm to go to a directory of your choice?
The context is, one is advised to build kernel sources as a normal user until you are ready to 'make install'. A source rpm installs by default into /usr/src/kernel-version which has no write permission for a normal user. And a normal user needs to do a 'su' to build there.
rpm -Uhv --relocate /usr/src=/tmp kernel-source-2.6.5-1.358.i386.rpm
substitute /tmp with the directory of choice. You still need to be root to install the rpm though.
Am Fr, den 09.07.2004 schrieb Parameshwara Bhat um 8:58:
Is it possible in any way to kernel-source rpm to go to a directory of your choice?
The context is, one is advised to build kernel sources as a normal user until you are ready to 'make install'. A source rpm installs by default into /usr/src/kernel-version which has no write permission for a normal user. And a normal user needs to do a 'su' to build there.
Parameshwara Bhat
Create yourself an rpmbuild environment for a normal user, like described here:
http://freshrpms.net/docs/fight/
Alexander