Building binary RPM packages from nosrc (or src) RPMs


Generate ~/.rpmmacros

%packager Your Name <your at mail.address>
%_topdir /home/username/rpmbuild

Make working directories

$ mkdir ~/rpmbuild
$ mkdir ~/rpmbuild/SPECS
$ mkdir ~/rpmbuild/SOURCES
$ mkdir ~/rpmbuild/BUILD

Install nosrc (or src) RPMs

$ rpm -i foo-0.1.2-3.nosrc.rpm

Check file lists

$ less ~/rpmbuild/SPECS/foo.spec

If some files are not found in ~/rpmbuild/SOURCES, visit the web site of URL header in spec file and get them into the directory of ~/rpmbuild/SOURCES.

Build binary package

$ rpmbuild -bb ~/rpmbuild/SPECS/foo.spec


Back toInstall Memo - Fedora


MATSUURA Takanori
t.matsuu%gmail.com (Please change the mark "%" to "@")

Valid XHTML 1.1! Valid CSS!