Mason Firewall
 
Search:

Home    Articles    Authors    Links    Useful Tips    Polls    HOWTOs   
Browsing Issue # 4  
Monthly Notifications


Issue 4 Articles
Sudo and other ways to avoid root!
Interview With John Ousterhout - Author of Tcl/TK
Netcat - Network Connection Made Easy
GPL and MPL explained
Linux Security Tips for Redhat Distribution
Data file formats for TCL scripts

Latest Tips
Adding the hostname to the XTERM titlebar - dead simple!
Build RPMs as a User
Netstat - What is it good for ?

P o l l  Q u e s t i o n
Where are you most likely to find a Linux answer?

Mailing Lists
Newsgroups
Linux Document Project
Email the Author
Man Pages
Paid Support
Books/Magazines
Web Ezines
Linux User Groups

   [ Results ]


Feedback

 

Useful Tip # 7

(New)    Print Tip

To build a rpm as a user and not as a root you need to setup a similar directory structure as your system requires. Under Caldera the RPMs are built under /usr/src/OpenLinux. Under Redhat it's under /usr/src/redhat.

The above directories contain the following subdirectories

        ./RPMS
        ./RPMS/i386
        ./SOURCES
        ./SPECS
        ./SRPMS
        ./BUILD

First create a directory that will be your base RPM environment. I've set it up this way.

        mkdir /home/username/myrpms

Edit the file /home/username/.rpmmacros with your favorite editor to include the line

        %_topdir /home/username/myrpms

Thank to Tom Rothamel for this tip.


Other Tips


If you have a useful tip you want to share with the community please let us know at: suggestions@www.linuxmonth.com
0.4.0 Copyright to all articles belong to their respective authors.
Everything else © 2024 LinuxMonth.com
Linux is a trademark of Linus Torvalds.
Powered by Apache, mod_perl and Embperl.