美文网首页
在macOS安装Fink来使用sudo apt-get命令

在macOS安装Fink来使用sudo apt-get命令

作者: NightRainBreeze | 来源:发表于2020-05-21 19:47 被阅读0次
    • run: sudo apt-get xxx 报错如下
    sudo apt-get remove docker docker-engine docker.io containerd runc
    

    macOS解决方案:

    • 使用 brew 替换 apt-get
        brew install xxx
      
    • 使用 Fink 方案(我使用了此方案)
      • Fink用户指南

      • 下载Fink
        按照你的macOS系统对应版本下载,我的是10.15+,所以选择了For macOS 10.9-10.15

        For macOS 10.9-10.15
      • 下载Source code(tar.gz) 运行bootstrap

        //  解压缩,然后进入解压缩文件的目录终端
        //  fink-0.45.1 目录下, 运行,过程中需要安装软件和输入密码,一般情况都默认
        sudo ./bootstrap 
        // 如果出现让你添加sw路径,该路径需要添加到path里面
        // 以下为我输入的,然后enter
        /users/sw/ 
        
      • 报错:zsh: command not found: fink 点这里

      • 添加fink到path

         // 以我的为例子:
         export PATH=/Users/sw/bin:$PATH
         // 添加完毕别忘记更新
         source ~/.zprofile
        
      • 最后运行

         // 替换为你的fink路径
         // Users/sw/bin/pathsetup.sh
         fink selfupdate-rsync
         fink index -f
        

    相关文章

      网友评论

          本文标题:在macOS安装Fink来使用sudo apt-get命令

          本文链接:https://www.haomeiwen.com/subject/blbtahtx.html