Jump to content
Sign in to follow this  

keep fedora up to date using apt

Recommended Posts

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/apt.sh



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 apt.sh


to test it try doing this


sh /etc/cron.daily/apt.sh


and you'll see something like the following:



[root@localhost cron.daily]# sh /etc/cron.daily/apt.sh

Get:1 http://ayo.freshrpms.net fedora/linux/3/i386 release [2139B]

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

Hit http://ayo.freshrpms.net fedora/linux/3/i386/core pkglist

Hit http://ayo.freshrpms.net fedora/linux/3/i386/core release

Hit http://ayo.freshrpms.net fedora/linux/3/i386/updates pkglist

Hit http://ayo.freshrpms.net fedora/linux/3/i386/updates release

Hit http://ayo.freshrpms.net fedora/linux/3/i386/freshrpms pkglist

Hit http://ayo.freshrpms.net 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]#





Share this post

Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...