>[root@RedHat mnt]# cd /opt/cdrom/Packages/
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
base | 1.3 kB 00:00 ...
base/primary | 1.3 MB 00:00 ...
base 2680/2680
Setting up Install Process
Examining google-chrome-stable_current_i386.rpm: google-chrome-stable-10.0.648.134-77917.i386
Marking google-chrome-stable_current_i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:10.0.648.134-77917 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
google-chrome-stable
i386 10.0.648.134-77917 /google-chrome-stable_current_i386 83 M
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total size: 83 M
Installed size: 83 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Public key for google-chrome-stable_current_i386.rpm is not installed
两种方法可以解决:
1.运行
[root@RedHat Packages]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
可解决;
2.运行
[root@RedHat Packages]# yum.conf 文件,把里面的gpgcheck=1改为gpgcheck=0。
注:方法2的效果很好
3.最好的解决办法:
加上"--nogpgcheck"参数
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm --nogpgcheck
相关推荐
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
rpm -ivh *.rpm --force --nodeps 挂载 fdisk -l 查看识别的硬盘是sdc多少 例如识别的sdc4 那么挂载命令如下/mnt是挂载到的目录 mount -t ntfs-3g /dev/sdc4 /mnt/ 解除挂载 umount -l /dev/sdc4
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
kernel-4.18.0-193.28.1.el8.x86_64.rpm
离线安装包,亲测可用
注:要--nogpgcheck参数,否则可能会提示Public key for firefox-38.7.0-1.el5.centos.i386.rpm is not installed错误后停止安装。 注:附件里的Firefoxt(firefox-1.5.0.9-10.el5.i386.rpm)版本是38.7.0 安装时会...
find / -xdev -name \*.rpm 搜索以 '.rpm' 结尾的文件,忽略光驱、捷盘等可移动设备 locate \*.ps 寻找以 '.ps' 结尾的文件 - 先运行 'updatedb' 命令 whereis halt 显示一个二进制文件、源码或man的位置 which ...