Setting up your RPM environment

From Crashcourse Wiki

Jump to: navigation, search

If you plan on building your own RPM files, or want to build RPM binaries from their source files, create your own (non-root) RPM-building environment in your home directory with a couple simple commands.

Pick a decent directory name -- say, rpms -- and:

$ mkdir -p rpms/{BUILD,RPMS,SRPMS,SOURCES,SPECS}

then identify this new directory as your RPM working directory by creating the file .rpmmacros containing the single line:

%_topdir      %(echo $HOME)/rpms

From now on, all of your RPM manipulation (building new RPMs, downloading and building from source) will use that directory, and you can do almost anything RPM-related you want as a regular user (short of installing those RPMs, of course).

Comments and feedback to rpjday@crashcourse.ca.

Return to Fedora_Cookbook.

Personal tools