zoukankan      html  css  js  c++  java
  • 命令行配置源和安装本地rpm包

    因为Firefox的在写博客时提交代码会丢失缩进,所以打算安装Chrome来写博,还不错,学到了两条命令~ [shell] sudo yum-config-manager --add-repo=http://repos.fedorapeople.org/repos/spot/chromium-stable/ fedora-chromium-stable.repo sudo yum localinstall google-chrome-stable_current_x86_64.rpm [/shell] 本来打算安装chromium的,在Fedoraproject看到有repo源,添加源的话使用的是yum-config-manager,以前都是直接下在到电脑上,在cp进/etc/yum.repo.d/目录,然后再yum makecache重新建立缓存,比较麻烦,这回可方便了不少 来进一步看看yum-config-manager的帮助,功能还不少的说(不过还是忍不住吐槽一句,这汉化不全是怎么回事...感觉好土鳖) [shell] yum-config-manager -h [/shell]
    Options: 插件选项: Yum Base Options: -h, --help 显示此帮助消息并退出 -t, --tolerant 忽略错误 -C, --cacheonly 完全从系统缓存运行,不升级缓存 -c [config file], --config=[config file] 配置文件路径 -R [minutes], --randomwait=[minutes] 命令最长等待时间 -d [debug level], --debuglevel=[debug level] 调试输出级别 --showduplicates 在 list/search 命令下,显示源里重复的条目 -e [error level], --errorlevel=[error level] 错误输出级别 --rpmverbosity=[debug level name] RPM 调试输出级别 -q, --quiet 静默执行 -v, --verbose 详尽的操作过程 -y, --assumeyes 回答全部问题为是 --assumeno 回答全部问题为否 --version 显示 Yum 版本然后退出 --installroot=[path] 设置安装根目录 --enablerepo=[repo] 启用一个或多个软件源(支持通配符) --disablerepo=[repo] 禁用一个或多个软件源(支持通配符) -x [package], --exclude=[package] 采用全名或通配符排除软件包 --disableexcludes=[repo] 禁止从主配置,从源或者从任何位置排除 --disableincludes=[repo] disable includepkgs for a repo or for everything --obsoletes 更新时处理软件包取代关系 --noplugins 禁用 Yum 插件 --nogpgcheck 禁用 GPG 签名检查 --disableplugin=[plugin] 禁用指定名称的插件 --enableplugin=[plugin] 启用指定名称的插件 --skip-broken 忽略存在依赖关系问题的软件包 --color=COLOR 配置是否使用颜色 --releasever=RELEASEVER 在 yum 配置和 repo 文件里设置 $releasever 的值 --downloadonly 仅下载而不更新 --downloaddir=DLDIR 指定一个其他文件夹用于保存软件包 --setopt=SETOPTS 设置任意配置和源选项 --bugfix Include bugfix relevant packages, in updates --security Include security relevant packages, in updates --advisory=ADVS, --advisories=ADVS Include packages needed to fix the given advisory, in updates --bzs=BZS Include packages needed to fix the given BZ, in updates --cves=CVES Include packages needed to fix the given CVE, in updates --sec-severity=SEVS, --secseverity=SEVS Include security relevant packages matching the severity, in updates yum-config-manager options: --save save the current options (useful with --setopt) --enable enable the specified repos (automatically saves) --disable disable the specified repos (automatically saves) --add-repo=ADDREPO add (and enable) the repo from the specified file or url
    如上的打开关闭源也很方便,手动的话,到目录下修改repo文件内的enabled=0就是关闭这个源,1就是打开。比如安装flash时安装的adobe-linux-x86_64.repo 在安装完flash-plugin就可以关闭了,没用的源都开着会影响加载速度。用yum-config-manager搭配shell就方便多了。 不过安装repo源后,依旧找不到chromium,不知为何,后来一看,原来在更新源时就提示说找不到,进网站看了下,没有Fedora 20的源,怪不得,那就去官网下chrome吧、 Down下来,按照往常的rpm -ivh进行安装 [shell] sudo rpm -ivh google-chrome-stable_current_x86_64.rpm [/shell] 很遗憾,缺少依赖,安装失败
    警告:google-chrome-stable_current_x86_64.rpm: 头V4 DSA/SHA1 Signature, 密钥 ID 7fac5991: NOKEY 错误:依赖检测失败: lsb >= 4.0 被 google-chrome-stable-34.0.1847.116-1.x86_64 需要 libXss.so.1()(64bit) 被 google-chrome-stable-34.0.1847.116-1.x86_64 需要
    网上也有说把lsb全都安装了,就可以了,不过个人比较讨厌盲目的安装不需要的东西 又上网找了找,还不错,发现了yum localinstall [shell] sudo yum localinstall google-chrome-stable_current_x86_64.rpm [/shell] 这样的话就会自己解决依赖问题,以前使用rpm安装谷歌地球的时候就由于没能解决依赖问题,这回可以再试试了 下面是chrome的依赖,应该会比把lsb相关的包都安装小的多,还不错~
    依赖关系解决 ================================================================================ Package 架构 版本 源 大小 ================================================================================ 正在安装: google-chrome-stable x86_64 34.0.1847.116-1 /google-chrome-stable_current_x86_64 161 M 为依赖而安装: gdbm-devel x86_64 1.10-7.fc20 fedora 47 k libXScrnSaver x86_64 1.2.2-6.fc20 fedora 24 k libdb-devel x86_64 5.3.28-1.fc20 fedora 37 k libpng12 x86_64 1.2.50-6.fc20 updates 151 k mailx x86_64 12.5-10.fc20 fedora 244 k mesa-libGLU x86_64 9.0.0-4.fc20 updates 196 k perl-B-Lint noarch 1.17-291.fc20 fedora 20 k perl-CPAN noarch 2.00-289.fc20 updates 297 k perl-Class-ISA noarch 0.36-1012.fc20 fedora 9.1 k perl-Env noarch 1.04-291.fc20 fedora 16 k perl-ExtUtils-Install noarch 1.59-289.fc20 updates 74 k perl-ExtUtils-MakeMaker noarch 6.72-2.fc20 fedora 277 k perl-ExtUtils-Manifest noarch 1.63-1.fc20 fedora 31 k perl-ExtUtils-ParseXS noarch 1:3.18-292.fc20 updates 77 k perl-File-CheckTree noarch 4.42-291.fc20 fedora 18 k perl-Locale-Codes noarch 3.26-3.fc20 fedora 312 k perl-Locale-Maketext noarch 1.23-293.fc20 updates 94 k perl-Module-Pluggable noarch 1:4.80-292.fc20 updates 29 k perl-Pod-Checker noarch 1.60-291.fc20 fedora 28 k perl-Pod-LaTeX noarch 0.61-292.fc20 fedora 36 k perl-Pod-Parser noarch 1.61-3.fc20 fedora 107 k perl-Pod-Plainer noarch 1.03-6.fc20 fedora 9.2 k perl-Sys-Syslog x86_64 0.33-4.fc20 fedora 42 k perl-Test-Simple noarch 1.001002-1.fc20 fedora 177 k perl-Text-Soundex x86_64 3.04-291.fc20 fedora 19 k perl-Text-Unidecode noarch 0.04-21.fc20 fedora 115 k perl-XML-LibXML x86_64 1:2.0105-1.fc20 fedora 377 k perl-autodie noarch 2.20-4.fc20 fedora 80 k perl-devel x86_64 4:5.18.2-289.fc20 updates 473 k qt3 x86_64 3.3.8b-56.fc20 updates 3.4 M redhat-lsb x86_64 4.1-21.fc20 updates 24 k redhat-lsb-core x86_64 4.1-21.fc20 updates 37 k redhat-lsb-cxx x86_64 4.1-21.fc20 updates 16 k redhat-lsb-desktop x86_64 4.1-21.fc20 updates 20 k redhat-lsb-languages x86_64 4.1-21.fc20 updates 17 k redhat-lsb-printing x86_64 4.1-21.fc20 updates 16 k redhat-lsb-submod-multimedia x86_64 4.1-21.fc20 updates 15 k redhat-lsb-submod-security x86_64 4.1-21.fc20 updates 15 k spax x86_64 1.5.2-8.fc20 fedora 259 k systemtap-sdt-devel x86_64 2.4-2.fc20 updates 57 k 事务概要 ================================================================================ 安装 1 软件包 (+40 依赖软件包) 总计:168 M 总下载量:7.0 M 安装大小:182 M Is this ok [y/d/N]:
    RPM还是很神奇的,慢慢学吧,需要懂的还很多、
  • 相关阅读:
    [转]Flash Builder 4安装SVN插件
    [转]ActionScript为什么不支持函数重载
    [转]Flash Builder 4 官网下载、安装与注册
    ActionScript3.0导入XML数据
    Flex与.NET互操作(六):Flex和.NET协同开发利器FluorineFx
    Flex与.NET互操作(八):使用FluorineFx网关实现远程访问
    Flex—鼠标样式设置
    Shape、Sprite 和 MovieClip 对象的 graphics 属性(graphics类)的简单用法
    IN&EXISTS与NOT IN&NOT EXISTS 的优化原则的讨论
    Windows 无法启动 SQL Server (MSSQLSERVER) 服务(位于 本地计算机 上)。错误 1067: 进程意外终止。
  • 原文地址:https://www.cnblogs.com/ishell/p/4240156.html
Copyright © 2011-2022 走看看