LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 736|回复: 4

关于使用yum升级时的麻烦

[复制链接]
发表于 2011-4-8 16:59:59 | 显示全部楼层 |阅读模式
升级时习惯性的直接yum update -y,但是当需要升级的内容很多时难道只能一直等到下载完所有软件包才能安装吗?
有没有可以边下再边安装或类似的命令?
可不可以升级时一次选特定类软件而非只是特定的软件更新呢?
(想要的都是在终端里的命令)
先谢谢各位大侠了哈
发表于 2011-4-8 19:02:38 | 显示全部楼层
> 有没有可以边下再边安装或类似的命令?
似乎没有

> 可不可以升级时一次选特定类软件而非只是特定的软件更新呢?
yum groupupdate
不知LZ问的是不是这个
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-9 13:17:36 | 显示全部楼层
Post by cheeselee;2134114
> 有没有可以边下再边安装或类似的命令?
似乎没有

> 可不可以升级时一次选特定类软件而非只是特定的软件更新呢?
yum groupupdate
不知LZ问的是不是这个


不是升级组,只是一些自己想升级的软件,比如排除某些特定软件后的所有其他软件等等
倒是不知有没有可以满足类似要求的简单命令组

谢谢了哈
回复 支持 反对

使用道具 举报

发表于 2011-4-9 17:28:33 | 显示全部楼层
man yum然后搜索exclude,这个也许能满足要求
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-10 09:53:26 | 显示全部楼层
Post by savagejin;2134255
man yum然后搜索exclude,这个也许能满足要求


嗯,这个已经可以了
谢谢

man yum.conf
有:
exclude   List  of  packages to exclude from updates or installs.
              This should be a space separated list.  Shell globs using  wild‐
              cards (eg. * and ?) are allowed.

includepkgs  Inverse of exclude. This is a list of  packages  you
              want  to  use  from  a repository. If this option lists only one
              package then that is all yum will ever see from the  repository.
              Defaults  to  an  empty list.  Substitution variables, described
              below, are honored here.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表