Why download only for apt-get cron job

I put crontab to update with apt-get once a day (Debian Lenny works, there are updates almost daily). But almost all the examples I saw in this cron job call the -d flag.

This raises 4 questions:

  • Why should I download only packages and not install them?
  • Doesn't that violate the goal of starting it automatically?
  • Do I need to go in and actually install updates later?
  • Is it safe for me to manage cron working without the -d flag?
+3
source share
2 answers

- apt-get ( aptitude) , Debian, . .

, , ? (apache2), , (mdadm). , , (, X11 )? Etc ..

, unattended-upgrades. .

+6

Ubuntu root .

/usr/bin/apt-get update && /usr/bin/apt-get -s -u upgrade

'-s' apt-get "" , .
: ( cron), , .

, ( ..).

, .

+1

Source: https://habr.com/ru/post/1699446/


All Articles