Wednesday, October 26, 2005

Updating a new dedicated server

On a new server, when running rhn_register for first time, you will get the message

Your Update Agent options specify that you want to use GPG.


To fix this, run:

rpm --import /usr/share/rhn/RPM-GPG-KEY



display a list of all keys installed for RPM verification


rpm -qa gpg-pubkey*
#output follows
gpg-pubkey-db42a60e-37ea5438


Get more information about a key


Name : gpg-pubkey Relocations: (not relocatable)
Version : db42a60e Vendor: (none)
Release : 37ea5438 Build Date: ... CDT
......
Group : Public Keys Source RPM: (none)
Size : 0 License: pubkey
Signature : (none)
Summary : gpg(.... <....>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
.....................
-----END PGP PUBLIC KEY BLOCK-----




Verify all RPM packages that you have previously downloaded:


rpm -K /tmp/updates/*.rpm


Install all downloaded packages


rpm -Uvh /tmp/updates/*.rpm


to install the key, run the following as root:



Find which applications link against a particular library -all the running programs which use TCP wrappers for host access control. The output of this command includes programs that "must be halted and relaunched if the tcp_wrappers package is updated."


lsof /usr/lib/libwrap.so*


Restart SysV Services: SysV services include sshd, vsftpd, and xinetd. Persistent server programs launched during the boot are called SysV Services


/sbin/service <service-name> restart


xinetd


Services controlled by inetd on a Linux server include: Telnet, IMAP, and POP3. they are serviced by the older version of the software. If there are connections opened at time of RPM upgrade for your Linux computer, they will be serviced by the older version of the software until you kill the existing process and restart services so the updated software can be used.





View all IMAP processes:


CODE:
ps -aux | grep imap


P


CODE:


P


CODE:


P


CODE:


P


CODE:


P


CODE:


P


CODE:

0 Comments:

Post a Comment

<< Home