yum安装技巧和实践篇

说明:

1)使用-y参数,自动使用yes进行应答

2)使用search搜索相关的rpm包(如果是安装gcc或者g++,不能直接搜索gcc g++ ,请参考g++的安装博客)

例如安装livecd-creator工具,需要安装livecd-tools软件,如果

使用yum install livecd-tools 无解!(实际上livecd-tool是一个epel项目中的安装包,所以需要安装epel仓库源,请查看epel的相关信息,然后使用yum search epel ,然后安装)

操作步骤1:yum search live

[root@localhost livecd]# yum -y install livecd-tools anaconda-runtime

No package livecd-tools available.

Package anaconda-13.21.215-1.el6.centos.x86_64 already installed and latest version

Nothing to do


[root@localhost livecd]# yum search livecd

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: centos.ustc.edu.cn

 * epel: mirrors.ustc.edu.cn

 * extras: centos.ustc.edu.cn

 * updates: centos.ustc.edu.cn

epel/pkgtags                                             | 910 kB     00:09     

============================= N/S Matched: livecd ==============================

livecd-tools.x86_64 : Tools for building live CDs


  Name and summary matches only, use "search all" for everything.

[root@localhost livecd]# yum -y install livecd-tools.x86_64

 

你可能感兴趣的:(yum,EPEL,livecd)