Skip to content

Update openSUSE tumbleweed with the newest packages (bash)

Notifications You must be signed in to change notification settings

unodan/suse-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 

Repository files navigation

suse-update

This script will update openSUSE Leep/Tumbleweed with the newest packages and is normaly run as a cron job.
Enabled repositories can be refreshed and updates done none-interactively (automatically).

Log files will be over written unless the -k option is used. The -k option accepts a positive integer for the number of log files to keep, older log files are deleted.

The -a option must be used with the -k option, archiving happens when the number of log files equals the value supplied to the -k option. Once a log file is achieved it's deleted from the logs directory.

After updating is done the system can be restart by using the -s option followed by the number of seconds to wait before restarting, allowing the user time to save their work or cancel the restarting process if needed. The system is only restarted if running processes are using deleted files that were updated during the update process.

You can force the system restart by using the -f option.

When the -w option is supplied, users are sent an audio beep and a spoken message letting them know that the system is going to be restarted.


Example: suse-update -v -s300 -k30 output maximum information, restart the system 300 seconds after updates are finished and keep the latest 30 log files.\n"



Releases

No releases published

Packages

No packages published

Languages