如何设定和使用YUM在浅顶软呢帽Linux

Sukrit Dhandhania 2009年5月19日

Linux

YUM 是为Red Hat Linux基于系统的一个非常凉快的软件安装和管理工具。 它做安装新的包裹或更新现有的那些微风通过照料安装所有附庸。 我们看如何设置它在浅顶软呢帽Linux机器然后如何使用它。

然后如果在您的Linux机器没有YUM安装的您从项目的主页得到它 http://linux.duke.edu/projects/yum/download.ptml. 在下载YUM最新的发行为您的浅顶软呢帽Linux之后的版本安装它。

# rpm - ivh yum-2.0.3-0.fdr.1.rh90.noarch.rpm

一旦正确地安装您应该能访问YUM从使用命令 yum. 在我们开始使用它之前,让配置YUM。 配置基本上包括增加一定数量的RPM贮藏库,以便YUM可能拿来需要的RPM包裹和依赖包裹。 打开 /etc/yum.conf 归档在文本编辑程序并且增加以下线在文件的末端:

[基地]
name=Fedora核心$releasever - $basearch -基地
baseurl= http://apt.sw.be/fedora/$releasever/en/$basearch/dag
baseurl= http://mirrors.kernel.org/fedora/core/$releasever/$basearch/os

保存文件并且放弃您的文本编辑程序。 现在安装GPG署名钥匙为这台服务器以以下命令:

# rpm -进口http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

您能增加其他贮藏库以相似的方式。 如果您,记住安装GPG钥匙为他们。 现在更新您的YUM数据库,因此它包含包裹形式新的贮藏库:

# yum检查更新

现在,如果您想要安装包裹全部您必须做跑命令 yum安装 由包裹名字跟随。 您想要安装包裹的言 cowsay跑以下命令:

# yum安装cowsay

如果这个包裹在任何贮藏库您在您列出了 yum.conf 归档, YUM与所有附庸一起将及时地安装它。 如果不,它报道它不是可利用的。

如果您想要更新所有包裹在您的系统跑这个命令:

# yum更新

如果您想要升级唯一包装:

# yum更新cowsay

去除一个安装的包裹:

# yum去除cowsay

您能也得到在您的计算机安装的所有包裹名单使用这个命令:

#安装的yum名单

得到所有更新名单可利用为您的系统:

# yum名单更新

YUM是一个非常强有力的工具,并且它在Linux系统可能使处理的包裹真正地简单。 Ubuntu用户也许熟悉 apt-get, a similar automated package installation tool. If you have a large number of Linux machines in your network you can optionally setup a local YUM repository which can save you a lot of bandwidth.

Related Posts:
  • How to install Fedora 7 using VirtualBox for OS X - a complete walkthrough
  • How to add and remove services from startup on Fedora Linux
  • How to customize the EeeDora Panel
  • How to play MP3 files in Fedora
  • How to block DDOS attacks in Linux
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Just enter your email address below:

    You can always opt out of this email subscription at any time.

    { 0 comments… add one now }

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>