You can add the following code to your WP-config.php to let WordPress use the direct Filesystem Method (FS_METHOD).
This will easily let you install and update plugins and themes from the repository on your local server.
define('FS_METHOD', 'direct’);