4つのLinuxバージョンのソフトウェアソースの設定

5953 ワード

DebianとUbuntuはaptを使用して、Fedoraはyumを使用して、Mandrivaはurpmを使用してソフトウェアソースを設定することによってオンラインでソフトウェアをインストールしたり、アップグレードしたりすることができます.DebianとUbuntuはaptを使用して、Fedoraはyumを使用してMandrivaはurpmを使用してこれらの操作を実行します.まず適切なソフトウェアソースを選択します.
Debianについては、ustcのソースを使用することを推奨します.修正/etc/ap/source.listファイルは以下の通りです.
deb http://debian.ustc.edu.cn/debian/ testing main non-free contrib 
deb http://debian.ustc.edu.cn/debian-security/ testing/updates main non-free contrib
deb http://debian.ustc.edu.cn/debian-uo/ sid marillat ustc java misc
#deb http://ftp3.tsinghua.edu.cn/mirror/debian/debian testing main non-free contrib
#deb http://ftp3.tsinghua.edu.cn/mirror/debian/debian-security testing/updates main non-free contrib
#deb http://ftp3.tsinghua.edu.cn/mirror/debian/debian-unofficial sid marillat ustc java misc
Debianのインストールプログラムは基本的なパッケージのみインストールされています.基本的なGnomeシステムをインストールするには、コマンドラインで入力できます.
apt-get install x-window-system-core gnome-core gdm xscreensaver
Ubuntuについて、Ubuntu中国語ステーションのソースを使用することを提案します.修正/etc/ap/source.listファイルは以下の通りです.
deb http://archive.ubuntu.org.cn/ubuntu dapper main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu dapper-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu dapper-updates main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu dapper-backports main universe multiverse restricted
deb http://archive.ubuntu.org.cn/ubuntu-cn dapper main universe multiverse restricted
deb http://archive.ubuntu.org.cn/ubuntu-cn breezy main universe multiverse restricted
Fedoraについては、まずyumのソフトウェアソースを修正し、比較的速い国内のミラーを使用します.以下の修正/etc/yum.repos.dディレクトリの下のfedora-corepo、fedora-extres.repoとfedora-udates.repoのこれらのファイルによって:
#/etc/yum.repos.d/fedora-core.repo
[core]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#baseurl=http://mirrors.geekbone.org/fedora/core/$releasever/$basearch/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
#/etc/yum.repos.d/fedora-extras.repo
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
#baseurl=http://mirrors.geekbone.org/fedora/extras/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
#/etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch
#baseurl=http://mirrors.geekbone.org/fedora/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
次にfreshrpmsというソフトウェアソースを加えることを提案する(このソースはmp 3プラグイン、Mplayer、BmpX、aMule、unrarなどを含む).まずrootユーザで以下のコマンド導入鍵を実行します.
rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms
そして/etc/yum.repos.dディレクトリにfreshrpms.repoファイルを作成します.内容は以下の通りです.
[freshrpms]
name=Fedora Core $releasever - $basearch - Freshrpms
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/ayo.freshrpms.net/pub/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
#mirrorlist=http://ayo.freshrpms.net/fedora/linux/$releasever/mirrors-freshrpms
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
最後にlivnaというソフトウェアソースを加えることを提案します.(このソースはMP 3プラグイン、Mplayer、Totem-xine、NTFSプラグインなどを含みます.)まずrootユーザで以下のコマンド導入鍵を実行します.
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
そして/etc/yum.repos.dディレクトリにlivna.repoファイルを作成します.内容は以下の通りです.
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/$basearch/
http://rpm.livna.org/fedora/$releasever/$basearch/
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-5
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-LIVNA-GPG-KEY

Mandrivaに対して、Mandriva国内のミラーのソースを使って、コンソールに下記のコマンドラインを入力することを提案します.
> /etc/urpmi/urpmi.cfg
rm -rf /var/lib/urpmi/*
urpmi.addmedia --distrib ftp://202.38.75.11/FreeOS/MandrivaLinux/official/2006.0/i586/
urpmi.addmedia updates ftp://202.38.75.11/FreeOS/MandrivaLinux/official/updates/2006.0/main_updates/
urpmi.addmedia plf-free ftp://[email protected]/plf/free/2006.0/
urpmi.addmedia plf-non-free ftp://[email protected]/plf/non-free/2006.0/
参考資料
  • Debian Linux中国科大駅
  • Ubuntu Linux中国語ステーション
  • GeekBone Linux鏡像ステーション
  • Mandriva Linux中文鏡像ステーション
  • 清華FTP 3ソフトウェアミラーリングステーション