Changes

From SME Server
Jump to navigationJump to search
m
signal-event yum-modify
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:
 +
signal-event yum-modify
   −
===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===
+
Falls Sie gemäß der u.a. Befehle 3rd-Party Yum Repositories hinzufügen, sind diese nicht automatisch aktiviert, um die SME Upgrade-Funktion nicht zu gefährden. Außerdem werden bereits auf dem SME installierte RPM-Pakete geblockt und nicht erneut installiert. Gewünschte Software aus 3rd-Party Repositories ist also immer manuell zu installieren.
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.
+
Damit Ihre Einstellungen gespeichert werden, muss die Konfigurationsdatei ''yum.conf'' neu generiert werden:
   −
To reflect the changes in the database you will have to regenerate the yum.conf file:
+
signal-event yum-modify
   −
  expand-template /etc/yum.conf
+
{{Warning box|type=Warnung|Stellen Sie sicher, dass Sie niemals im Server-Manager ein 3rd-Party Repository aktivieren. Dadurch steigt das Risiko, dass bei einem Software-Upgrade auf eine neue SME-Version Ihr System in einen instabilen Zustand gerät. Installieren Sie Softwarepakete aus 3rd-Party Repositories immer über die SME Server Shell mit der yum Option ''--enablerepo=reponame''.}}
   −
{{drawBoxWarning|content=Be sure to never set the status of one of these repositories to enabled as this imposes the risk of installing newer versions SME Server core packages which might brake your server. If you want to install software from them you can enable them using the SME Server shell and the yum option --enablerepo=reponame.}}
      +
Unten sind einige Repositories aufgeführt, deren Konfiguration Sie über die SME Server Shell auf Ihren Server kopieren können. Die Zeilen der Konfiguration sind zwar lang. Sie können aber Fehler vermeiden, indem Sie einfach die Zeilen über Ihren SSH-Client auf Ihren Server kopieren.
   −
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".
+
Falls ein RPM-GPG-KEY Schlüssel erforderlich sein sollte, müssen Sie ihn mit einem Befehl wie folgt installieren:
 
  −
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
 
  rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
    +
===Voreingestellte Yum Repositories wieder herstellen===
   −
===Restoring Default Yum Repositories===
+
Falls Sie nach Hinzufügen verschiedener Einträge in Ihrer Yum-Konfiguration Probleme haben sollten, können Sie die voreingestellte Konfiguration folgendermaßen wieder herstellen:
 
  −
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/
 
  cd /home/e-smith/db/
Line 56: Line 54:  
  /etc/e-smith/events/actions/initialize-default-databases
 
  /etc/e-smith/events/actions/initialize-default-databases
   −
Now you have a clean install, you can re-add 3rd party repos as described above <br>
+
Anschließend haben Sie wieder eine "Erst"-Installation und können darauf basieren erneut gewünschte 3-rd-Party Repositories wie oben beschrieben hinzufügen.<br>
   −
  expand-template /etc/yum.conf
+
  signal-event yum-modify
   −
and check
+
und prüfe
    
  yum update
 
  yum update
   −
==Using RPMs==
+
==Verwendung von RPM-Paketen==
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.
+
Seit der Umstellung des SME Servers auf CentOS-Basis ist ''yum'' die bevorzugte Methode, Software zu installieren. Bisher an RPM gewöhnte Administratoren können damit anstelle des rpm-Befehls Software mit yum installieren:
To install an RPM already on your system you can also use yum to install:
      
  yum localinstall /path/to/filename.rpm
 
  yum localinstall /path/to/filename.rpm
   −
To satisfy dependencies you can enable or disable other repositories using the --enablerepo or the --disablerepo option.
+
Yum ist in der Lage, Abhängigkeiten direkt aufzulösen und fehlende RPM-Pakete aus den Reositories nachzuinstallieren. Das können Sie mit den Schaltern ''--enablerepo'' oder ''--disablerepo'' entsprechend einstellen.  
   −
Using yum will run other actions such as updating server-manager menus, that rpm -Uvh will not.
+
Außerdem ist yum in der Lage, auch andere Aktionen wie z.B. die Akualisierung der Server-Manager Menüs zu unterstützen, was rpm nicht leistet.

Navigation menu