RedHat

From AdminWiki

(Difference between revisions)
Jump to: navigation, search
(Installing Kernels)
(+osinstall)
Line 22: Line 22:
FIXME: tell about setting up non-root rpmbuild
FIXME: tell about setting up non-root rpmbuild
 +
 +
= OS Installation =
= Useful Links =
= Useful Links =
* [http://www.akadia.com/services/redhat_static_routes.html Setting up Static Routes on Redhat, past and present]
* [http://www.akadia.com/services/redhat_static_routes.html Setting up Static Routes on Redhat, past and present]

Revision as of 14:11, 10 June 2006

Contents

Package Management

The current choices for installing RPMs are: (listed by convience)

  • rpm --install: can only install a single remote rpm
  • up2date: you probably need an RedHat EL subscription
  • yum: the better up2date, still terrible to use
  • apt: ported from Debian, lastly a tool which does it right

Useful options to rpm are -vh, which give you verbose output and a progress bar when doing package installation/removal.

Installing Kernels

If you install a kernel using one of the tools above, better check /boot and /etc/grub.conf afterwards. At present, updating these files is job of the package manager, and not of the kernel rpm postinst script. Of course, all tools have implemented this differently and you simply can't rely on it to work.

Also, always install kernels (rpm -ivh) instead of updating (rpm -Uvh) them. Updating will not preserve the old version ...

Building your own RPMs

Never build RPMs as root. Spec files are free to specify any command they want, and can leave files around in your /-filesystem or, even worse, cause real damage to your installation. If you must build as root, better do it on a machine which you can reinstall/reimage quickly.

rpmbuild --rebuild foo.src.rpm is the command of your choice. If you have a spec file instead, try with rpmbuild -ba foo.spec.

FIXME: tell about setting up non-root rpmbuild

OS Installation

Useful Links

Personal tools