How to Ensure Red Hat GPG Key is Installed.
To ensure that the system can cryptographically verify update packages (and also connect to the Red Hat Network to receive them if desired), run the following command to ensure that the system has the Red Hat GPG key properly installed:
Example below shows on a Centos Server.
[centos@mail ~]$ rpm -q –queryformat “%{SUMMARY}\n” gpg-pubkey
gpg(CentOS-6 Key (CentOS 6 Official Signing Key) )
gpg(Dag Wieers (Dag Apt Repository v1.0) )
[centos@mail ~]$
The command should return the string: gpg(Red Hat, Inc. (release key ) for redhat systems.
How can I backup a currently installed RPM
–repackage Re-package the files before erasing.
The previously installed package will be named according to the macro %_repackage_name_fmt and will be created in the directory named by the macro %_repackage_dir (default value is /var/spool/repackage).
–replacefiles
Install the packages even if they replace files from other, already installed, packages.
–replacepkgs
Install the packages even if some of them are already installed on this system.
Once the package has been downloaded, install it with the –repackage option.
This will create an RPM from the existing package and install the new one.
rpm -Fvh –repackage rpm-file-name.rpm
Verifying Installed Packages
Over the course of a system’s normal usage, files get changed. This could be as innocent as simply changing a configuration file in the /etc directory or as problematic as a file being corrupted by a power failure. To assist in the detection of these changes, RPM allows users and administrators to verify the integrity of an installed package.
The command
or
Will verify all installed packages. RPM then computes the MD5 checksum of all files on the disk and compares them to the stored MD5 sums from the original RPMs. The output of the command is a line indicating any files that differ from the versions that were originally installed and a code indicating how the file has changed.
Make sure you do not install services such as Apache, PHP, MySQL, Ftp, Sendmail, etc., as this is done by DirectAdmin. All that is needed is a CLEAN install of the operating system.
DirectAdmin Control Panel Software
Apache 1.3, 2.0, 2.2 Web Server
FrontPage 5.0.2.2510 Microsoft FrontPageā¢ Extensions (apache 1.3 only)
Php 4.4 and/or 5.2 Php Scripting Language (CLI, or suPhp(cgi))
PhpMyAdmin MySQL Database Manager
MySQL 4.1/5.0 MySQL Databases
Exim 4 Exim Mail Manager
Majordomo 1.94.5 Majordomo Mailing List Manager
vm-pop3d 1.1.7f POP3 Mail Manager
WU-IMAP Imap daemon (with virtual pop modifications)
Dovecot Install option to replace vm-pop3d/wu-imapd. Uses Maildir instead of mbox
Proftpd 1.3 FTP Server