installa swaret, aggiorna la lista con i repository aggiornati e fai:
swaret --update mysql
swaret --update php