md5sum
rpm(m)                      KSI Linux                      rpm(m)




       rpm -    Red Hat


       rpm []


       rpm -    ,  , , , ,  .   ,  ,    .

              :   ,   ,  ,  ,  tar-, ,   , , , , ,  ,  ,  ,     .



         :
           rpm -i [--initdb]
           rpm -i [--rebuilddb]

       :
           rpm [-b|t] [spec-]+
           rpm [--rebuild] [sourcerpm]+
           rpm [--tarbuild] [tarredsource]+

       :
           rpm [--query] [-]
           rpm [--querytags]

         :
           rpm [--install] [-] [-]+
           rpm [--freshen|-F] [-] [-]+
           rpm [--uninstall|-e] [-] []+
           rpm [--verify|-V] [-] []+

       :
           rpm [--verify|-V] [-] []+
           rpm [--resign] [-]+
           rpm [--addsign] [-]+

       :
           rpm [--showrc]
           rpm [--setperms] []+
           rpm [--setgids] []+




               .

       -vv       .

       --quiet
                   -  ,   .

       --help   ,  ,    rpm.

       --version
                ,     rpm.

       --rcfile <->
                          <->        rpm          .           <->
              /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc.           ;
              $HOME.

       --root <>
                       <>.   ,   ,    <>   pre  post     chroot()
              <>.

       --dbpath <>
                 RPM  <>.

       --justdb
                 ,   .

       --ftpproxy <host>, --httpproxy <host>
               <host>  FTP  HTTP .  .  FTP/HTTP.

       --ftpport <>, --httpport <>
               <>  FTP  HTTP  -.  .  FTP/HTTP.

       --pipe <cmd>
                rpm    <cmd>.



           rpm  :

            rpm -i [-] <_>+

           .      rpm  :

            rpm -U [-] <_>+

            .         ,      .

            rpm [-F|--freshen] [-] <_>+

           ,      .

          <_>    ftp   http  style  URL.            c,    URL.  .
       FTP/HTTP       FTP/HTTP.



       --force
               ,    --replacepkgs, --replacefiles   --oldpackage.

       -h, --hash
               50  "#"      .   -v  .

       --oldpackage
                       ( ).

       --percent
                      .     rpm   .

       --replacefiles
                      ,  .

       --replacepkgs
                        .

       --allfiles
                  ,   "missingok",     .

       --nodeps
                     .

       --noscripts
                -   .

       --notriggers
                -,     .

       --ignoresize
                  .

       --excludepath <>
                ,     <>.

       --excludedocs
                 , (    texinfo).

       --includedocs
                .    .

       --test   ,    .

       --ignorearch
                      RPM    .

       --ignoreos
               RPM    .

       --prefix <>
                  <>   .

       --relocate <_>=<_>
                :  ,    <_>  <_>.

       --badreloc
                  --relocate.     .

       --noorder
                  .     .




          () rpm  :

            rpm -q [-]

         ,       .      --queryformat  .

         printf(f).  (    escape- C  ,     )     printf(f).   rpm
       ,  ,    () ,  ,  {}.    RPMTAG_   .

          :typetag.   :  octal,  date,  shescape,  perms,  fflags
       depflags.

       ,      ,      %{NAME}.   %-30{NAME}%{DISTRIBUTION}.

           --querytags, rpm   ,    .

             -     .

         :

       <_>      ,  <_>.

       -a, --all
                 .

       --whatrequires <capability>
                ,  <capability> .

       --whatprovides <virtual>
                ,  <virtual> .

       -f <>, --file <>
               ,    <>.

       -g <>, --group <>
                  <>.

       -p <_>  ()  <_>.   <_>     ftp  http style URL;        . .
              FTP/HTTP     FTP/HTTP.

       --specfile <specfile>
                 <specfile> ,      .    (,  )  ,   rpm      spec-
              spec-.

       --querybynumber <num>
                    <num>.   .

       --triggeredby <_>
                ,  -,  <_>.


         :

       -i        ,  ,   .  --queryformat   .

       -R, --requires
                ,     .

       --provides
                  ,   .

       --changelog
                  .

       -l, --list
                ,    .

       -s, --state
                   ( -l).          : ,    .

       -d, --docfiles
                   ( -l).

       -c, --configfiles
                   ( -l).

       --scripts
                   ,   /,   .

       --triggers, --triggerscripts
                -,   ,   .

       --dump       :  path  size  mtime  md5sum mode owner group
              isconfig isdoc rdev symlink.          -l, -c, -d.

       --last        ,       .

       --filesbypkg
                   .

       --triggerscripts
                -   .



           rpm  :

            rpm -V|-y|--verify [-]

         RPM.   ,   ,  MD5,  , ,     .   .     ,   () .

       ,      (,  , "--excludedocs")  .

       ,       :


       --nofiles
                .

       --nomd5
                  MD5.

       --nopgp
                 PGP.


                    ,  "c",    ,   .          ,     RPM.   ,    .
              :


       5        MD5

       S

       L

       T

       D

       U

       G

       M        (     )



            RPM  :

            rpm --checksig <__>+

          PGP-,   ,     .     PGP    .    .   PGP.


  ()
           () rpm  :

                rpm -e <_>+


       --allmatches
                 ,  <_>. ,  <_>   ,       .

       --noscripts
                -   .

       --notriggers
                -,     .

       --nodeps
                   .

       --test   ,     :)  -vv.


  ()
            rpm  :

           rpm -[b|t]O [-] <spec_>+

        -b    , spec-.   rpm       gzip ( compress),   -t.   (O),
       .   :


       -bp      "%prep" spec-.        .

       -bl     "list check".   "%files" spec-        .

       -bc      "%build" spec- (   %prep).         "make".

       -bi       "%install"  spec-  (  %prep    %build).    "make
              install".

       -bb       (   %prep, %build  %install).

       -bs        (   %prep, %build  %install).

       -ba      (RPM)   (SRPM)  (   %prep, %build  %install).

            :

       --short-circuit
                 ,  .       -bc  -bi.

       --timecheck
                   "timecheck"   (0    ).           "_timecheck".
              timecheck    ( )    .   , ,   .

       --clean
               ,   ,  ,   .

       --rmsource
                 spec-   ( ,  "rpm --rmsource foo.spec").

       --test     .     spec-.

       --sign    PGP-.        . .   PGP    PGP.

       --builroot <>
                <>     .

       --target <>
                  <>   arch-vendor-os      _target,  _target_arch
              _target_os.

       --buildarch <arch>
                  <arch> ,    .   ,  RPM 3.0     --target.

       --buildos <os>
                   <os>  ,    .   ,  RPM 3.0      --target.



            rpm:

       rpm --recompile <__>+

       rpm --rebuild <__>+

           , rpm    %prep, %build  %install.  , --rebuild    .  ,
       ,  ,    (  --clean),    spec-.


  RPM
       rpm --resign <__>+

                .      .

       rpm --addsign <__>+

                .       .


 PGP
        ,    ,  rpm     PGP   public  key  ring    RPM   .    rpm
       keyrings   PGP ( PGPPATH).    key rings   ,     PGP,


       _pgp_path
               ,   key rings.


               ,  (.  PGP).   ,


       _signature
               .      pgp.

       _pgp_name
               "", .


                --sign.            .

       ,       PGP    "John   Doe   <jdoe@foo.com>"   key  rings,
       /etc/rpm/.pgp,


       %_signature
              pgp

       %_pgp_name
              /etc/rpm/.pgp

       %_pgp_name
              John Doe <jdoe@foo.com>"


          .  /etc/rpm/macros   ~/.rpmmacros   .



             RPM  :

               rpm --rebuilddb


           :

               rpm --initdb


            , --dbpath  --root.


 RC


            rpm --showrc

        ,  rpm     ,      rpmrc.


 FTP/HTTP
       rpm    FTP  HTTP ,   .    ,        ftp  http style URL:

            ftp://<user>:<password>@hostname:<port>/path/to/pack-
       age.rpm

          <password>  ,    (     user/hostname).   <user>, <pass-
       word>  ,   anonymous ftp.    (PASV)   FTP.

       rpm    ftp URL  :


       --ftpproxy <hostname>
                <hostname>     -  ,     FTP-   firewall,        .
              _ftpproxy.


       --ftpport <port>
                TCP-,   FTP-   .          _ftpport.


       rpm    http URL  :


       --httpproxy <hostname>
                <hostname>     -  ,     HTTP-   firewall,       .
              _httpproxy.


       --httpport <port>
                TCP-,   HTTP-   .          _httpport.




       /usr/lib/rpm/rpmrc
       /etc/rpmrc
       ~/.rpmrc
       /var/state/rpm/packages
       /var/state/rpm/pathidx
       /var/state/rpm/nameidx
       /tmp/rpm*

.
       glint(t), rpm2cpio(o), http://www.rpm.org/


       Marc Ewing <marc@redhat.com>
       Jeff Johnson <jbj@redhat.com>
       Erik Troan <ewt@redhat.com>
       Sergey Kubushin <ksi@ksi-linux.com> -
                                                  KSI Linux.



KSI Linux Company            22  1999                      rpm(m)