yum:
CentOS 與 Fedora 所常用的自動升級機制,透過 FTP 或 WWW 來進行線上升級以及線上直接安裝套件;
up2date:
這是 Red Hat 所使用的自動升級機制,需要註冊才能使用,並且依據付費與否而管制其流量;
//****************************************************************************
mount -o ro,loop /source/Enterprise-R5-U5-Server-x86_64-dvd.iso /mnt
vi /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///mnt/Server/
enabled=1
gpgcheck=0
yum repolist
yum list update
yum update
shutdown -r now
//*****************************************************************************
Oracle Linux 5
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-el5.repo
# grep -B 5 enabled=1 public-yum-el5.repo
Oracle Linux 6
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
Oracle VM 2
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ovm2.repo
Enable the appropriate repository by editing the yum configuration file
Open the yum configuration file in a text editor
Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
Change enabled=0 to enabled=1
Begin using yum, for example:
yum repolist --to show the registered channels and you see we are including everything including the latest published RPMs.
yum list
yum install firefox
//*****************************************************************************
Reference:
1. yum upgrade - OL5_u5 to OL5_u6:
http://surachartopun.com/2011/01/yum-upgrade-ol5u5-to-ol5u6.html
2.
http://husnusensoy.wordpress.com/2013/02/13/upgrade-to-oracle-enterprise-linux-5-9-andso-uek2/
Oracle Linux: Upgrade between major releases is not supported (Doc ID 821668.1)
//*****************************************************************************
Bootloader default 會找第一個 Title,可以修改 default來做指定。
[root@testdb4 grub]# pwd
/boot/grub
[root@testdb4 grub]# more grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/xvda
default=0 <== default會找第一個title
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Oracle Linux Server (2.6.18-274.el5xen)
root (hd0,0)
kernel /vmlinuz-2.6.18-274.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet numa=off
initrd /initrd-2.6.18-274.el5xen.img
title Oracle Linux Server (2.6.32-200.13.1.el5uek)
root (hd0,0)
kernel /vmlinuz-2.6.32-200.13.1.el5uek ro root=/dev/VolGroup00/LogVol00 rhgb quiet numa=off
initrd /initrd-2.6.32-200.13.1.el5uek.img
title Enterprise Linux (2.6.18-194.el5xen)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet numa=off
initrd /initrd-2.6.18-194.el5xen.img