Changes

From SME Server
Jump to navigationJump to search
signal-event yum-modify
Line 2: Line 2:  
==Adding new software ==
 
==Adding new software ==
 
New software should be installed from RPMs<br>
 
New software should be installed from RPMs<br>
Red Hat or Centos Version .el4 rpms should be compatible<br>
+
Red Hat or Centos Version .el4 rpms should be compatible for SME7, use .el5 for SME8<br>
 
Often these rpms are configured with a SME Server integration rpm.   
 
Often these rpms are configured with a SME Server integration rpm.   
   Line 31: Line 31:  
With everyone having yum repositories set up the same way, Howto authors can now use instructions like:
 
With everyone having yum repositories set up the same way, Howto authors can now use instructions like:
   −
  yum --enablerepo=dag install dansguardian
+
  yum --enablerepo=dag install packagename
      Line 38: Line 38:  
To install an RPM already on your system you can also use yum to install:
 
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/packagename.rpm
   −
To satisfy dependencies you can enable or disable other repositories using the --enablerepo or the --disablerepo option.
+
To satisfy dependencies you can enable or disable other repositories using the --enablerepo=xxx or the --disablerepo=xxx option.
 
{{Note box|msg=Using yum will run other actions such as updating server-manager menus, that rpm -Uvh will not!}}
 
{{Note box|msg=Using yum will run other actions such as updating server-manager menus, that rpm -Uvh will not!}}
   Line 47: Line 47:     
====Installing or modifying a repository====
 
====Installing or modifying a repository====
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 SME Server Developer's Guide].
+
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 see the [SME_Server:Documentation SME Server Developer's Guide].
 
After adding or modifying the yum_repositories database you will have to make sure you regenerate the configuration file using the following command:
 
After adding or modifying the yum_repositories database you will have to make sure you regenerate the configuration file using the following command:
   −
  expand-template /etc/yum.conf
+
  signal-event yum-modify
    
====Options for the yum_repositories database====
 
====Options for the yum_repositories database====
Line 57: Line 57:  
*Visible yes|no - yes displays in server manager
 
*Visible yes|no - yes displays in server manager
 
*status enabled|disabled - disabled are ignored unless specified with --enablerepo=
 
*status enabled|disabled - disabled are ignored unless specified with --enablerepo=
*Exclude - don't fetch these rpms
+
*Exclude=xxx,yyy - don't fetch these rpms
*IncludePkgs - only fetch these rpms
+
*IncludePkgs=xxx,yyy - only fetch these rpms
    
====3rd-Party Yum Repositories setup====
 
====3rd-Party Yum Repositories setup====
 
A list of repositories for SME Server is available in [[:Category:Yum Repository]].
 
A list of repositories for SME Server is available in [[: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.  
    
To reflect the changes in the database you will have to regenerate the yum.conf file:
 
To reflect the changes in the database you will have to regenerate the yum.conf file:
   −
   expand-template /etc/yum.conf
+
   signal-event yum-modify
    
{{Warning box|msg=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 break 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.}}
 
{{Warning box|msg=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 break 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.}}

Navigation menu