Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f52e0fb9fade22f42fbf8116c7fb63ae > files > 33

easyrpmbuilder-0.5.6-3.mga4.x86_64.rpm

<HTML
><HEAD
><TITLE
>Using RPM</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="RPM HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="General Information"
HREF="gen-info.html"><LINK
REL="NEXT"
TITLE="Now what can I really do with RPM?"
HREF="rpm-do.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="oswg.css"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>RPM HOWTO: RPM at Idle</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gen-info.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="rpm-do.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="USE"
>4. Using RPM</A
></H1
><P
>      In its simplest form, RPM can be used to install packages:
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>rpm -i foobar-1.0-1.i386.rpm
    </PRE
></TD
></TR
></TABLE
><P
>      The next simplest command is to uninstall a package:
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>rpm -e foobar
    </PRE
></TD
></TR
></TABLE
><P
>      One of the more complex but <I
CLASS="EMPHASIS"
>highly</I
> useful commands
      allows you to install packages via FTP.  If you are connected to the net
      and want to install a new package, all you need to do is specify the file
      with a valid URL, like so:
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>rpm -i ftp://ftp.redhat.com/pub/redhat/rh-2.0-beta/RPMS/foobar-1.0-1.i386.rpm
    </PRE
></TD
></TR
></TABLE
><P
>      Please note, that RPM will now query and/or install via FTP.
    </P
><P
>      While these are simple commands, rpm can be used in a multitude
      of ways.  To see which options are available in your version of
      RPM, type:
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>rpm --help
    </PRE
></TD
></TR
></TABLE
><P
>      You can find more details on what those options do in the RPM man
      page, found by typing:
    </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>man rpm
    </PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gen-info.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="rpm-do.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>General Information</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Now what can I really do with RPM?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>