Linux各种软件安装方法

源码安装

  • 解压缩源代码包
  • 检测文件是否缺失, 创建makefile, 检测编译环境
    ./configure
    
  • 编译源码,生成库和可执行程序
    make
    
  • 把库和可执行程序,安装到系统路径下
    sudo make install
    
  • 删除和卸载软件
    sudo make distclean
    

apt-get

更新源

  • 命令
    sudo apt-get update
    

安装gimp

  • 命令
    sudo apt-get install gimp
    

卸载gimp

  • 命令
    sudo apt-get remove gimp
    

清理包

  • 命令
    sudo apt-get clean
    

deb包

  • 安装软件包

    sudo dpkg -i xxx.deb
    
  • 移除软件包

    sudo dpkg -r xxx.deb
    
posted @ 2021-01-20 20:40  南方与南  阅读(77)  评论(0)    收藏  举报