Linux-Noob Forums

Full Version: keep fedora up to date using apt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

if you want to automate fedora keeping up to date, and you use apt (as in apt-get)


then try this (as root)


vi /etc/cron.daily/



then paste the following into the blank file


apt-get update && apt-get upgrade -y


now save the file and make it executable


chmod +x


to test it try doing this


sh /etc/cron.daily/


and you'll see something like the following:



Quote:[root@localhost cron.daily]# sh /etc/cron.daily/apt.shGet:1 [/url] fedora/linux/3/i386 release [2139B]

Fetched 2139B in 0s (4712B/s)

Hit fedora/linux/3/i386/core pkglist

Hit fedora/linux/3/i386/core release

Hit fedora/linux/3/i386/updates pkglist

Hit fedora/linux/3/i386/updates release

Hit fedora/linux/3/i386/freshrpms pkglist

Hit [url=] fedora/linux/3/i386/freshrpms release

Reading Package Lists... Done

Building Dependency Tree... Done

Reading Package Lists... Done

Building Dependency Tree... Done

The following packages have been kept back

  libpostproc mplayer sylpheed

0 upgraded, 0 newly installed, 0 removed and 3 not upgraded.

[root@localhost cron.daily]#