zoukankan      html  css  js  c++  java
  • linux下检查是否安装过某软件包 离线安装

     

    1、rpm包安装的,可以用 rpm -qa 看到,如果要查找某软件包是否安装,用 rpm -qa | grep "软件或者包的名字"

    2、以deb包安装的,可以用 dpkg -l 看到。如果是查找指定软件包,用 dpkg -l | grep "软件或者包的名字"

    3、yum方法安装的,可以用 yum list installed 查找,如果是查找指定包,用 yum list installed | grep "软件名或者包名"

    举例:查看是否安装了gcc

    yum list installed | grep "gcc"

    yum install -y gcc

    rpm包

    http://rpm.pbone.net/index.php3

    http://www.rpmfind.net/linux/rpm2html/search.php

    http://mirrors.163.com/centos/6/os/x86_64/Packages/

    http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/


    rpm -ivh gcc-4.8.5-28.el7.x86_64.rpm

    也可以执行如下命令安装所有rpm格式的安装包

    rpm -ivh *.rpm --nodeps --force

    gcc -v

    g++ -v

    CentOS7环境下在/离线安装GCC与GCC-C++

    https://www.linuxidc.com/Linux/2017-03/142319.htm

    Ubuntu and Debian(64 Bit)SHA256: 9af017edd29a7a680b86ccace4380d72676934567c5b3206482cf3b3f7aae3d5
    sudo apt-get install -y adduser libfontconfig1
    wget https://dl.grafana.com/enterprise/release/grafana-enterprise_8.3.4_amd64.deb
    sudo dpkg -i grafana-enterprise_8.3.4_amd64.deb
    
    Read the Ubuntu / Debian installation guide for more information. We also provide an APT package repository.
    Standalone Linux Binaries(64 Bit)SHA256: e84dfe2ca1083e2ac407870be3640ebdf9cc438a5536216f8494bf762e265739
    wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.4.linux-amd64.tar.gz
    tar -zxvf grafana-enterprise-8.3.4.linux-amd64.tar.gz
    Red Hat, CentOS, RHEL, and Fedora(64 Bit)SHA256: 0e6bbb2c288bf3c710334ef7c15cb41526a7dfb5531b35009fb5a9f2e0bd617b
    wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.4-1.x86_64.rpm
    sudo yum install grafana-enterprise-8.3.4-1.x86_64.rpm
    
    OpenSUSE and SUSE
    wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.4-1.x86_64.rpm
    sudo rpm -i --nodeps grafana-enterprise-8.3.4-1.x86_64.rpm
    yum localinstall grafana-7.1.1-1.x86_64.rpm  #通过yum方式安装
  • 相关阅读:
    使用Xtrabackup 备份mysql数据库
    Myeclipse总结
    intellij idea问题及技巧
    Tomcat相关配置
    Spark常用算子总结
    前端开发经验
    最近用到的SQL语句
    subline text使用心得
    天龙八部谁是主角?(MR词频统计)
    elasticsearch CURL命令
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/15787226.html
Copyright © 2011-2022 走看看