wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
46.22k stars 1.77k forks source link

Failed to install (Centos 7) #375

Open noizz opened 3 years ago

noizz commented 3 years ago
#356  rpm -ivh dive_0.9.2_linux_amd64.rpm 
Preparing...                          ################################# [100%]
        package dive-0.9.2-1.x86_64 is already installed
# dive
-bash: dive: command not found
# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPP
# uname -a
Linux deploymenttest.novalocal 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 
Linux deploymenttest.novalocal 3.10.0-929 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
n-thumann commented 9 months ago

Looks like this issue might be specific to your setup and /usr/local/bin/ not being present in your $PATH. Works for me:

[root@49e5fcdc3861 /]# curl -LOJ https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_linux_amd64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4636k  100 4636k    0     0  2612k      0  0:00:01  0:00:01 --:--:-- 11.6M
curl: Saved to filename 'dive_0.9.2_linux_amd64.rpm'
[root@49e5fcdc3861 /]# rpm -ivh dive_0.9.2_linux_amd64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:dive-0.9.2-1                     warning: user  does not exist - using root
warning: group  does not exist - using root
################################# [100%]
[root@49e5fcdc3861 /]# dive -v
dive 0.9.2
[root@49e5fcdc3861 /]# rpm -ql dive
/usr/local/bin/dive