<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff size=2>Should 
I execute rpm --import RPM-GPG-KEY command when I want to use rpm -F 
option?</FONT></SPAN></DIV>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff size=2>is 
RPM-GPG-KEY a file? where is it?</FONT></SPAN></DIV>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff 
size=2>thanks</FONT></SPAN></DIV>
<DIV><SPAN class=711475219-14102004><FONT face=Arial color=#0000ff 
size=2>feb.</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Mensaje original-----<BR><B>De:</B> rhn-users-bounces@redhat.com 
  [mailto:rhn-users-bounces@redhat.com]<B>En nombre de </B>Manuela Lo 
  Bosco<BR><B>Enviado el:</B> Jueves, 14 de Octubre de 2004 03:23 
  a.m.<BR><B>Para:</B> RedHat Mailing List<BR><B>Asunto:</B> [rhn-users] 
  Updating with RPM.<BR><BR></FONT></DIV>
  <DIV>
  <DIV>Some days ago I posted a message where I asked for a procedure to 
  automatically update a linux server without a connection to internet (for 
  example homed in the DMZ) etc. </DIV>
  <DIV>Well, unfortunately I didn't find any solution or tool excpet 
  up2date for the machine used to interface RedHat Network. So I used a USB 
  memory card (a CD may be used too) to store all the RPMs and a shell script to 
  do automatically the updates on the others servers. </DIV>
  <DIV> </DIV>
  <DIV>The commands I used are:</DIV>
  <DIV># Import the key to verify RPM if it is not present</DIV>
  <DIV>rpm --import RPM-GPG-KEY</DIV>
  <DIV> </DIV>
  <DIV># First update RPM resolving dependencies</DIV>
  <DIV> </DIV>
  <DIV>rpm -Fvh glibc-devel*.rpm nptl-devel-2.3.2-95*.rpm<BR>rpm -Uvh 
  elfutils-0.94*.rpm elfutils-devel*.rpm elfutils-libelf*.rpm<BR>rpm -Uvh 
  bind*.rpm<BR>rpm -Fvh httpd*.rpm mod_ssl-2.0.46-4*.rpm<BR>rpm -Fvh 
  mozilla*.rpm<BR>rpm -Uvh popt*.rpm rpm*.rpm<BR>rpm -Fvh samba*.rpm<BR>rpm -Fvh 
  kdebase*.rpm kdelibs*.rpm<BR>rpm -Fvh XFree*.rpm<BR>rpm -Fvh cyrus*.rpm<BR>rpm 
  -Fvh chkconfig*.rpm ntsysv*.rpm<BR>rpm -Fvh krb*.rpm<BR>rpm -Fvh gcc-*.rpm 
  cpp*.rpm libgcc*.rpm lib*.rpm<BR>rpm -Uvh laus-libs*.rpm<BR>rpm -Fvh 
  glibc-2*.rpm glibc-common*.rpm glibc-utils*.rpm shadow-utils*.rpm 
  laus*.rpm</DIV>
  <DIV> </DIV>
  <DIV>Then I write a loop which exec RPM -Fvh for each RPM present in the USB 
  card. If I found some error dependency I will update the instruction list 
  above.</DIV>
  <DIV> </DIV>
  <DIV>Perhaps it may be banal, however I posted hoping you will find it 
  useful.</DIV>
  <DIV> </DIV>
  <DIV>Bye.</DIV></DIV>
  <P>
  <HR SIZE=1>
  <FONT face=Arial size=2><A 
  href="http://it.rd.yahoo.com/mail/taglines/*http://it.messenger.yahoo.com"><B>Nuovo 
  Yahoo! Messenger</B></A> E' molto più divertente: Audibles, Avatar, Webcam, 
  Giochi, Rubrica… Scaricalo ora! </FONT></BLOCKQUOTE></BODY></HTML>