Go Back   Singapore Web Hosting Talk > LEARNING CENTER > Others

Others Other guides/howtos.

Reply
 
Thread Tools
Old 29-07-2004, 22:01   #1
shawnho
SGWHT Premium Member
 
Join Date: 24-07-2003
Location: Singapore
Posts: 1,541
shawnho is a jewel in the roughshawnho is a jewel in the roughshawnho is a jewel in the roughshawnho is a jewel in the rough
HOWTO - Build RPM under normal user

This guide is for those who like to build RPM using normal system user instead of root user.

Here we go...

Step 1: Login under your user account using SSH.

Step 2: You need to create a mirror image of the main RPM directory in your account. I will use rpmbuild as the main directory and you are free to use any directory name though.
Code:
   
mkdir -p $HOME/rpmbuild/SOURCES
mkdir -p $HOME/rpmbuild/SPECS
mkdir -p $HOME/rpmbuild/BUILD
mkdir -p $HOME/rpmbuild/SRPMS
mkdir -p $HOME/rpmbuild/RPMS
mkdir -p $HOME/rpmbuild/RPMS/i386
Step 3: Finally create a .rpmmacros in your home directory so that the RPM software will know where is your main RPM directory.

Code:
echo "%_topdir $HOME/rpmbuild" >> $HOME/.rpmmacros
You are done ;)


HOWTO courtesy of Choon
shawnho is offline   Reply With Quote

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT +8. The time now is 13:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright (C) 2002-2015 Brought to you by Singapore Web Hosting Talk (SGWHT). All Rights Reserved.