Nginx resource should take care of package installation, removing.