<div>A different possible approach: Supposedly this command will forcibly reinstall a package from an rpm file, replacing any accidentally deleted files:</div><div><br></div><div>rpm -U --force <package.rpm></div><div>
<br></div><div>I found a forum post that suggests that the "yum-utils" package includes a "package-cleanup" command that will do this without making you manually track down the rpm files.</div><div><br>
</div><div>YMMV; I'm more of a Debian guy. I happen to have a Red Hat system here at work where I can pull up man pages, but I don't have root access to test anything out (or install yum-utils).</div><div><br></div>
<br clear="all">William Tracy<br>Work: <a href="mailto:wtracy@cisco.com">wtracy@cisco.com</a><br>Play: <a href="mailto:afishionado@gmail.com">afishionado@gmail.com</a><br>Cell phone: (805) 704-0917<br>Internet phone: (707) 206-6441<br>
<br><br><div class="gmail_quote">On Thu, Mar 17, 2011 at 12:57 PM, Todd Cary <span dir="ltr"><<a href="mailto:todd@aristesoftware.com">todd@aristesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Scott -<br>
<br>
Again thank you for the assistance, and my delays in getting back is due to being "in the field" frequently.<br>
<br>
I can afford to have the server down for a period of time since it is mainly for FTP, testing PHP and displaying images for clients.<br>
<br>
Do I include the EL in the symbolic link as in<br>
vmlinuz -> vmlinuz-2.6.9-100.EL<br>
<br>
Todd<br>
<br>
# grub.conf generated by anaconda<br>
#<br>
# Note that you do not have to rerun grub after making changes to this file<br>
# NOTICE: You have a /boot partition. This means that<br>
# all kernel and initrd paths are relative to /boot/, eg.<br>
# root (hd0,0)<br>
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00<br>
# initrd /initrd-version.img<br>
#boot=/dev/hdc<br>
default=0<br>
timeout=5<br>
splashimage=(hd0,0)/grub/splash.xpm.gz<br>
hiddenmenu<br>
title CentOS (2.6.9-100.EL)<br>
root (hd0,0)<br>
kernel /vmlinuz-2.6.9-100.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet<br>
initrd /initrd-2.6.9-100.EL.img<br><font color="#888888">
<br>
Todd</font><div><div></div><div class="h5"><br>
<br>
On 3/17/2011 12:01 AM, Scott Doty wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03/16/2011 04:58 PM, Todd Cary wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Scott -<br>
<br>
Yup...I was not paying attention to the link syntax - I do know better :-).<br>
<br>
On the advice of others in the Centos forum, I did the following:<br>
<br>
rpm -Uvh --replacepkgs --replacefiles kernel-2.6.9-100.EL.i686.rpm redhat-logos-1.1.26-1.centos4.4.noarch.rpm grub-0.95-3.8.i386.rpm<br>
<br>
So now I have the following in the /boot/ directory:<br>
<br>
drwxr-xr-x 5 root root 9216 Mar 9 10:31 .<br>
drwxr-xr-x 24 root root 4096 Jan 24 08:34 ..<br>
-rw-r--r-- 1 root root 51676 Feb 17 22:41 config-2.6.9-100.EL<br>
drwxr-xr-x 2 root root 1024 Mar 9 10:31 grub<br>
-rw-r--r-- 1 root root 444812 May 5 2007 grub-0.95-3.8.i386.rpm<br>
-rw-r--r-- 1 root root 1343054 Mar 9 10:29<br>
initrd-2.6.9-100.EL.img<br>
-rw-r--r-- 1 root root 13409764 Feb 18 06:25<br>
kernel-2.6.9-100.EL.i686.rpm<br>
drwx------ 2 root root 12288 Jan 12 2007 lost+found<br>
-rw-r--r-- 1 root root 9371 Aug 12 2006 message<br>
-rw-r--r-- 1 root root 9371 Aug 12 2006 message.ja<br>
-rw-r--r-- 1 root root 7919724 Aug 13 2006<br>
redhat-logos-1.1.26-1.centos4.4.noarch.rpm<br>
-rw-r--r-- 1 root root 67797 Feb 17 22:41<br>
symvers-2.6.9-100.EL.gz<br>
-rw-r--r-- 1 root root 770652 Feb 17 22:41<br>
System.map-2.6.9-100.EL<br>
drwx------ 2 root root 9216 Mar 9 10:03 .Trash-root<br>
-rw-r--r-- 1 root root 1538264 Feb 17 22:41 vmlinuz-2.6.9-100.EL<br>
<br>
I am not sure of what to have the symbolic link for vmlinuz point to; vmlinuz-2.6.9-100???<br>
<br>
</blockquote>
<br>
That looks correct. but check grub.conf to make sure the kernel file you're trying to boot is the correct one.<br>
<br>
Also, remember that it will look a little funny, if you have a separate /boot partition -- the filenames will be in the "root" directory, like this:<br>
<br>
title Fedora (2.6.35.10-74.fc14.x86_64)<br>
root (hd0,0)<br>
kernel /vmlinuz-2.6.35.10-74.fc14.x86_64 ro root=UUID=69effc7d-ef6e-4982-9bdc-2f3bea9e056e rhgb quiet SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us selinux=0<br>
initrd /initramfs-2.6.35.10-74.fc14.x86_64.img<br>
<br>
It's the kernel line I'm referring to, it will be "/vmlinuz-..." instead of "/boot/vmlinuz-..." -- but _only_ if /boot is a separate partition.<br>
<br>
Quick question -- if it _doesn't_ boot, can you afford for this system to be down until it can be fixed?<br>
<br>
-Scott<br>
<br>
<br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@nblug.org" target="_blank">talk@nblug.org</a><br>
<a href="http://nblug.org/cgi-bin/mailman/listinfo/talk" target="_blank">http://nblug.org/cgi-bin/mailman/listinfo/talk</a><br>
<br>
<br>
</blockquote>
<br></div></div><div class="im">
-- <br>
Ariste Software<br>
Petaluma, CA 94952<br>
<br>
<a href="http://www.aristesoftware.com" target="_blank">http://www.aristesoftware.com</a><br>
<br>
<br>
_______________________________________________<br></div><div><div></div><div class="h5">
talk mailing list<br>
<a href="mailto:talk@nblug.org" target="_blank">talk@nblug.org</a><br>
<a href="http://nblug.org/cgi-bin/mailman/listinfo/talk" target="_blank">http://nblug.org/cgi-bin/mailman/listinfo/talk</a><br>
</div></div></blockquote></div><br>