2005-03-27, 11:06 PM
if you want to automate fedora keeping up to date, and you use apt (as in apt-get)
then try this (as root)
Code:
vi /etc/cron.daily/apt.sh
then paste the following into the blank file
Code:
#!/bin/sh
apt-get update && apt-get upgrade -y
now save the file and make it executable
Code:
chmod +x apt.sh
to test it try doing this
Code:
sh /etc/cron.daily/apt.sh
and you'll see something like the following:
Quote:[root@localhost cron.daily]# sh /etc/cron.daily/apt.shGet:1 [/url]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 [url=http://ayo.freshrpms.net]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]#
cheers
anyweb