At 03:57 PM 09/05/2001 -0300, you wrote:
>hi people,
>
>i am making some crontab script to try automatize some updates.  I wish to 
>check at some intervals  if there is some updates for the packages i have 
>installed, so i try
>
>path$>for a in 'rpm -qa' do
>path$>echo "Getting package $a...please wait."
>path$>wget ftp://ftp.planetmirror.com/pub/mandrake/updates/8.0/RPMS/$a

Try the following:

rpm --queryformat '%{NAME}\n' -qa

which will give you only the package name, one line per name.

As far as getting the files, you could do an ncftpget -R
ftp://ftp.planetmirror.com/pub/mandrake/updates/8.0/RPMS/, which would get
all files, get a listing of the files and compare them against what you
have installed.  Since I've never automated the process, I'm just throwing
out ideas here.

Leonardo - he doesn't need to update to 4.x, since Mandrake 8.0 already
uses rpm 4.x .

Michael


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to