⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 533-540.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Using Linux:Managing Applications</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789716232//-->

<!--TITLE=Using Linux//-->

<!--AUTHOR=William Ball//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=30//-->

<!--PAGES=533-540//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="528-533.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch31/541-544.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

</P>

<P>In this format, the description of the package and all its files marked by type are clearly visible. In some respects, it is easier to use than the command-line queries.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077">Installing and Using the <I>xrpm</I> Client

</FONT></H4>

<P>Another graphical X11 package management utility similar to <TT>glint</TT> is <TT>xrpm</TT>. Its interface is slightly different, but it provides many powerful features not found in <TT>glint</TT>.</P>

<P>Once the <TT>rpm</TT> version is downloaded, installation is as follows:</P>

<!-- CODE SNIP //-->

<PRE>

<B># rpm -ivvh xrpm-2.1-2.i386.rpm</B>

</PRE>

<!-- END CODE SNIP //-->



<TABLE BORDER="2" BORDERCOLOR="#0000" ALIGN="CENTER">

<TR><TD><FONT SIZE="+1"><B>Want the latest version of xrpm?</B></FONT>

<BR><TT><B>xrpm</B></TT> is freely available from <A HREF="http://www.gmsys.com/xrpm.html">http://www.gmsys.com/xrpm.html</A>. It is distributed in both <TT>rpm</TT> and <TT>tar.gz</TT> formats. As of this writing, the newest version is 2.1-2.</TABLE>



<P>Installation of the <TT>tar.gz</TT> distribution is slightly more complicated; complete instructions are given on the <TT>xrpm</TT> web page mentioned earlier.</P>

<P>Once installed, <TT>xrpm</TT> can be invoked from the command line of an X11 terminal window by typing the following:</P>

<!-- CODE SNIP //-->

<PRE>

<B># xrpm</B>

</PRE>

<!-- END CODE SNIP //-->

<P>This brings up the <TT>xrpm</TT> main window, shown in Figure 30.7.</P>

<P><A NAME="Fig7"></A><A HREF="javascript:displayWindow('images/30-07.jpg',424,452 )"><IMG SRC="images/30-07t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-07.jpg',424,452)"><FONT COLOR="#000077"><B>Figure 30.7</B></FONT></A>&nbsp;&nbsp;Main window of <TT>xrpm</TT>.

</P>

<P>The main window of <TT>xrpm</TT> contains a list of all installed packages at the left and the following buttons at the right:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>Query</TT>&#151;Queries a package and outputs the results into a window (see Figure 30.8).

<P><A NAME="Fig8"></A><A HREF="javascript:displayWindow('images/30-08.jpg',600,331 )"><IMG SRC="images/30-08t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-08.jpg',600,331)"><FONT COLOR="#000077"><B>Figure 30.8</B></FONT></A>&nbsp;&nbsp;Results of a package query in <TT>xrpm</TT>.

</P>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>List Files</TT>&#151;Lists the files in a given package in a separate window.

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>Remove</TT>&#151;Removes an installed package.

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>Install</TT>&#151;Installs a selected package.

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>Exit</TT>&#151;Exits <TT>xrpm.</TT>

</DL>

<P>When <TT>xrpm</TT> first starts up, all the buttons except <TT>Install</TT> are active. Take a look at the functionality of each of these buttons.</P>

<P>In <TT>xrpm</TT>, to execute a query on a package, simply click on a package name in the list and then click on the Query button. The resulting query is slightly different than <TT>glint</TT>&#151;the files included in the package are not listed. An example of a package query is given in Figure 30.8.</P>

<P>To list the files in a package, click on a package name in the list and then click on the List Files button. This action produces a list of files in the selected package. The listing is slightly different than <TT>glint</TT>, because it does not include extra information about the files.</P>

<P>To remove a package, simply click on a package and then click on the Remove button. This action brings up the Remove RPM window shown in Figure 30.9. To remove the package you selected, click on the Remove button in this window. Any errors encountered during removal are reported in separate windows. To cancel the removal, click on the Close button. The Options button gives access to some of the more advanced options, which are not usually required.</P>

<P><A NAME="Fig9"></A><A HREF="javascript:displayWindow('images/30-09.jpg',440,283 )"><IMG SRC="images/30-09t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-09.jpg',440,283)"><FONT COLOR="#000077"><B>Figure 30.9</B></FONT></A>&nbsp;&nbsp;Remove RPM window in <TT>xrpm</TT>.

</P>

<P><TT>xrpm</TT> also provides the ability to list packages by their groups. For example, to list all the packages installed in the Applications group, select the Applications menu item from the Groups menu. A new list appears, listing each package&#146;s subgroup, as shown in Figure 30.10.</P>

<P><A NAME="Fig10"></A><A HREF="javascript:displayWindow('images/30-10.jpg',573,451 )"><IMG SRC="images/30-10t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-10.jpg',573,451)"><FONT COLOR="#000077"><B>Figure 30.10</B></FONT></A>&nbsp;&nbsp;Application group listing in <TT>xrpm</TT>.

</P>

<P>To restore the full list of all installed packages, select List Installed from the File menu.

</P>

<P>To install a new package using <TT>xrpm</TT>, simply select a location containing <TT>rpm</TT> files. This location can be on either the local machine or an ftp site. To install packages from the local machine, select Open Directory from the File menu. This brings up a dialog box, shown in Figure 30.11, from which a directory containing <tt>rpms</tt> can be selected.</P>

<P><A NAME="Fig11"></A><A HREF="javascript:displayWindow('images/30-11.jpg',475,399 )"><IMG SRC="images/30-11t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-11.jpg',475,399)"><FONT COLOR="#000077"><B>Figure 30.11</B></FONT></A>&nbsp;&nbsp;Selecting a directory containing <TT>rpms</TT> in <TT>xrpm</TT>.

</P>

<P>After a directory has been selected, the list in the main <TT>xrpm</TT> window changes to a list of all the available <TT>rpms</TT> for installation in that directory. At this point, the Install button becomes active and the Remove button becomes inactive. Figure 30.12 shows all the available <TT>rpms</TT> on the Red Hat Power Tools CD-ROM.</P>

<P><A NAME="Fig12"></A><A HREF="javascript:displayWindow('images/30-12.jpg',422,449 )"><IMG SRC="images/30-12t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-12.jpg',422,449)"><FONT COLOR="#000077"><B>Figure 30.12</B></FONT></A>&nbsp;&nbsp;Available <TT>rpms</TT> for installation.

</P>

<P>To install a package, click on the package and then click on the Install button, which brings up the Install RPM window (shown in Figure 30.13). To install the selected package, click on the Install button. This installs the package and reports any errors in a separate window. To cancel the installation, click on the Close button. As in the Remove RPMS window, the Options button gives access to several advanced options, which are not usually needed.

</P>

<P><A NAME="Fig13"></A><A HREF="javascript:displayWindow('images/30-13.jpg',437,284 )"><IMG SRC="images/30-13t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/30-13.jpg',437,284)"><FONT COLOR="#000077"><B>Figure 30.13</B></FONT></A>&nbsp;&nbsp;Install RPM window in <TT>xrpm</TT>.

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="528-533.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch31/541-544.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -