[rhn-users] Updating with RPM.
Fabián E. Barco
febarco at colredes.com
Thu Oct 14 19:55:28 UTC 2004
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20041014/a65542b8/attachment.htm>
More information about the rhn-users
mailing list