Skip to content

madhanmohans/linux-pkg-update-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

A simple package update automation for GNU- Linux distros using apt commands:

Updating Manually

  • Place the 'update.sh' file in /usr/bin/ folder.
  • Open terminal and run update.sh

This updates the packages everytime you run the command in the terminal.

Automating the updation (Using cronjobs)

  • Run crontab -e in the terminal.
  • Add this line at the end 0 13 * * * /usr/bin/update.sh >/dev/null 2>&1
    • ctrl(command) + x to save,
    • 'Y' to confirm,
    • Enter to exit.

This executes the job in background, in this case the job is running update.sh, everday at 1 pm.


[cron.png]


What is /dev/null 2>&1 tho?

About

A simple package update automation for GNU- Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages