old-www/LDP/GNU-Linux-Tools-Summary/html/finding-packages-tools.html

450 lines
7.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Finding Packages/Tools</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="GNU/Linux Command-Line Tools Summary"
HREF="index.html"><LINK
REL="UP"
TITLE="Appendix"
HREF="a12264.html"><LINK
REL="PREVIOUS"
TITLE="Appendix"
HREF="a12264.html"><LINK
REL="NEXT"
TITLE="Further Reading"
HREF="further-reading.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNU/Linux Command-Line Tools Summary</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="a12264.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix A. Appendix</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="further-reading.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="FINDING-PACKAGES-TOOLS"
></A
>A.1. Finding Packages/Tools</H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="FINDING-MORE-USEFUL-TOOLS"
></A
>A.1.1. Finding more useful tools</H2
><P
>If you are looking to find more tools, the <SPAN
CLASS="ACRONYM"
>GNU</SPAN
> project (GNU's Not Unix) maintains a directory, a website listing categorized links to various free-software tools (which they consider useful) called <A
HREF="http://www.gnu.org/directory/"
TARGET="_top"
>the <SPAN
CLASS="ACRONYM"
>GNU</SPAN
> Directory.</A
></P
><P
>Also try sites such as <A
HREF="http://www.sweet.org"
TARGET="_top"
>Sweet Code</A
> which offer mailing lists of useful tools which they find.</P
><P
>You may also try looking at the most highly rated, most active or most downloaded programs at <A
HREF="http://www.sourceforge.net"
TARGET="_top"
>SourceForge</A
> and <A
HREF="http://www.freshmeat.net"
TARGET="_top"
>FreshMeat.</A
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="FINDING-PARTICULAR-TOOLS"
></A
>A.1.2. Finding a particular tool(s)</H2
><P
>Many of the tools listed in this guide are part of a package of tools, such as <EM
>diffutils </EM
>which contains the various tools used to find differences between files, such as <EM
>diff, sdiff, diff3, cmp</EM
>. Most small tools are bundled together in this fashion. Most major distribution's will offer a search function to help you search the packages by file, you can of course do this via the command-line interface or a GUI.</P
><P
>If you need to search the distribution's available packages via the command-line, the method will vary depending on the distribution you are using, see the subsections below or consult your distribution's documentation (or of course the internet):</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="FINDING-MANDRIVA"
></A
>A.1.2.1. Mandriva (urpm* commands, rpm based)</H3
><P
>To find where a particular file came from use <EM
>urpmf</EM
>.</P
><P
>Command syntax:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>urpmf file_name</PRE
></FONT
></TD
></TR
></TABLE
><P
>The results are often overwhelming as this particular command will take a string and list every file of every package in it's database that contains the particular keyword (ie. both uninstalled and installed packages). To refine the results you may want to add a pipe to it and send it through <EM
>grep -w file_name</EM
> (the <EM
>-w</EM
> option will only show you only exact (whole word) matches). How you would do this is shown below:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>urpmf file_name | grep -w file_name</PRE
></FONT
></TD
></TR
></TABLE
><P
>For more information on the urpm* commands, please refer to the tip towards the end of this section: <A
HREF="rpm.html"
>Section 20.1</A
>. </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="FINDING-RPMS"
></A
>A.1.2.2. Red Hat (rpm)</H3
><P
>To find which package a particular file came from use <EM
>rpm</EM
> with the <EM
>-qf</EM
> option.</P
><P
>Command syntax:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>rpm -qf /path/to/the/file</PRE
></FONT
></TD
></TR
></TABLE
><P
>This will find which package the file came from. You need to use <EM
>rpm -qf</EM
> not with a keyword but with the location of the actual file. To find more information on the particular package listed use <EM
>rpm</EM
> with the <EM
>-qi</EM
> option.</P
><P
>Command syntax:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>rpm -qi package_name</PRE
></FONT
></TD
></TR
></TABLE
><P
>Note that the package name is the name of the package without the <EM
>.arch.rpm </EM
>(often <EM
>.i386.rpm</EM
>) extension on the end.</P
><P
>For more information on the usage of rpm, please refer to this section <A
HREF="rpm.html"
>Section 20.1</A
>.</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="FINDING-DEBIAN"
></A
>A.1.2.3. Debian (deb)</H3
><P
>To find where a particular file came from use dpkg with the <EM
>-S</EM
> option.</P
><P
>There are two ways to do this:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>dpkg -S file_name</PRE
></FONT
></TD
></TR
></TABLE
><P
>or:</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>dpkg -S /path/to/file</PRE
></FONT
></TD
></TR
></TABLE
><P
>You may also like to try (if it's installed, it's generally a lot faster than the <EM
>dpkg</EM
> search):</P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>dlocate -S file_name</PRE
></FONT
></TD
></TR
></TABLE
><P
>For more information on dpkg and dlocate please refer to the relevant manual pages and online sources of information.</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="FINDING-PACKAGES"
></A
>A.1.3. Finding package(s)</H2
><P
>Packages can be found via the internet utilizing sites such as:</P
><P
></P
><UL
><LI
><P
><A
HREF="http://rpmfind.net/linux/rpm"
TARGET="_top"
>RPMFind</A
> for <SPAN
CLASS="ACRONYM"
>RPM</SPAN
> based packages.</P
></LI
><LI
><P
><A
HREF="http://www.debian.org/distrib/packages"
TARGET="_top"
>Debian Package List</A
>for deb packages.</P
></LI
><LI
><P
><A
HREF="http://www.rpmseek.com"
TARGET="_top"
>RPMSeek</A
>, this site intends to index Debian packages as well as RPM.</P
></LI
><LI
><P
><A
HREF="http://www.tuxfinder.org"
TARGET="_top"
>TuxFinder</A
> where you can search for deb, rpm, tgz, iso and even documentation.</P
></LI
></UL
><P
>Also try the author's homepage and large sites such as <A
HREF="http://www.freshmeat.net"
TARGET="_top"
>FreshMeat</A
> and <A
HREF="http://www.sourceforge.net"
TARGET="_top"
>SourceForge.</A
> </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="a12264.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="further-reading.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Appendix</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="a12264.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Further Reading</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>