Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.