Clovis Sena 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 > > for initial testing, but found some little problems. > > firist, the rpm -qa output is the complete name of package, eg > vim-0.6-2.3-mdk.etc.rpm and not only the name "vim" as i need. I also > try using the %{NAME} flag but with worse results. > > note: as seen above wget will try the exact file name and never would find > some updates. The idea is to make wget search for some thing like $a* ( > example: vim* ). > > does somebody knows the way i could use rpm to output only the package names?? > > tia, > > Clovis. > Update to rpm 4.0!!! Here this is the default behaviour! But I think you'll need to use MandrakeUpdate... =o) -- Leonardo T. de Carvalho Ibiz Tecnologia Frase aleatória: " "Beauty is transitory." "Beauty survives." -- Spock and Kirk, "That Which Survives", stardate unknown "
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com