Author: bbbush
Update of /cvs/docs/yum-software-management
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10226
Modified Files:
Makefile
Added Files:
yum-software-management-zh_CN.xml
Log Message:
--- NEW FILE yum-software-management-zh_CN.xml ---
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY % FEDORA-ENTITIES-EN SYSTEM
"../docs-common/common/fedora-entities-en.ent">
%FEDORA-ENTITIES-EN;
<!ENTITY BOOKID "yum-software-management-1.0.4 (2005-11-15)">
<!-- change version of manual and date here --><!-- Bugzilla bug number for the
draft notice --><!ENTITY BUG-NUM "155190">
<!ENTITY FCLOCALVER "4">
]>
<article id="yum-software-management" lang="zh_CN">
<articleinfo><title>������ <command>yum</command>
������������</title><copyright><year>2005</year><holder>Stuart
Ellis</holder></copyright><copyright><year>2005</year><holder>bbbush
(bbbush.yuan@gmail.com)</holder></copyright><authorgroup><author><surname>Ellis</surname><firstname>Stuart</firstname></author></authorgroup>
&LEGALNOTICE;
<revhistory><revision><revnumber>0.4</revnumber><date>2005-06-01</date><authorinitials>StuartEllis</authorinitials><revdescription><para>������
CVS���</para></revdescription></revision><revision><revnumber>0.5</revnumber><date>2005-07-19</date><authorinitials>StuartEllis</authorinitials><revdescription><para>���
&FC; &FCLOCALVER;
���������</para></revdescription></revision><revision><revnumber>0.6</revnumber><date>2005-07-25</date><authorinitials>PaulWFrields</authorinitials><revdescription><para>������������������������������
BETA���</para></revdescription></revision><revision><revnumber>1.0</revnumber><date>2005-08-13</date><authorinitials!
PaulWFrields</authorinitials><revdescription><para>������������������������������</para></revdescription></revision><revision><revnumber>1.0.1</revnumber><date>2005-08-18</date><authorinitials>StuartEllis</authorinitials><revdescription><para>������������������������������������������������������������������</para></revdescription></revision><revision><revnumber>1.0.2</revnumber><date>2005-08-26</date><authorinitials>StuartEllis</authorinitials><revdescription><para>������������������������������</para></revdescription></revision><revision><revnumber>1.0.3</revnumber><date>2005-10-13</date><authorinitials>PaulWFrields</authorinitials><revdescription><para>������������
(#170584)���</para></revdescription></revision><revision><revnumber>1.0.4</revnumber><date>2005-11-15</date><authorinitials>StuartEllis</authorinitials><revdescription><para>���������������������������������������
#166122���</para></revdescription></revision></revhistory></articleinfo>
<section id="sn-introduction">
<title>������</title>
<section id="sn-purpose">
<title>������</title>
<para>��������������������� &FED;
������������������������������������������������������ &FED;
��������������������������������� <command>yum</command>
������������������</para>
</section>
<section id="sn-software-management-audience">
<title>������</title>
<para>������������������������������������ &FED; ���������</para>
</section>
<section id="sn-software-management-usingdoc">
<title>������������������</title>
<para>������������������ <command>yum</command>
���������������������������������������������������������������������������������������������������������������������������������������������������
<command>yum</command> ��������������� <xref
linkend="sn-software-management-concepts"/>��������������� Linux
��������������� <xref linkend="sn-managing-packages"/>
���������</para>
<note>
<title>��������������� &FED;</title>
<para>������������������ <command>yum</command>
������������������ &FED; &FCLOCALVER; ������������ &FED; 3
��������������������� <xref linkend="sn-authorizing-package-sources"/>
������������������������ <command>yum</command>���</para>
</note>
<para>���������������������������������������������
<filename>tsclient</filename>��������������� &FC;
���������<filename>tsclient</filename>
������������������������������������������������������������������������������������������������������������������
<menuchoice><guimenu>Applications</guimenu><guisubmenu>Internet</guisubmenu><guimenuitem>Terminal
Server Client</guimenuitem></menuchoice>
������������������������������������������������ <filename>tsclient</filename>
������������������������������������&FED; ���������������������������������
<filename>MySQL Database</filename> ������</para>
<important>
<title>��������� root ������������</title>
<para>��������������� <systemitem
class="username">root</systemitem> ���������������������������������
&FED; ��������������������������������������������������� <systemitem
class="username">root</systemitem> ���������������������������
<systemitem class="username">root</systemitem>
������������������������ <command>su <option>-c</option></command>
������������������������������</para>
</important>
</section>
<section id="sn-yum-additional-resources">
<title>������������</title>
<indexterm>
<primary>yum</primary>
<secondary>������</secondary>
</indexterm> <indexterm>
<primary>yum</primary>
<secondary>���������</secondary>
</indexterm>
<para>��������������������� <command>yum</command>
��������������������������������������� <command>man</command> ������������
<command>yum(8)</command> ��� <filename>yum.conf(5)</filename>
���������������������������������</para>
<screen>
<userinput>man yum
man yum.conf</userinput>
</screen>
<indexterm>
<primary>yum</primary>
<secondary>������</secondary>
</indexterm> <indexterm>
<primary>yum</primary>
<secondary>������������</secondary>
</indexterm>
<para>��������������������������� <command>yum</command>
���������������</para>
<variablelist>
<varlistentry>
<term>������������</term>
<listitem>
<para>
<ulink
url="http://linux.duke.edu/projects/yum/"/>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>���������������������</term>
<listitem>
<para>
<ulink
url="https://lists.dulug.duke.edu/mailman/listinfo/yum/"/>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>���������������������</term>
<listitem>
<para>
<ulink
url="https://lists.dulug.duke.edu/pipermail/yum-devel/"/>
</para>
</listitem>
</varlistentry>
</variablelist>
<tip>
<title>������������ &BZ;</title>
<para>������������������������������������������������������ &BZ-URL;
������������������������������������������������������������������������������������������������������������
<command>yum</command> ��������������������� &BZ; ���������������������
&FED; ���������������������������</para>
</tip>
</section>
</section>
<section id="sn-software-management-concepts">
<title>������������������</title>
<section id="sn-about-packages">
<title>���������������</title>
<indexterm>
<primary>���������</primary>
<secondary>������</secondary>
</indexterm>
<para>&FED; ��������������������������������� RPM
<firstterm>���������</firstterm>
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������&FED;
��������������������� &FC;
���������������������������������������������������������������</para>
<para>������������������������������������������������������������������������������������������
GPG <firstterm>������</firstterm>
������������������������<command>yum</command> ���
<command>rpm</command> ���������������������
<firstterm>keyring</firstterm>���������������������������������������������������������������������������������������������������������������������������������</para>
<note>
<title>&FED; ������������������������������������</title>
<para>&FP; ���������������������������������������������������������
&FED; ������������������������������������������������</para>
</note>
</section>
<section id="sn-about-repositories">
<title>������������</title>
<indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para><firstterm>������</firstterm>
������������������������������������������������������������������������������������������������������������������
<command>yum</command>������������������������������������������������������
RPM
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<para>��������������������������������������������� &FED;
������������������������������&FC;
������������������������������������������������������������������������</para>
<variablelist>
<varlistentry>
<term>Base</term>
<listitem>
<para>������ &FC;
���������������������������������������</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Updates</term>
<listitem>
<para>Base ���������������������������������</para>
</listitem>
</varlistentry>
<varlistentry>
<term>&EX;</term>
<listitem>
<para>���������������������������</para>
</listitem>
</varlistentry>
</variablelist>
<note>
<title>��������������� &FED;</title>
<para>&FED; &FCLOCALVER; ������������������������������������������
&FED; 3 ������������������������������������������ &FEX;��������������� <xref
linkend="sn-using-repositories"/> ���������</para>
</note>
<warning>
<title>&FED; ������������</title>
<para>&FC;
���������������������������������������������������������������������������������������������������������������������������������������������������������
&FED;
������������������������������������<filename>fedora-devel</filename>
(Rawhide), <filename>fedora-extras-devel</filename>, ���
<filename>updates-testing</filename>���</para>
</warning>
<para>������������������������������������������������������������������������
&FED; ��������������������������������������� &FED;
��������������������������������������������� <xref
linkend="sn-using-repositories"/>���</para>
<indexterm>
<primary>���������</primary>
<secondary>������</secondary>
</indexterm>
<para>������������ &FED; ���������������
<firstterm>���������</firstterm>
���������������������������������������������������������������������������������������������������������������������������������������������</para>
<!-- SE: Some repositories use groups and some don't: I've tried to put this
nicely. -->
<!-- SE: Using the admonition for this is not optimal, it just doesn't fit anywhere
else. -->
<note>
<title>������������������</title>
<para>��������������� &FED;
������������������������������������������������ <command>su -c 'yum
grouplist'</command>���</para>
</note>
<para>���������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<caution>
<title>���������������������������������</title>
<para>���������������������������������������������������������������������������������������������������������������������������������������������������������������������������
&FED; ������������������������</para>
<para>��������������� <command>yum</command>
���������������������������������������������������������
<command>yum</command> ������������������������������������������������������
<xref linkend="sn-yum-installing-frompackage"/>���</para>
</caution>
</section>
<section id="sn-about-dependencies">
<title>������������������</title>
<indexterm>
<primary>������������</primary>
<secondary>������</secondary>
</indexterm>
<para>&FED; ���������������������������������������
<firstterm>���</firstterm>������������������������������������������������������������������������������������������������������������������������
<firstterm>������</firstterm>���������������������������������������&FED;
��������������������������������������������� RPM ���������������������������������������
RPM ������������</para>
<para><command>yum</command>
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<command>yum</command>
������������������������������������������</para>
</section>
<section id="sn-package-names">
<title>���������������������</title>
<indexterm>
<primary>���������</primary>
<secondary>���������������</secondary>
</indexterm> <indexterm>
<primary>���������</primary>
<secondary>������</secondary>
</indexterm>
<para>���������������������������������������������������������������������������������������������������������
&FC; ��� <filename>tsclient</filename> ���������������������</para>
<screen>
<filename>tsclient-0.132-6.i386.rpm</filename>
</screen>
<para>������������������������������������������������������������������������</para>
<itemizedlist>
<listitem>
<para>������������������<filename>tsclient</filename></para>
</listitem>
<listitem>
<para>���������������������������������������������������<filename>tsclient-0.132-6</filename></para>
<!-- In what instances is the release number not needed? For many -->
<!-- package updates, only the release number might change. Although it -->
<!-- might be superfluous, it's never *bad* to include it, right? [PWF] -->
</listitem>
<listitem>
<para>���������������������������������������<filename>tsclient.i386</filename></para>
</listitem>
</itemizedlist>
<para>���������������������<command>yum</command> ���
<filename>������.������</filename>
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
<emphasis>������</emphasis> ���������</para>
<variablelist>
<varlistentry>
<term>i386</term>
<listitem>
<para>��������������������� Intel ���������������</para>
</listitem>
</varlistentry>
<varlistentry>
<term>noarch</term>
<listitem>
<para>������������������</para>
</listitem>
</varlistentry>
<varlistentry>
<term>ppc</term>
<listitem>
<para>������ PowerPC ��������������� Apple Power Macintosh</para>
</listitem>
</varlistentry>
<varlistentry>
<term>x86_64</term>
<listitem>
<para>������ 64 ��� Intel ������������������ Opterons</para>
</listitem>
</varlistentry>
</variablelist>
<para>��������������������������������� Intel ���������������������
<option>i386</option>, <option>i586</option>,
<option>i686</option> ��� <option>x86_64</option>
������������������������������������������������������ Intel ���������VIA C3
������������������������������������������������ <option>i586</option>
������������������������������ Intel
��������������������������������������������������������� AMD
������������������������������ <option>i686</option>
������������</para>
<para>��� <command>yum</command>
������������������������������������������������������<command>yum</command>
������������������������������������������������������������������������������������</para>
<para>������������������������������������������������������������������������
<command>yum</command>
���������������������������������������������������������������������������������������������������������������������������</para>
<tip>
<title>���������������</title>
<para>������������ <command>yum</command>
���������������������������������������������������������<replaceable>name</replaceable>,
<replaceable>name.architecture</replaceable>,
<replaceable>name-version</replaceable>,
<replaceable>name-version-release</replaceable>,
<replaceable>name-version-release.architecture</replaceable>, ���
<replaceable>epoch:name-version-release.architecture</replaceable>���</para>
</tip>
</section>
</section>
<section id="sn-software-management-tools">
<title>&FC; ������������������������</title>
<indexterm>
<primary>������/������������������������</primary>
</indexterm> <indexterm>
<primary>������������</primary>
</indexterm> <indexterm>
<primary>up2date</primary>
</indexterm>
<para><command>yum</command>
���������������������������������������������&FC;
������������������������������������������ <command>yum</command>
������������</para>
<para>������������������������ <application>Alert
Icon</application>������������������������������������������������������������������������������������������������������������������������������������������������������������������
<application>up2date</application>
������������������������������������������������������</para>
<para>&FC; ������������������
<application>system-config-packages</application>
������������������������������������������������������������������������
<menuchoice><guimenu>Desktop</guimenu><guisubmenu>System
Settings</guisubmenu><guimenuitem>Add/Remove
Applications</guimenuitem></menuchoice>������
<application>up2date</application> ��� <command>yum</command>
���������<application>system-config-packages</application> ������������
&FC;
������������������������������������������������������������������������������������������������������������������</para>
<para>��������������� <command>rpm</command>
������������������������������������������ RPM
������������������������������������������������������������������������������������������
<command>rpm</command>
������������������������������������������������������������������������������������������������<command>yum</command>
���������������������������������</para>
<caution>
<title>���������������������</title>
<para><application>up2date</application> ���
<command>yum</command>
���������������������������������������������������������������������������������������������������������</para>
</caution>
</section>
<section id="sn-managing-packages">
<title>������ <command>yum</command> ������������</title>
<indexterm>
<primary>yum</primary>
<secondary>������������</secondary>
</indexterm>
<para>������ <command>yum</command>
���������������������������������������������������������</para>
<para>
<itemizedlist>
<listitem>
<para>������������������������</para>
</listitem>
<listitem>
<para>������������������������������������������</para>
</listitem>
<listitem>
<para>������������������������������������</para>
</listitem>
<listitem>
<para>������������������������������������������</para>
</listitem>
</itemizedlist>
</para>
<!-- SE: This duplicates text from the admonition in sn-about-repositories. It's
here as well because the Fedora site has a link straight to this section -->
<important>
<title>������������������������������������</title>
<para>��������������� <command>yum</command>
���������������������������������������������������������
<command>yum</command> ������������������������������������������������������
<xref linkend="sn-yum-installing-frompackage"/>���</para>
</important>
<para>������ <command>yum</command>
������������������������������������������������������������/������������</para>
<para>���������������������<command>yum</command>
���������������������������������������������������������������������������������������������������<command>yum</command>
���������������������������������������������������������������������</para>
<para>���������������������������<command>yum</command>
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<example id="yum-transaction-format">
<title><command>yum</command> ���������������������</title>
<para>��������������������� <filename>tsclient</filename>
���������������</para>
<screen>
<computeroutput>=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
tsclient i386 0.132-6 base 247 k
Installing for dependencies:
rdesktop i386 1.4.0-2 base 107 k
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 355 k
Is this ok [y/N]:</computeroutput>
</screen>
</example>
<para>��������������������������������������� <keycap>y</keycap>
��������������������������������� <keycap>N</keycap> ���
<keycap>Enter</keycap>(������)���<command>yum</command>
������������������������������������</para>
<note>
<title>���������������</title>
<para><command>yum</command>
������������������������������������������������������������������������������������</para>
</note>
<para><command>yum</command>
���������������������������������������������������������
<command>rpm</command> ���������������������</para>
<example id="yum-publickey-import">
<title><command>yum</command> ���������������������</title>
<para>������������������������������������</para>
<screen>
<computeroutput>warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID
4f2a6fd2
public key not available for tsclient-0.132-6.i386.rpm
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Importing GPG key 0x4F2A6FD2 "Fedora Project &lt;fedora(a)redhat.com&gt;"
Is this ok [y/N]:</computeroutput>
</screen>
</example>
<para>��������������������������������� <keycap>y</keycap>
��������������������������������������������������� <keycap>N</keycap> ���
<keycap>Enter</keycap>(������)���<command>yum</command>
������������������������������������</para>
<para>���������������������������������������������<command>yum</command>
������������������������������������������������������������������������������������������������������������������������������<command>yum</command>
������������������������������������</para>
<para>���������������������������������������
<filename>/var/log/yum.log</filename>
��������������������������������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<tip>
<title>���������������</title>
<para><command>yum</command>
���������������������������������������������������������������������������������������
<filename>/var/cache/yum/</filename>
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
</tip>
<section id="sn-yum-installing-withrepositories">
<title>������ <command>yum</command>
���������������</title>
<indexterm>
<primary>������������</primary>
<see>���������������</see>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>���������������
<filename>tsclient</filename>������������������</para>
<screen>
<userinput>su -c 'yum install
<replaceable>tsclient</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>������������������ <filename>MySQL
Database</filename>������������������</para>
<screen>
<userinput>su -c 'yum groupinstall "<replaceable>MySQL
Database</replaceable>"'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<important>
<title>������������������������</title>
<para>������������������������������������&FED;
������������������������������������������������������������������������������������������������
<menuchoice><guimenu>Desktop</guimenu><guisubmenu>System
Settings</guisubmenu><guisubmenu>Server
Settings</guisubmenu><guimenuitem>Services</guimenuitem></menuchoice>������������������������������
<command>chkconfig</command> ���
<command>service</command>���</para>
</important>
</section>
<section id="sn-yum-updating-withrepositories">
<title>������ <command>yum</command> ������������</title>
<indexterm>
<primary>������</primary>
<secondary>���������</secondary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>��������� <filename>tsclient</filename>
���������������������������������</para>
<screen>
<userinput>su -c 'yum update
<replaceable>tsclient</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<important>
<title>���������������������������������</title>
<para>������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
</important>
<para>������������������ <filename>MySQL Database</filename>
������������������������������������</para>
<screen>
<userinput>su -c 'yum groupupdate "<replaceable>MySQL
Database</replaceable>"'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<note>
<title>������������������</title>
<para>��������������� &FED; ��������������������������������� <xref
linkend="sn-updating-your-system"/> ���������������������</para>
</note>
</section>
<section id="sn-yum-removing-software">
<title>������ <command>yum</command> ������������</title>
<indexterm>
<primary>������������</primary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>������������������<command>yum</command>
������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<para>��������� <filename>tsclient</filename>
������������������������</para>
<screen>
<userinput>su -c 'yum remove
<replaceable>tsclient</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>������������������ <filename>MySQL Database</filename>
������������������������������������</para>
<screen>
<userinput>su -c 'yum groupremove "<replaceable>MySQL
Database</replaceable>"'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<note>
<title>������������������������������������</title>
<para>������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
</note>
</section>
</section>
<section id="sn-searching-packages">
<title>������ <command>yum</command> ������������</title>
<indexterm>
<primary>���������</primary>
<secondary>������</secondary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>���������</secondary>
</indexterm>
<para>������ <command>yum</command>
������������������������������������������������������������������������������������������������������������������������������������</para>
<para>���������������������������������������������������������������������������������������������������������������</para>
<section id="sn-searching-packages-byname">
<title>������������������������������</title>
<para>������������������������������ <option>list</option>
������������������������
<filename>tsclient</filename>������������������</para>
<screen>
<userinput>su -c 'yum list
<replaceable>tsclient</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>���������������������������������������������������������������������������������������������������
<filename>tsclient</filename> ��� 0.132 ���������������������</para>
<screen>
<userinput>su -c 'yum list
<replaceable>tsclient-0.132</replaceable>'</userinput>
</screen>
<note>
<title>���������������������</title>
<para>������ <xref
linkend="sn-package-names"/>������������������������������������������������������������������������</para>
</note>
</section>
<section id="sn-searching-packages-advanced">
<title>������������</title>
<para>������������������������������������������
<option>search</option> ��� <option>provides</option>
��������������������������������� <command>yum</command>
���������������������������������������������������������������������������</para>
<para><option>search</option>
������������������������������������������������������������������������������������������������������������������������������������������������������
PalmPilots ���������������������������</para>
<screen>
<userinput>su -c 'yum search
<replaceable>PalmPilot</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para><option>provides</option>
������������������������������������������������������������������������
<option>search</option> ���������������������������
<command>yum</command>
���������������������������������������������</para>
<para>��������������������������� <filename>libneon</filename>
������������������������</para>
<screen>
<userinput>su -c 'yum provides
<replaceable>libneon</replaceable>'</userinput>
</screen>
<para>������������������������ MTA (Mail Transport Agent, ������������������)
������������������������������ <filename>mta</filename>
���������������</para>
<screen>
<userinput>su -c 'yum provides
<replaceable>MTA</replaceable>'</userinput>
</screen>
<para>��������������������������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>���������������������������������������������������������������<option>?</option>
���������������������������<option>*</option> ������ 0
���������������������������������������������������������
(<option>\</option>)���</para>
<para>��� <option>list</option> ���������������
<filename>tsc</filename> ���������������������������</para>
<screen>
<userinput>su -c 'yum list
<replaceable>tsc\*</replaceable>'</userinput>
</screen>
<tip>
<title>���������������</title>
<para>������ Perl ��� Python
���������������������������������������������</para>
</tip>
</section>
<section id="sn-package-matches">
<title>������������</title>
<para>������ <command>yum</command>
������������������������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<para>��������������� <filename>shadowutils</filename> ���
<filename>shadow-util</filename> ���������������������
<filename>shadow-utils</filename> ������������������������������
<filename>shadow-util\?</filename> ���
<filename>shadow\*</filename>������������������������������������������������������</para>
</section>
</section>
<section id="sn-updating-your-system">
<title>������ <command>yum</command>
������������������</title>
<indexterm>
<primary>������</primary>
<secondary>������������</secondary>
</indexterm> <indexterm>
<primary>yum</primary>
<secondary>������������������</secondary>
</indexterm>
<para>������ <option>update</option> ��������������������� &FED;
���������������������������������������������������������</para>
<para>������������������������������������������������</para>
<screen>
<userinput>su -c 'yum update'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������</para>
<section id="sn-automatic-updating">
<title>������������������������</title>
<indexterm>
<primary>������������</primary>
</indexterm>
<para>&FC; ������ <filename>yum</filename>
������������������������������������������������������������������������������������������������������������������</para>
<screen>
<userinput>su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum
start'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<note>
<title>������������������������������</title>
<para>��������������������������� <command>yum</command>
������������������������������������������
<filename>/etc/rc.d/init.d/yum</filename>������������������������������
<filename>/etc/cron.daily/yum.cron</filename>������������������
<command>cron</command>
���������������������������������������������������������������</para>
</note>
</section>
</section>
<section id="sn-using-repositories">
<title>������������������������</title>
<indexterm>
<primary>&FEX;</primary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>&FED; ������������������ &FP; ������������������������
&FEX;������������������������ &FC; ������������������</para>
<note>
<title>��������������� &FC; ��� &FEX; ������</title>
<para>��������������������� &FED; 3 ������������ &FEX;���������
<ulink
url="http://fedora.redhat.com/projects/extras/"/>
��������������������� &FED; 1 ��� &FED; 2 ������������������������������ <ulink
url="http://www.fedora.us/"/>���</para>
</note>
<para>������ &FP;
������������������������������������������������������������������������������������������������������������������������
&FED; ���������������������������<ulink
url="http://www.jpackage.org/"/> ������������ Java
���������������������</para>
<section id="sn-adding-repositories">
<title>������������������������������</title>
<indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>������������������������������������������������������
<filename>/etc/yum.repos.d/</filename>
���������������������������������������������������������������������������������������������������������������</para>
<tip>
<title>���������������������</title>
<para>������������������������������ <filename>.repo</filename>
���������</para>
</tip>
<para>������������ <systemitem
class="username">root</systemitem>
���������������������������������������������������������������
<filename>example.repo</filename>������������������</para>
<screen>
<userinput>su -c 'cp example.repo /etc/yum.repos.d/'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>���������������������������������������������
<command>gpgkey</command>
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
<xref linkend="sn-authorizing-package-sources"/>���</para>
<note>
<title>��������� <application>up2date</application>
������</title>
<para>��� &FED; 4 ���������<command>yum</command>
��������������������� <application>up2date</application> ������������
&FED; 3 ���������������������������������������������������
<application>up2date</application>
���������������������������������������������������
<filename>/etc/sysconfig/rhn/sources</filename>���</para>
</note>
</section>
<section id="sn-authorizing-package-sources">
<title>������������������������</title>
<indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>������������ <command>rpm</command>
��������������������������������� <command>rpm</command> ���
<option>import</option> ������������������������
<filename>GPG-PUB-KEY.asc</filename>������������������</para>
<screen>
<userinput>su -c 'rpm --import
<replaceable>GPG-PUB-KEY.asc</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>������������������������������������������������������������������������
<wordasword>www.therepository.com</wordasword> ������������
<filename>GPG-PUB-KEY.asc</filename>������������������</para>
<screen>
<userinput>su -c 'rpm --import
<
replaceable>http://www.therepository.com/GPG-PUB-KEY.asc</replaceab...
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������</para>
<important>
<title>��� &FED; 3 ��������� &FED; ������</title>
<para>������ &FED; 3 ������������ <command>rpm</command>
��������������� &FED; ������������������������ <command>su -c 'rpm --import
/usr/share/rhn/RPM-GPG-KEY-fedora'</command>���</para>
</important>
</section>
<section id="sn-compat-repositories">
<title>���������������������</title>
<indexterm>
<primary>���������</primary>
<secondary>���������������</secondary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>���������</secondary>
</indexterm>
<para>&FEX; ������������������������ &FC;
������������������������������������������������������������ &FP;
���������������������������������������������������������������������</para>
<para>���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
&FED; ������������������������������������</para>
<para>��������������������������������������������������������� &FP;
��������������������������������� &FP;
������������������������������������������������������������������������������������������</para>
<caution>
<title>������������������</title>
<para>���������������������������������������������������������<command>yum</command>
������������������</para>
</caution>
<para>������������������ &FED;
��������������������������������������������� &FED;
������������������������������������������������������������������ &FED;
���������</para>
<tip>
<title>������������ <command>yum</command>
������������������</title>
<para>��� <command>yum</command> 2.1
������������������������������������������������������������ &FED; 3
��������������������������������������������������������������� &FED;
���������������������������������������������������������������
<command>yum</command> ���������������������������������������������
<filename>repodata/</filename> ���������������</para>
</tip>
</section>
</section>
<section id="sn-yum-installing-frompackage">
<title>���������������������������������������������</title>
<indexterm>
<primary>������������</primary>
<secondary>������������</secondary>
<see>������������������������</see>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������������������������</secondary>
</indexterm>
<para>������������������������ <command>yum</command>
������������������������������������������������������������������������������������������������������������������
<option>localinstall</option>
���������������������������������������</para>
<important>
<title>���������������</title>
<para>������������������������������������������������������������������������������������������
<xref linkend="sn-authorizing-package-sources"/>���</para>
</important>
<para>������������������
<filename>tsclient-0.132-4.i386.rpm</filename>������������������</para>
<screen>
<userinput>su -c 'yum localinstall
<replaceable>tsclient-0.132-4.i386.rpm</replaceable>'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������</para>
<note>
<title>���������������������������������</title>
<para>���������������������������������������������������<command>yum</command>
������������������������������</para>
</note>
<para>���������������������������������������������������<command>yum</command>
���������������������������������������������������������������������������������������������������������������������������������������������</para>
<caution>
<title>������������������������������</title>
<para>���������������������������������������������������������������������<command>yum
update</command>
���������������������������������������������������������������������������������������������������
RSS ���������������������������������������������������</para>
</caution>
</section>
<section id="sn-yum-maintenance">
<title>������ <command>yum</command></title>
<para><command>yum</command>
������������������������������������������ <command>yum</command>
������������������������������������������������������������������������������������������
<command>yum</command>
������������������������������������������������</para>
<section id="sn-removing-sources">
<title>���������������������������</title>
<indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm> <indexterm>
<primary>������</primary>
<secondary>������</secondary>
</indexterm>
<para>���������������������������������
<command>enable=0</command> ������������ <command>yum</command>
���������������������<command>yum</command>
������������������������������������������������</para>
<para>���������������������������</para>
<procedure>
<step>
<para>��� <filename>/etc/yum.repos.d/</filename>
���������������������������������</para>
</step>
<step>
<para>��� <filename>/var/cache/yum/</filename>
���������������������������������������</para>
</step>
</procedure>
<!-- What with the "web of trust," removing GPG keys is not really -->
<!-- something we should encourage. Having an extra GPG key in the RPM -->
<!-- database is not a vulnerability, nor does it hamper the system in -->
<!-- any way. These are probably a couple of reasons Seth didn't build -->
<!-- this function into yum as part of "clean all," for example. Since
-->
<!-- we just had several admonitions against people running the rpm -->
<!-- command on its own anyway, I would just omit this part -->
<!-- completely. [PWF] -->
<!--
<important>
<title>Remove Unneeded Public Keys</title>
<para>
If you will not be using any further packages from a provider,
remove their public key from the <command>rpm</command>
keyring using the procedure described in
<xref linkend="sn-removing-publickeys" />.
</para>
</important>
</section>
<section id="sn-removing-publickeys">
<title>Removing Public Keys</title>
<indexterm>
<primary>public keys, removing</primary>
</indexterm>
<para>
To remove a public key from the keyring you first must determine
the full name of the key, as it registered in
<command>rpm</command>. Run this command to view the details of
the public keys on the <command>rpm</command> keyring:
</para>
<screen>
<userinput>rpm -qi gpg-pubkey-*</userinput>
</screen>
<para>
Locate the heading for the relevant public key. The public key
headings follow this format:
</para>
<example id="publickey-header-format">
<title>Format of <command>rpm</command> Public Key
Headers</title>
<screen>
<computeroutput>Name : gpg-pubkey Relocations: (not
relocatable)
Version : 4f2a6fd2 Vendor: (none)
Release : 3f9d9d3b Build Date: Wed 15 Jun 2005 09:55:33 PM BST
Install Date: Wed 15 Jun 2005 09:55:33 PM BST Build Host: localhost
Group : Public Keys Source RPM: (none)
Size : 0 License: pubkey
Signature : (none)
Summary : gpg(Fedora Project &lt;fedora(a)redhat.com&gt;)
Description :</computeroutput>
</screen>
</example>
<para>
Add the <option>Version</option> and
<option>Release</option>
attributes to <option>gpg-pubkey-</option> to make the complete
name of the key, in the form
<option>gpg-pubkey-Version_number-Release_number</option>. The
<command>rpm</command> identification for the &FP; public key
shown above is: <option>gpg-pubkey-4f2a6fd2-3f9d9d3b</option>.
</para>
<para>
Once you know the identification name of the key, use the
command <command>rpm <option>-e</option></command> to
remove it.
To remove the &FP; public key shown above the exact command
would be:
</para>
<screen>
<userinput>su -c 'rpm -e
<replaceable>gpg-pubkey-4f2a6fd2-3f9d9d3b</replaceable>'</userinput>
</screen>
<para>
Enter the password for the
<systemitem class="username">root</systemitem> account when
prompted.
</para>
-->
</section>
<section id="sn-yum-clearance">
<title>������ <command>yum</command> ������</title>
<indexterm>
<primary>yum</primary>
<secondary>������������</secondary>
</indexterm>
<para>������������������<command>yum</command>
������������������������������������������������������������������������������������������������������������������������������������������������������</para>
<screen>
<userinput>su -c 'yum clean headers'</userinput>
</screen>
<para>���������������������������������������������������</para>
<screen>
<userinput>su -c 'yum clean packages'</userinput>
</screen>
<para>��������������������� <systemitem
class="username">root</systemitem> ������������������</para>
<para>������������������������������������������������������������������������������������������������������������������������</para>
</section>
</section>
<section id="sn-yum-proxy-server">
<title>���������������������������
<command>yum</command></title>
<indexterm>
<primary>���������������</primary>
</indexterm> <indexterm>
<primary>yum</primary>
<secondary>������������������������������</secondary>
</indexterm>
<para>������������������<command>yum</command> ������ HTTP
������������������������������������ <command>yum</command> HTTP
��������������� HTTP/1.1��������������������������� web
��������������������������������������������� FTP ������������������
<command>yum</command> ������ FTP
������������������<filename>squid</filename> ������������������������ HTTP/1.1
��� FTP ������������������������</para>
<tip>
<title>������������������������
<command>yum</command></title>
<para>��������� <filename>yum.conf</filename>
������������������������������ HTTP ��������������������������� web
��������������������������������������� <command>yum</command> ������ FTP
������������������������ FTP ���������&FED; ������������������ HTTP ���
FTP���</para>
</tip>
<section id="sn-yum-proxy-server-global">
<title>���������������������������</title>
<para>��������������� <command>yum</command>
������������������������������������������ <filename>/etc/yum.conf</filename>
������������������������������������<option>proxy</option>
��������������������������������������������������� URL��������� TCP
���������������������������������������������������������������������������������
<option>proxy_username</option> ���
<option>proxy_password</option> ���������������������������</para>
<para>������������������ <command>yum</command>
��������������������� <systemitem
class="systemname">mycache.mydomain.com</systemitem>������������������
3128������������ <systemitem
class="username">yum-user</systemitem>���������
<systemitem>qwerty</systemitem>���</para>
<example id="config-file-httpproxy">
<title>���������������������������������������������</title>
<screen>
<computeroutput># ��������������� - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# ������ yum ���������������������
proxy_username=yum-user
proxy_password=qwerty</computeroutput>
</screen>
</example>
<note>
<title>������������</title>
<para>������������ <filename>/etc/yum.conf</filename>
���������������������������<emphasis>������</emphasis> ���������������
<command>yum</command>
���������������������������������������������</para>
</note>
</section>
<section id="sn-yum-proxy-server-peruser">
<title>������������������������������������</title>
<para>������������������������������������������������������������������������������������������������������
shell ��������������������������� <command>bash</command> shell���������������
<filename>~/.bash_profile</filename> ������������������������
<command>yum</command> ��������������������� <systemitem
class="systemname">mycache.mydomain.com</systemitem>������������������
3128���</para>
<example id="profile-script-httpproxy">
<title>���������������������������������������</title>
<screen>
<computeroutput># ������������������������������������
http_proxy="http://mycache.mydomain.com:3128"
export http_proxy</computeroutput>
</screen>
</example>
<para>���������������������������������������������������������������������
URL��������������������� <systemitem
class="username">yum-user</systemitem>���������
<systemitem>qwerty</systemitem>������������������</para>
<example id="profile-script-httpproxy-withpassword">
<title>���������������������������������������������</title>
<screen>
<computeroutput># ������������������������������������������������/������
http_proxy="http://yum-user:qwerty@mycache.mydomain.com:3128"
export http_proxy</computeroutput>
</screen>
</example>
<note>
<title>������������ <option>http_proxy</option></title>
<para>������������ <command>http_proxy</command> ������
<command>curl</command> ������������������������������
<command>yum</command> ������������������������������
<command>http_proxy</command>���<command>curl</command>
���������������������������������������</para>
</note>
</section>
</section>
<!-- SE: This is at the end of the document, since it looks out of place in section 1
-->
<section id="sn-acknowledgements">
<title>������</title>
<para>Paul Frields ���������������������Timothy Murphy ��������� BETA
���������</para>
</section>
<index id="generated-index"/>
</article>
<!--
Local variables:
mode: xml
fill-column: 72
End:
-->
Index: Makefile
===================================================================
RCS file: /cvs/docs/yum-software-management/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Makefile 18 Sep 2005 22:44:53 -0000 1.5
+++ Makefile 15 Nov 2005 14:42:32 -0000 1.6
@@ -8,7 +8,7 @@
# Copyright 2005 Tommy Reynolds,
MegaCoder.com
###############################################################################
-LANGUAGES = en
+LANGUAGES = en zh_CN
DOCBASE = yum-software-management
XMLEXTRAFILES-en =