From: rsiddall Date: Wed, 27 Jun 2007 17:57:26 +0000 (+0000) Subject: Instructions for installing Freeside using the RPM build, and on creating your own... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=6503e1133a25b8ef3bedd1a7e64487db0f6affda;p=freeside.git Instructions for installing Freeside using the RPM build, and on creating your own repository. --- diff --git a/httemplate/docs/install-rpm.html b/httemplate/docs/install-rpm.html new file mode 100644 index 000000000..1b5f44d52 --- /dev/null +++ b/httemplate/docs/install-rpm.html @@ -0,0 +1,101 @@ + + +Installation from RPM + + +

Installing Freeside from RPMs

+

Warning!

+

The RPM installation of Freeside is experimental! The instructions below may be incomplete or incorrect and are subject to change. You should only attempt to use the RPM installation if you are prepared to work around omissions and inaccuracies, and can recover data in the event of a loss.

+

Introduction

+

RPM is a build-once, install-many package manager for system management. Originally for RedHat, it is now used on a wide range of Linux distros including Fedora, SUSE, etc.

+

Well-structured RPMs include dependency information that RPM can use to warn you that additional components are required. Tools such as yum and apt-get (RPM version) can use this dependency information to download additional components from a repository and include them in the installation. This has the potential to make installing Freeside almost as easy as installing a Windows program.

+

(Check the /install and /debian directories in the Freeside tarball for scripts and notes on installing on various distros.)

+

Installing the RPM version of Freeside may not be a good idea if you plan to do development on Freeside. The RPMs may not include all the files supplied in the tarball.

+

Installation using RPM

+

Installation is much easier if you have a repository that works with a tool such as yum or apt-get. If you only have rpm and wish to use that, enter:

+
  rpm -Uvh --test freeside-1.5.7-1.noarch.rpm freeside-interface-1.5.7-1.noarch.rpm freeside-backend-1.5.7-1.noarch.rpm perl-Business-OnlinePayment-processor-version
+

Where:

+ +

The command should result in some warnings about unsatisfied dependencies. Find the corresponding RPMs and add them to the list on the command line. Keep doing this until the command results in no warnings, then issue the command one last time without the --test to actually install all the RPMs.

+

Installing the freeside RPM will install the fsinstall command line utility that you can use to finish the installation.

+

Installing using yum

+ +

At this point all the required components should be installed and the freeside user account created. You can now complete the installation with fsinstall.

+

Installing using APT

+ +

At this point all the required components should be installed and the freeside user account created. You can now complete the installation with fsinstall.

+

Finishing the installation with fsinstall

RPM does little more than installing files and creating users. To allow automated installation and upgrading, well-structured RPMs may not interact with the user. Since part of the Freeside installation is interactive, at some future date a command line utility called fsinstall will be included in the RPM to help you complete the installation. +

For the moment, just work through the standard install, ignoring the steps which are done by the RPM, i.e. installing files and creating the freeside user. The RPM does not do any steps that require entry of a password, or which have to be done after a password is specified.

+ +

Creating your own repository

+

If you can't find an APT/yum repository for your operating system, you can create your own. + +

+ At this point your web server is acting as a yum repository with a URL of http://localhost/fedora/3/ and you can proceed to install Freeside from the repository. +

On distros using older versions of yum (e.g. FC2 and earlier), you'll need to use yum-arch instead of createrepo to generate the repository metadata. yum-arch should be installed as part of the yum RPM, so there's no need to install another RPM.

+

Upgrading

+

Introduction

+ If you have an existing Freeside installation that was installed from the tarball, following the instructions for installing or upgrading from RPM may result in an operational system where the RPMs have overwritten most or all of the files installed from the tarball or CPAN. +

Upgrading using RPM

When there's a new version of Freeside available as RPM, just download the new RPMs and upgrade them:
  rpm -Uvh --test freeside-1.5.7-1.noarch.rpm freeside-interface-1.5.7-1.noarch.rpm freeside-backend-1.5.7-1.noarch.rpm
+
+

Upgrading using a repository

+ + If you installed the RPM version of Freeside from a repository, and a new version is available on the repository, then you can install the new files on your system using the package manager: +
yum update
+

or:

+
apt-get update
+

To avoid unplanned upgrades, you may wish to mark the repository containing Freeside as disabled, or remove it from your yum or apt configuration files.

+

Finalizing the upgrade using fsinstall

+

This will not perform any database upgrades, so you should refer to the tarball upgrade documentation and do any database changes by hand. (A future version of fsinstall may be able to perform the database changes needed in an upgrade.)

+ +