Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently working in a command line only environment.

I would like to perform daily updates automatically using zypper, however I can't find a good way to do it. By good I mean clean and simple.

Is it safe to execute sudo zypper update daily using cron? I was told that this isn't always a good way to do it.

Are there other ways I could make package updates through zypper completely automatic?

share|improve this question
up vote 1 down vote accepted

(I solved this a while ago, just forgot to post an answer)

I ended up creating a cron job which runs everyday at 3am (my computer stays on 24/7) and invokes an update script.

The script contains only a couple lines and basically refreshes the repositories (zypper ref) and then installs all available updates (zypper up). It has worked for me for the past few months.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.