Difference between revisions of "SME Server:Documentation:Technical Manual:Chapter6/de"

From SME Server
Jump to navigationJump to search
m
Line 14: Line 14:
  
 
==Yum Repositories==
 
==Yum Repositories==
Yum repositories on SME Server are to be configured by the internal configuration database. Repositories are stored in the yum_repositories database. The yum configuration file, located at /etc/yum.conf holds the actual configuration and is generated using the data in the yum_repositories database.
+
Yum Repositories für den SME Server müssen durch die interne Konfigurations-Datenbank konfiguriert werden. Gespeichert werden die Repositories in der Datenbank ''yum_repositories''. Durch diese Datenbank wird die eigentliche Konfigurationsdatei ''/etc/yum.conf'', in der yum Konfigurationsdaten enthalten sind, generiert.
  
===Installing or modifying a repository===
+
===Ein Repository installieren oder ändern===
For the syntax of modifying or adding see the examples below in the 3rd-Party Yum Repositories setup section. For more details on the configuration database and how to work with it you can have a look at the [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/book1.htm Developers Guide]].
+
Für die genaue Syntax zur Installation oder Änderung von Repositories siehe Beispiele im Abschnitt 3rd-Party Yum Repositories. Mehr Details zur Konfigurations-Datenbank selbst und seiner Anwendung finden Sie im
After adding or modifying the yum_repositories database you will have to make sure you regenerate the configuration file using the following command:
+
[[:SME_Server:Documentation:Developers_Manual/de|Entwicklerhandbuch Entwicklerhandbuch]].
 +
Nach Hinzufügen oder Ändern von Repositories in der Konfigurations-Datenbank generieren sie die Konfigurationsdatei ''/etc/yum.conf'' folgendermaßen neu:
 +
/sbin/e-smith/expand-template /etc/yum.conf
  
===Options for the yum_repositories database===
+
===Optionen für die yum_repository Datenbank===
The repositories for SME Server are configured using the internal yum-repositories configuration database. There are several options that can be set for every repository:
+
Folgende Einstellungsoptionen sind für die yum_repository Datenbank verfügbar:
 +
*Visible yes|no - Mit 'yes' wird das Repository im Server-Manager angezeigt
 +
*status enabled|disabled - Mit disabled wird das Repository nur dann berücksichtigt, wenn sie '--enablerepo=' eingeben
 +
*Exclude - RPM-Pakete nicht einbeziehen
 +
*IncludePkgs - Nur diese RPM-Pakete nicht einbeziehen
  
Visible yes|no - yes displays in server manager
+
===Setup von 3rd-Party Yum Repositories===
status enabled|disabled - disabled are ignored unless specified with --enablerepo=
+
Sie finden eine Liste der verfügbaren 3rd-Party Yum Repositories unter [[:Category:Yum_Repository]].
Exclude - don't fetch these rpms
 
IncludePkgs - only fetch these rpms
 
 
 
===3rd-Party Yum Repositories setup===
 
This page once started as http://no.longer.valid/phpwiki/index.php/3rdPartyYumRepositories, but a newer list of repositories for SME Server is now located [[:Category:Yum_Repository]].
 
  
 
If you use the commands below to add 3rd party yum repositories, they will be added to the yum-repositories database, but not enabled by default, so this will not affect automatic yum upgrades. It only adds options for running yum manually. They are also set up to block you from installing RPMs that exist already in SME Server 7.0.
 
If you use the commands below to add 3rd party yum repositories, they will be added to the yum-repositories database, but not enabled by default, so this will not affect automatic yum upgrades. It only adds options for running yum manually. They are also set up to block you from installing RPMs that exist already in SME Server 7.0.

Revision as of 14:08, 24 April 2007


height=48px SME Server Handbücher

Administration
Benutzer
Entwickler

height=48px Zusätzliche Dokumentation

Technikerhandbuch
Häufig gestellte Fragen
HowTo-Anleitungen

height=48px Erweiterungen
Individuelle SME Server Erweiterungen

Kapitel 6 - Neue Software hinzufügen (Erweiterungen)

Neue Softwarepakete beinhalten bzw. basieren bevorzugt auf Paketen von RedHat EL4 und sind für den SME Server entsprechend konfiguriert. Im Namen der Pakete wird mit dem Zusatz "el4" die Familienzugehörigkeit zu RedHat EL4 signalisiert.

Erhältliche Softwarepakete

Aktuelle rpms finden Sie unter SME Contribs

Software installieren

Sie können Software für den SME Server mit der Option Software-Installation im Server-Manager installieren. Wenn Sie auf den Schalter "Einstellungen zur SW-Installtion ändern" klicken und anschließend die Option "Installation einzelner SW-Pakete" aktivieren, können Sie aus den SW-Bibliotheken RPM-Pakete installieren und deinstallieren.

Der SME Server nutzt 'yum um Software zu installieren; yum ist neuere und verbesserte Version des bekannten rpm-Befehls und verwendet "Repositories", in denen die RPM-Pakete gespeichert sind. Der große Vorteil gegenüber rpm besteht darin, das yum nicht nur Abhängigkeiten erkennen, sondern auch gleich Downloads der benötigten Pakete durchführen kann. Künftige HowTo-Anleitungen sollten das berücksichtigen und einen entsprechenden yum-Befehl integrieren, der Bezug auf das gewünschte Repository nimmt, wie z.B.:

yum --enablerepo=dag install dansguardian

Yum Repositories

Yum Repositories für den SME Server müssen durch die interne Konfigurations-Datenbank konfiguriert werden. Gespeichert werden die Repositories in der Datenbank yum_repositories. Durch diese Datenbank wird die eigentliche Konfigurationsdatei /etc/yum.conf, in der yum Konfigurationsdaten enthalten sind, generiert.

Ein Repository installieren oder ändern

Für die genaue Syntax zur Installation oder Änderung von Repositories siehe Beispiele im Abschnitt 3rd-Party Yum Repositories. Mehr Details zur Konfigurations-Datenbank selbst und seiner Anwendung finden Sie im Entwicklerhandbuch Entwicklerhandbuch. Nach Hinzufügen oder Ändern von Repositories in der Konfigurations-Datenbank generieren sie die Konfigurationsdatei /etc/yum.conf folgendermaßen neu:

/sbin/e-smith/expand-template /etc/yum.conf

Optionen für die yum_repository Datenbank

Folgende Einstellungsoptionen sind für die yum_repository Datenbank verfügbar:

  • Visible yes|no - Mit 'yes' wird das Repository im Server-Manager angezeigt
  • status enabled|disabled - Mit disabled wird das Repository nur dann berücksichtigt, wenn sie '--enablerepo=' eingeben
  • Exclude - RPM-Pakete nicht einbeziehen
  • IncludePkgs - Nur diese RPM-Pakete nicht einbeziehen

Setup von 3rd-Party Yum Repositories

Sie finden eine Liste der verfügbaren 3rd-Party Yum Repositories unter Category:Yum_Repository.

If you use the commands below to add 3rd party yum repositories, they will be added to the yum-repositories database, but not enabled by default, so this will not affect automatic yum upgrades. It only adds options for running yum manually. They are also set up to block you from installing RPMs that exist already in SME Server 7.0.

To reflect the changes in the database you will have to regenerate the yum.conf file:

 expand-template /etc/yum.conf

Template:DrawBoxWarning


Below are a few repositories, for which the configuration can be copied to the SME Server shell to install them on your server. The lines are long, but it it so you can cut and paste into your ssh client. Also note you shouldn't enable these repositories, they should just be used at the command line with "yum install", and not with "yum upgrade".

If a site has a RPM-GPG-KEY you have to install it first with a line such as.

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt


Restoring Default Yum Repositories

If you have problems with your yum setup you may have entered dud repository values

remove the current values and restore the original setting with these commands

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases

Now you have a clean install, you can re-add 3rd party repos as described above

expand-template /etc/yum.conf

and check

yum update

Using RPMs

Since SME Server is based on CentOS, the preferred way to install software is with yum, a lot of you might be familiar with its predecessor rpm. To install an RPM already on your system you can also use yum to install:

yum localinstall /path/to/filename.rpm

To satisfy dependencies you can enable or disable other repositories using the --enablerepo or the --disablerepo option.

Using yum will run other actions such as updating server-manager menus, that rpm -Uvh will not.