<DIV>I have a server that interfaces RedHat network and which I configured Up2date in. Well, but I have some other server which has not configured up2date and has not an internet connection. Of course the key <FONT color=#0000ff>RPM-GPG-KEY that RPM uses to verify packages isn't installed too. So I esplicitily execute the command to import it. If the key i already installed it doesn't matter. It will tell you that it is present. If you not do that every command RPM -Fvh gives you a warning because it cannot verify the package you are installling.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV>This key is a file present on the original CD of RedHat AS V3. I simply copied it.</DIV>
<DIV> </DIV>
<DIV>Bye.</DIV>
<DIV><BR><B><I>"Fabián E. Barco" <febarco@colredes.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<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>_______________________________________________<BR>rhn-users mailing list<BR>rhn-users@redhat.com<BR>https://www.redhat.com/mailman/listinfo/rhn-users</BLOCKQUOTE><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>