| 1 | {{{ |
| 2 | #!html |
| 3 | <p>Building an OpenVPN binary RPM package requires these RPM prerequisites:</p> |
| 4 | <ul> |
| 5 | <li><strong>openssl</strong></li> |
| 6 | <li><strong>openssl-devel</strong></li> |
| 7 | <li><strong>lzo</strong></li> |
| 8 | <li><strong>lzo-devel</strong></li> |
| 9 | </ul> |
| 10 | <p>The <strong>openssl</strong> package is almost always installed by default on Linux distributions. The <strong>openssl-devel</strong> package is almost always available on Linux distributions, but is sometimes not installed by default. The <strong>lzo</strong> and <strong>lzo-devel</strong> packages are usually included in more recent Linux distributions but must be installed manually. See the <a href="http://dag.wieers.com/rpm/packages/lzo/">Dag Wieers</a> site for a comprehensive set of LZO RPMs for Red Hat and Fedora.</p> |
| 11 | <p>Once the prerequisite binary RPMs are in place, building an OpenVPN binary RPM is quite straightforward:</p> |
| 12 | <blockquote> |
| 13 | <pre><strong>rpmbuild -tb [OpenVPN .tar.gz file] </strong></pre> |
| 14 | </blockquote> |
| 15 | <p>You will see a lot of lines of output as <strong>rpmbuild</strong> compiles OpenVPN, but check near the end of the output for a line which looks like this:</p> |
| 16 | <blockquote> |
| 17 | <pre>Wrote: /usr/src/packages/RPMS/i586/openvpn-2.0_rc18-1.i586.rpm</pre> |
| 18 | </blockquote> |
| 19 | <p>This tells you where <strong>rpmbuild</strong> wrote the binary RPM file. Now, use:</p> |
| 20 | <blockquote> |
| 21 | <pre><strong>rpm -ivh [OpenVPN .rpm file] </strong></pre> |
| 22 | </blockquote> |
| 23 | <p>to do a fresh install of OpenVPN, or</p> |
| 24 | <blockquote> |
| 25 | <pre><strong>rpm -Uvh [OpenVPN .rpm file] </strong></pre> |
| 26 | </blockquote> |
| 27 | <p>to upgrade an existing installation.</p> |
| 28 | }}} |