zoukankan      html  css  js  c++  java
  • scoop的安装及基本使用

    scoop

      windows下的安装源搜索工具,有点类似centos下的yum和Ubuntu下的apt。用这个拉下来安装的软件没有广告。

    安装条件

      win7 + 

      powershell 3+

      查看当前版本

    $PSVersionTable.PSVersion

    更改脚本执行的策略

      

    set-executionpolicy remotesigned -s cu

    安装

      本人不太喜欢装在C盘里面,故更改它的安装路径到D盘

      设置scoop环境变量

      

    $env:SCOOP='D:Scoop'
    
    [Environment]::SetEnvironmentVariable('SCOOP',$env:SCOOP,'User')

      设置scoop global 环境变量

    $env:SCOOP_GLOBAL='D:ScoopGlobalApps'
    
    [Environment]::SetEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'User')

      这里设置环境变量第三个参数User表示用户级别,Machine表示系统级别。Machine没权限的话,可以手动去环境变量设置。

      安装命令

    iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
    
    ## 或者
    
    iwr-useb get.scoop.sh|iex

      事实上,上面两个目前都是不可用的。

      于是我配置了hosts

     

    然后执行另一条可用的网址的命令:

    iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')  

    安装成功。

    卸载

      

    scoop uninstall scoop

      这个卸载,会删除你配置的scoop下面的所有软件,非常危险。

    基本使用

      bucket

        本身的main bucket源很少,故增加新的一个较多的bucket

      

    scoop bucket add extras

      执行成功展示:

    Checking repo... ok
    The extras bucket was added successfully.

      安装软件

    ## 安装软件
    scoop install -g [app的名称]
    ## 我这里-g 需要admin权限,取消-g可安装
    scoop install curl
  • 相关阅读:
    python,生产环境安装
    neo4j 图数据库
    RNN系列
    机器学习关于AUC的理解整理
    fensorflow 安装报错 DEPENDENCY ERROR
    dubbo Failed to check the status of the service com.user.service.UserService. No provider available for the service
    使用hbase遇到的问题
    MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
    gradle 安装
    jenkins 安装遇到的坑
  • 原文地址:https://www.cnblogs.com/lioa/p/13565622.html
Copyright © 2011-2022 走看看