1 Tar archive installation as RPM:
3 These instructions are for tar packages, which have spec file.
7 2. Make sure you can build rpms:
9 In RedHat systems you should have at least packages rpm and rpm-build
10 installed to build rpms. If they are, root should be able to build
11 rpms, but if you don't have accesss to root account in your system or
12 you just don't want to use it, you can also setup rpm build
13 environment for some other account. See SETTING UP RPM BUILD
14 ENVIRONMENT in this file.
16 3. Build binary rpms from the tar archive:
18 It could be done with command:
20 rpm -tb package.tar.gz
24 If build succeed, rpm printed one or more lines near the end of build
25 proccess where reads something like this:
27 Wrote: /path/to/rpmbuildroot/RPMS/arch/package-version.arch.rpm
28 Wrote: /path/to/rpmbuildroot/RPMS/arch/package-subpkg-version.arch.rpm
30 Those lines tell you where your fresh binary rpms are located. Install
31 or upgrade them by running command:
33 rpm -Uhv /path/to/rpmbuildroot/RPMS/arch/package-version.arch.rpm
35 for each RPM file you want to install or upgrade.
40 SETTING UP RPM BUILD ENVIRONMENT
41 Create file .rpmmacros in your home directory and put following line into it:
43 %_topdir /your/homedir/some/dir
45 where /your/homedir/some/dir is a directory which you have write
46 permissions to. Then make these subdirectories into that dir (<arch> is
47 your architecture. For Intel based systems it is usually i386):