Use WP-CLI (http://wp-cli.org/)
Su to a non-privileged user # su -m www
# wp core version 4.2.2
# wp core verify-checksums Success: WordPress install verifies against checksums.
# wp core check-update Success: WordPress is at the latest version.
# wp core update
Plugsin
# wp plugin status 4 installed plugins: UI akismet 3.1.1 A force-login-except-special-ip-range 0.2 I hello 1.6 A iframe 3.0
# wp plugin list +-------------------------------------+----------+-----------+---------+ | name | status | update | version | +-------------------------------------+----------+-----------+---------+ | akismet | inactive | available | 3.1.1 | | force-login-except-special-ip-range | active | none | 0.2 | | hello | inactive | none | 1.6 | | iframe | active | none | 3.0 | +-------------------------------------+----------+-----------+---------+
# wp plugin update --all