RHEL/Fedora Specific

From Notes

Jump to: navigation, search

Contents

Setting the hostname

Edit /etc/sysconfig/network and replace the existing hostname with the new hostname:

#/etc/sysconfig/network

NETWORKING=yes 
HOSTNAME=hostname.com

You must also set it with sysctl if you don't reboot:

sysctl -a | grep <hostname>

Rebuilding the intird

new-kernel-pkg --mkinitrd --depmod --install 2.4.21-47.0.1.EL


Configuring yum.conf

Note that the repository configurations are stored in /etc/yum.repos.d/


yum Issues

After updating a few packages on a VM FC5 system, I was then unable to use yum since a few of the repo config files had been modificed to include a '#' in front of the URL. This prevented yum from running. I think this was an attempt to get me to use a local mirror. Until I am able to get a local mirror configured, I have removed the '#' from the config files and yum works.

Personal tools