3.1 Installing an RPM Package

Table of Contents Previous Next



Using yum to install Advanced Server (or its supporting components) is a simple process:
1.
Download the edb-repo installation package from:
The edb-repo RPM creates the repository configuration file (named edb-repo). The edb-repo file contains connection information for the EnterpriseDB repository. You must create this file if you are installing any or all of the following:
To enable a repository, change the value of the enabled parameter to 1 and replace the username and password placeholders in the baseurl specification with your user name and the repository password.
Modify both the [ppas94] and the [enterprisedb-tools] entries in the edb.repo file to install any of the Advanced Server 9.4 packages:
baseurl=http://user_name:password@yum.enterprisedb.com/9.4/redhat/rhel-$releasever-$basearch
baseurl=http://user_name:password@yum.enterprisedb.com/tools/redhat/rhel-$releasever-$basearch
baseurl=http://user_name:password@yum.enterprisedb.com/dependencies/redhat/rhel-$releasever-$basearch
yum search package_name
Where package_name specifies the name of a package. The repository search should return a list of available packages that are prefixed by the specified package_name.
6.
After modifying the content of the repository configuration file, you can use the yum install command to install Advanced Server or its supporting components. For example, to install the server and its core components, invoke the command:
After installing Advanced Server, you must configure the installation; see Section 3.2, Configuring an Advanced Server Installation, for details.
If you used an RPM package to install Advanced Server and its supporting components, you can use yum to perform a minor version upgrade to a more recent version. To review a list of the package updates that are available for your system, open a command line, assume root privileges, and enter the command:
yum check-update package_name
Where package_name is the search term for which you wish to search for updates. Please note that you can include wild-card values in the search term.
To use yum update to install an updated package, use the command:
yum update package_name
Where package_name is the name of the package you wish to update. Include wild-card values in the update command to update multiple related packages with a single command. For example, use the following command:
Please note that the yum update command will only perform an update between minor releases; to update between major releases, you should use pg_upgrade. For more information about using pg_upgrade, see Section 8.
The edb-repo rpm creates the edb-repo file; install this package if you are installing any or all of the following:
3.
Use yum to invoke the repository configuration package:
The -C option instructs yum not to attempt to update any repositories that exist on the host system.
4.
The repository configuration file is named edb.repo and resides in the following directory:
To enable a repository, change the value of the enabled parameter to 1 and replace the username and password placeholders in the baseurl specification with your user name and the repository password.
Modify both the [ppas94] and the [enterprisedb-tools] entries in the edb.repo file to install any of the Advanced Server 9.4 packages:
baseurl=http://user_name:password@yum.enterprisedb.com/9.4/redhat/rhel-$releasever-$basearch
baseurl=http://user_name:password@yum.enterprisedb.com/dependencies/redhat/rhel-$releasever-$basearch
6.
Use the following commands to install the yum-utils and createrepo packages:
9.
Install your preferred webserver on the host that will act as your local repository, and ensure that the repos directory is accessible to the other servers on your network. For example, you might install lighttpd:
If you are using lighttpd, you must provide a configuration file that identifies the location of the repository. For example, the configuration file might contain:
$HTTP["host"] == "yum.domain.com"{
server.document-root = "/srv/repos"
server.errorlog="/var/log/lighttpd/yum_error.log"
accesslog.filename = "/var/log/lighttpd/yum_access.log"}
For detailed information about installing, configuring and using lighttpd, visit the official project site at:
[ppas94]
name=PPAS
baseurl=http://yum.
domain.com/ppas94
enabled=1
gpgcheck=0


Table of Contents Previous Next