Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3032 connectés 

 


Dernière réponse
Sujet : apt-get update et upgrade avec crontab
jdloic => regarde plutôt du coté de "cron-apt"

% apt-cache show cron-apt
Package: cron-apt
Priority: optional
Section: admin
Installed-Size: 64
Maintainer: Ola Lundqvist <opal@debian.org>
Architecture: all
Version: 0.0.20
Depends: apt, bash (>= 2.03-6), mailx
Filename: pool/main/c/cron-apt/cron-apt_0.0.20_all.deb
Size: 9736
MD5sum: b651c07179e8986d06fbc7ef553fad98
Description: Automatic update of packages using apt
 This package contains a tool that is run by a cron job
 at regular intervals. By default it just updates the package list and
 download new packages without installing. You can instruct it to run
 anything that you can do with apt-get.
 .
 It also sends mail (configurable) to the system administrator on
 errors.
 .
 Observe that this tool is a security risk, so you should not set it
 to do more than necessary (automatic upgrade of all packages is NOT
 recommended).


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
jdloic => regarde plutôt du coté de "cron-apt"

% apt-cache show cron-apt
Package: cron-apt
Priority: optional
Section: admin
Installed-Size: 64
Maintainer: Ola Lundqvist <opal@debian.org>
Architecture: all
Version: 0.0.20
Depends: apt, bash (>= 2.03-6), mailx
Filename: pool/main/c/cron-apt/cron-apt_0.0.20_all.deb
Size: 9736
MD5sum: b651c07179e8986d06fbc7ef553fad98
Description: Automatic update of packages using apt
 This package contains a tool that is run by a cron job
 at regular intervals. By default it just updates the package list and
 download new packages without installing. You can instruct it to run
 anything that you can do with apt-get.
 .
 It also sends mail (configurable) to the system administrator on
 errors.
 .
 Observe that this tool is a security risk, so you should not set it
 to do more than necessary (automatic upgrade of all packages is NOT
 recommended).

manudp sur les 2 distributions debian que j'ai : une testing une instable:
       - en console si je tape en tant que root :
apt-get update && apt-get -y upgrade, la mise à jour se fait bien.
 
        - par contre si je le mets dans mon crontab en tant que root:
00 8 * * * apt-get update && apt-get -y upgrade, rien ne se passe le matin à 8h00
dans /var/log/syslog, je vois que mon ma tache a été prise en compte, mais les mises ne se font pas.
 
Merci de votre aide

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)