Difference between revisions of "Check4updates"

From SME Server
Jump to navigationJump to search
 
(16 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
[mailto:stephdl@de-labrusse.fr[[User:stephdl|Stephane de Labrusse aka stephdl]]]<br />
 
[mailto:stephdl@de-labrusse.fr[[User:stephdl|Stephane de Labrusse aka stephdl]]]<br />
 
=== Version ===
 
=== Version ===
{{ #smeversion: smeserver-check4update }}
+
{{ #smeversion: smeserver-check4updates }}
  
 
=== Description ===
 
=== Description ===
Check4update is a contrib which regularly checks the determined repositories and send email to the admin, for informing him of all new rpms that need an update
+
Check4updates is a contrib which regularly checks the determined repositories and send email to the admin, for informing of all new rpms which need an update.
  
 
=== Requirements ===
 
=== Requirements ===
You need to enable [[stephdl]] repository
+
You need to enable [[stephdl]] repository.
  
 
=== Installation ===
 
=== Installation ===
 +
 +
<tabs container><tab name="For SME 10">
 +
 +
Install in the usual way:
 +
 +
yum install smeserver-check4updates --enablerepo=smecontribs
 +
</tab><tab name="For SME 9">
 
This contrib is currently held in an external non default repository. You must first configure the stephdl repository on your SME server by following the steps here [[stephdl]] (if not already configured).  
 
This contrib is currently held in an external non default repository. You must first configure the stephdl repository on your SME server by following the steps here [[stephdl]] (if not already configured).  
  
Line 20: Line 27:
 
If you receive no output then the repo is not configured on your SME server.
 
If you receive no output then the repo is not configured on your SME server.
  
Then run the following commands to install the Check4update contrib on your SME Server.<br />
+
Then run the following commands to install the Check4updates contrib on your SME Server.<br />
 +
 
 +
yum --enablerepo=smecontribs install smeserver-check4updates
 +
You have to set the repositories you want to check, you must enabled them before as it is asked [http://wiki.contribs.org/Category:Yum_Repository on this page]<br />
 +
 
 +
'''Repositories have to be separated by a coma ',''''<br />
 +
 
 +
for example
 +
config setprop check4updates repositories fws,stephdl
 +
 
 +
Then activate the database changes as follows:
 +
signal-event post-upgrade;  signal-event reboot
 +
or if you do not want to restart the server, simply do
 +
signal-event console-save
 +
 
 +
</tab>
 +
<tab name="For SME 8">
 +
This contrib is currently held in an external non default repository. You must first configure the stephdl repository on your SME server by following the steps here [[stephdl]] (if not already configured).
  
'''for sme8 or sme9'''
+
You can check the repo status as follows
  yum --enablerepo=stephdl install smeserver-check4update
+
  db yum_repositories show stephdl
 +
If you receive no output then the repo is not configured on your SME server.
  
 +
Then run the following commands to install the Check4updates contrib on your SME Server.<br />
 +
 +
yum --enablerepo=smecontribs install smeserver-check4updates
 
You have to set the repositories you want to check, you must enabled them before as it is asked [http://wiki.contribs.org/Category:Yum_Repository on this page]<br />
 
You have to set the repositories you want to check, you must enabled them before as it is asked [http://wiki.contribs.org/Category:Yum_Repository on this page]<br />
  
Line 30: Line 58:
  
 
for example
 
for example
  config setprop check4update repositories fws,stephdl
+
  config setprop check4updates repositories fws,stephdl
  
 
Then activate the database changes as follows:
 
Then activate the database changes as follows:
Line 36: Line 64:
 
or if you do not want to restart the server, simply do
 
or if you do not want to restart the server, simply do
 
  signal-event console-save
 
  signal-event console-save
 +
yum --enablerepo=stephdl install smeserver-check4updates
 +
 +
</tab>
 +
</tabs>
  
 
===Usage===
 
===Usage===
  # config show check4update
+
  # config show check4updates
   check4update=configuration
+
   check4updates=configuration
 
     emailaddress=admin-yum
 
     emailaddress=admin-yum
 
     excludes=
 
     excludes=
Line 45: Line 77:
 
     repositories=
 
     repositories=
  
 +
for example, this is mine configuration (some rpm must be excluded from epel)
 +
 +
check4updates=configuration
 +
    emailaddress=admin-yum
 +
    excludes=GeoIP,dar,libdar,oidentd,perl-Net-Server,perl-Razor-Agent,php-pear-Auth-SASL,pkcs11-helper,pptpd,rssh,php-horde-horde,proftpd,php-pear-Net-LDAP2
 +
    frequence=daily
 +
    repositories=fws,epel,stephdl,sogo,remi-roundcube,remi
  
  
  
 
*repositories
 
*repositories
  config setprop check4update repositories repo1,repo2,repo3
+
  config setprop check4updates repositories repo1,repo2,repo3
  
  
Line 55: Line 94:
 
The recipient is admin but you can change this by a db command
 
The recipient is admin but you can change this by a db command
  
  config setprop check4update emailaddress "admin-yum"
+
  config setprop check4updates emailaddress "admin-yum"
 
or if you need several recipients
 
or if you need several recipients
  config setprop check4update emailaddress "admin-yum foo@foo.be foo@foo.fr"
+
  config setprop check4updates emailaddress "admin-yum foo@foo.be foo@foo.fr"
  
 
* frequence
 
* frequence
  config setprop check4update frequence daily
+
  config setprop check4updates frequence daily
 
  signal-event console-save
 
  signal-event console-save
  
Line 70: Line 109:
 
* excludes
 
* excludes
 
you can exclude rpms if you don't want they are  checked by the contrib
 
you can exclude rpms if you don't want they are  checked by the contrib
   config setprop check4update excludes rpm1,rpm2,rpm3,rpm4
+
   config setprop check4updates excludes rpm1,rpm2,rpm3,rpm4
  
 
===Launch Manually===
 
===Launch Manually===
Line 78: Line 117:
 
  /sbin/e-smith/check4repositoriesupdates -m
 
  /sbin/e-smith/check4repositoriesupdates -m
 
=== Uninstall ===
 
=== Uninstall ===
  yum remove smeserver-check4update
+
  yum remove smeserver-check4updates
  
 
=== Bugs ===
 
=== Bugs ===
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
and select the smeserver-foo component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-foo|title=this link}}.  
+
and select the smeserver-check4updates component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-check4updates|title=this link}}.  
  
{{#bugzilla:columns=id,product,version,status,summary |sort=id|order=desc |component=smeserver-foo|noresultsmessage="No open bugs found."}}
+
{{#bugzilla:columns=id,product,version,status,summary |sort=id|order=desc |component=smeserver-check4updates|noresultsmessage="No open bugs found."}}
 
[[Category: Contrib]]
 
[[Category: Contrib]]

Latest revision as of 20:07, 9 April 2021


Check4update for SME Server

Maintainer

Stephane de Labrusse aka stephdl

Version

Contrib 10:
Contrib 9:
smeserver-check4updates
The latest version of smeserver-check4updates is available in the SME repository, click on the version number(s) for more information.


Description

Check4updates is a contrib which regularly checks the determined repositories and send email to the admin, for informing of all new rpms which need an update.

Requirements

You need to enable stephdl repository.

Installation

Install in the usual way:

yum install smeserver-check4updates --enablerepo=smecontribs

This contrib is currently held in an external non default repository. You must first configure the stephdl repository on your SME server by following the steps here stephdl (if not already configured).

You can check the repo status as follows

db yum_repositories show stephdl

If you receive no output then the repo is not configured on your SME server.

Then run the following commands to install the Check4updates contrib on your SME Server.

yum --enablerepo=smecontribs install smeserver-check4updates

You have to set the repositories you want to check, you must enabled them before as it is asked on this page

Repositories have to be separated by a coma ','

for example

config setprop check4updates repositories fws,stephdl

Then activate the database changes as follows:

signal-event post-upgrade;  signal-event reboot

or if you do not want to restart the server, simply do

signal-event console-save

This contrib is currently held in an external non default repository. You must first configure the stephdl repository on your SME server by following the steps here stephdl (if not already configured).

You can check the repo status as follows

db yum_repositories show stephdl

If you receive no output then the repo is not configured on your SME server.

Then run the following commands to install the Check4updates contrib on your SME Server.

yum --enablerepo=smecontribs install smeserver-check4updates

You have to set the repositories you want to check, you must enabled them before as it is asked on this page

Repositories have to be separated by a coma ','

for example

config setprop check4updates repositories fws,stephdl

Then activate the database changes as follows:

signal-event post-upgrade;  signal-event reboot

or if you do not want to restart the server, simply do

signal-event console-save
yum --enablerepo=stephdl install smeserver-check4updates

Usage

# config show check4updates 
  check4updates=configuration
    emailaddress=admin-yum
    excludes=
    frequence=daily
    repositories=

for example, this is mine configuration (some rpm must be excluded from epel)

check4updates=configuration
   emailaddress=admin-yum
   excludes=GeoIP,dar,libdar,oidentd,perl-Net-Server,perl-Razor-Agent,php-pear-Auth-SASL,pkcs11-helper,pptpd,rssh,php-horde-horde,proftpd,php-pear-Net-LDAP2
   frequence=daily
   repositories=fws,epel,stephdl,sogo,remi-roundcube,remi


  • repositories
config setprop check4updates repositories repo1,repo2,repo3


  • email recipients

The recipient is admin but you can change this by a db command

config setprop check4updates emailaddress "admin-yum"

or if you need several recipients

config setprop check4updates emailaddress "admin-yum foo@foo.be foo@foo.fr"
  • frequence
config setprop check4updates frequence daily
signal-event console-save

daily is the default value but you can set also

weekly
monthly
  • excludes

you can exclude rpms if you don't want they are checked by the contrib

 config setprop check4updates excludes rpm1,rpm2,rpm3,rpm4

Launch Manually

in a terminal root

/sbin/e-smith/check4repositoriesupdates

if you want to drop an email

/sbin/e-smith/check4repositoriesupdates -m

Uninstall

yum remove smeserver-check4updates

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-check4updates component or use this link .

"No open bugs found."