Centos7(redhat)Chrome安装

Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并>且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装 ##百度的
yum localinstall 解决本地rpm包的依赖问题,需要的rpm包也下载完成了

createrepo 命令用于创建yum源(软件仓库),即为存放于本地特定位置的众多rpm包建立索引,描述各包所需依赖信息

[root@foundation31 ~]#createrepo  -v  /home/kiosk/repod/ ##扫描repod下的第三方软件,输出详细信息
Spawning worker 0 with 1 pkgs
Spawning worker 1 with 0 pkgs
Spawning worker 2 with 0 pkgs
Spawning worker 3 with 0 pkgs
Worker 0: reading google-chrome-stable_current_x86_64.rpm
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Starting other db creation: Thu Sep  6 22:37:13 2018
Ending other db creation: Thu Sep  6 22:37:13 2018
Starting filelists db creation: Thu Sep  6 22:37:13 2018
Ending filelists db creation: Thu Sep  6 22:37:14 2018
Starting primary db creation: Thu Sep  6 22:37:14 2018
Ending primary db creation: Thu Sep  6 22:37:15 2018
Sqlite DBs complete


[root@foundation31 ~]#cd /home/kiosk/repod/
[root@foundation31 /home/kiosk/repod]#ls   ##多了个repodata目录,即第三方软件可以用 yum install 安装
google-chrome-stable_current_x86_64.rpm  repodata


[root@foundation31 /home/kiosk/repod]#yum localinstall google-chrome-stable_current_x86_64.rpm  ##在这个目录下
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-58.0.3029.110-1.x86_64
Marking google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:58.0.3029.110-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-58.0.3029.110-1.x86_64
--> Processing Dependency: libXss.so.1()(64bit) for package: google-chrome-stable-58.0.3029.110-1.x86_64
--> Running transaction check
---> Package libXScrnSaver.x86_64 0:1.2.2-6.1.el7 will be installed
---> Package redhat-lsb.x86_64 0:4.1-27.el7 will be installed
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7 for package: redhat-lsb-4.1-27.el7.x86_64
--> Processing Dependency: redhat-lsb-cxx(x86-64) = 4.1-27.el7 for package: redhat-lsb-4.1-27.el7.x86_64
--> Processing Dependency: redhat-lsb-desktop(x86-64) = 4.1-27.el7 for package: redhat-lsb-4.1-27.el7.x86_64
--> Processing Dependency: redhat-lsb-languages = 4.1-27.el7 for package: redhat-lsb-4.1-27.el7.x86_64
--> Processing Dependency: redhat-lsb-printing = 4.1-27.el7 for package: redhat-lsb-4.1-27.el7.x86_64
--> Running transaction check


....


Dependencies Resolved
================================================================================
 Package                      Arch   Version         Repository            Size
================================================================================
Installing:
 google-chrome-stable         x86_64 58.0.3029.110-1 /google-chrome-stable_current_x86_64
                                                                          205 M
Installing for dependencies:
 cups-client                  x86_64 1:1.6.3-26.el7  rhel7.3              149 k
 foomatic-filters             x86_64 4.0.9-8.el7     rhel7.3               98 k
 libXScrnSaver                x86_64 1.2.2-6.1.el7   rhel7.3               24 k
 libmng                       x86_64 1.0.10-14.el7   rhel7.3              171 k
 m4                           x86_64 1.4.16-10.el7   rhel7.3              256 k
 perl-Class-ISA               noarch 0.36-1010.el7   rhel7.3              9.0 k
 perl-Pod-Plainer             noarch 1.03-4.el7      rhel7.3

....

Installed size: 270 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------
Total                                               25 MB/s |  22 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : perl-XML-SAX-Base-1.08-7.el7.noarch                         1/25
  Installing : libmng-1.0.10-14.el7.x86_64                                 2/25
  Installing : perl-XML-NamespaceSupport-1.11-10.el7.noarch                3/25
  Installing : perl-XML-SAX-0.99-9.el7.noarch                              4/25
  Installing : 1:perl-XML-LibXML-2.0018-5.el7.x86_64                       5/25

.....


Installed:
  google-chrome-stable.x86_64 0:58.0.3029.110-1

Dependency Installed:
  cups-client.x86_64 1:1.6.3-26.el7
  foomatic-filters.x86_64 0:4.0.9-8.el7
  libXScrnSaver.x86_64 0:1.2.2-6.1.el7
  libmng.x86_64 0:1.0.10-14.el7
  m4.x86_64 0:1.4.16-10.el7
  perl-Class-ISA.noarch 0:0.36-1010.el7
  perl-Pod-Plainer.noarch 0:1.03-4.el7
  perl-XML-LibXML.x86_64 1:2.0018-5.el7
  perl-XML-NamespaceSupport.noarch 0:1.11-10.el7
  perl-XML-SAX.noarch 0:0.99-9.el7
  perl-XML-SAX-Base.noarch 0:1.08-7.el7
  qt.x86_64 1:4.8.5-13.el7
  qt-settings.noarch 0:19-23.5.el7
  qt-x11.x86_64 1:4.8.5-13.el7
  qt3.x86_64 0:3.3.8b-51.el7
  redhat-lsb.x86_64 0:4.1-27.el7
  redhat-lsb-core.x86_64 0:4.1-27.el7
  redhat-lsb-cxx.x86_64 0:4.1-27.el7
  redhat-lsb-desktop.x86_64 0:4.1-27.el7
  redhat-lsb-languages.x86_64 0:4.1-27.el7
  redhat-lsb-printing.x86_64 0:4.1-27.el7
  redhat-lsb-submod-multimedia.x86_64 0:4.1-27.el7
  redhat-lsb-submod-security.x86_64 0:4.1-27.el7
  spax.x86_64 0:1.5.2-13.el7

Complete!



[root@foundation31 /home/kiosk/repod]#which google-chrome-stable
/bin/google-chrome-stable

[root@foundation31 ~]#google-chrome



Please start Google Chrome as a normal user. If you need to run as root for development, rerun with the --no-sandbox flag. ##弹出框

[root@foundation31 ~]#google-chrome  --no-sandbox flag
[11256:11284:0906/220301.466302:ERROR:ssl_client_socket_impl.cc(1135)] handshake failed; returned -1, SSL error code 1, net_error -101
##报错   (握手失败?????)


This site can’t be reached

flag’s server DNS address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN          ##谷歌浏览器报错(找不到FLAG服务器DNS地址)


##百度可以访问,安装完成客户端有chrome了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值