     {name, theme} = pack
     atom.packages.deactivatePackage(name) if atom.packages.isPackageActive(name)
 
-    args = ['uninstall', name]
-    exit = (code, stdout, stderr) =>
+    @runCommand ['uninstall', name], (code, stdout, stderr) =>
       if code is 0
         atom.packages.unloadPackage(name) if atom.packages.isPackageLoaded(name)
         callback?()

    new BufferedNodeProcess({command, args, stdout, stderr, exit})

  loadAvailable: (callback) ->
    args = ['available', '--json']
    exit = (code, stdout, stderr) =>
      if code is 0
        try
          @packages = JSON.parse(stdout) ? []

        error.stdout = stdout
        error.stderr = stderr
        callback(error)

  getAvailable: ->
    if @packages?
