使用apt更新套件
安裝 Fedora Core、freshrpms 的 GPG KEY :
rpm –import /usr/share/doc/fedora-release-3/RPM-GPG-KEY-fedora
rpm –import ftp://apt.nc.hcc.edu.tw/pub/freshrpms/RPM-GPG-KEY
註:裝了 Fedora Core、freshrpms 的 GPG key 之後,在安裝他們維護的 rpm 的時候才不會出現警告訊息,若不在乎這些訊息,沒有安裝也是沒有關係的
更新套件(使用 apt)
[Fc3]
rpm -ivh ftp://apt.nc.hcc.edu.tw/pub/apt/fedora/linux/3/i386/RPMS.extra/apt-0.5.15cnc6-1.1.fc3.hcc.i386.rpm
apt-get update
apt-get -y dist-upgrade
例子:
# apt-get update gtksourceview-1.2.0-1.1.fc3.nr.i386.rpm
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be upgraded
gtksourceview
1 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/356kB of archives.
After unpacking 474kB of additional disk space will be used.
Committing changes...
Preparing... ########################### [100%] 1:gtksourceview ########################### [100%] Done.
升級核心
uname -r
apt-get install kernel
apt-get install kernel#2.6.10-1.741_FC3
#請安裝最新版本的核心
#過程有點久,耐心等候
rpm -qa | grep kernel
vi /etc/grub.conf
default=0
timeout=5
reboot(或 init 6)
====================================
apt 介紹
vi /etc/apt/sources.list
apt-get update
apt-get dist-upgrade
apt-get install xxx
apt-get remove xxx
apt-get clean(/var/cache/apt/archives)
apt-cache search xxx
================================