[rhn-users] Updating with RPM.

Manuela Lo Bosco lin77sys at yahoo.it
Fri Oct 15 06:18:30 UTC 2004


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 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.
 
This key is a file present on the original CD of RedHat AS V3. I simply copied it.
 
Bye.

"Fabián E. Barco" <febarco at colredes.com> wrote:
Hi,
Should I execute rpm --import RPM-GPG-KEY command when I want to use rpm -F option?
is RPM-GPG-KEY a file? where is it?
 
thanks
feb.
-----Mensaje original-----
De: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]En nombre de Manuela Lo Bosco
Enviado el: Jueves, 14 de Octubre de 2004 03:23 a.m.
Para: RedHat Mailing List
Asunto: [rhn-users] Updating with RPM.


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. 
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. 
 
The commands I used are:
# Import the key to verify RPM if it is not present
rpm --import RPM-GPG-KEY
 
# First update RPM resolving dependencies
 
rpm -Fvh glibc-devel*.rpm nptl-devel-2.3.2-95*.rpm
rpm -Uvh elfutils-0.94*.rpm elfutils-devel*.rpm elfutils-libelf*.rpm
rpm -Uvh bind*.rpm
rpm -Fvh httpd*.rpm mod_ssl-2.0.46-4*.rpm
rpm -Fvh mozilla*.rpm
rpm -Uvh popt*.rpm rpm*.rpm
rpm -Fvh samba*.rpm
rpm -Fvh kdebase*.rpm kdelibs*.rpm
rpm -Fvh XFree*.rpm
rpm -Fvh cyrus*.rpm
rpm -Fvh chkconfig*.rpm ntsysv*.rpm
rpm -Fvh krb*.rpm
rpm -Fvh gcc-*.rpm cpp*.rpm libgcc*.rpm lib*.rpm
rpm -Uvh laus-libs*.rpm
rpm -Fvh glibc-2*.rpm glibc-common*.rpm glibc-utils*.rpm shadow-utils*.rpm laus*.rpm
 
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.
 
Perhaps it may be banal, however I posted hoping you will find it useful.
 
Bye.



---------------------------------
Nuovo Yahoo! Messenger E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
 Scaricalo ora! _______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users
				
---------------------------------
Nuovo Yahoo! Messenger E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
 Scaricalo ora! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20041015/1ccdc38f/attachment.htm>


More information about the rhn-users mailing list