linux默认软件源,不同版本的Linux操作系统下软件源设置有哪些呢?

这四个Linux版本都可以通过设置软件源而在线安装或升级软件。Debian和Ubuntu使用apt,Fedora使用yum而Mandriva使用urpm来执行这些操作。首先得选择合适的软件源。

对于Debian,建议使用ustc的源,修改/etc/apt/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 contribdeb 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-securitytesting/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/apt/source。

list文件如下:

deb http://archive。ubuntu。org。cn/ubuntu dapper main restricted universe multiversedeb http://archive。ubuntu。org。

cn/ubuntu dapper-security main restricted universe multiversedeb http://archive。ubuntu。org。cn/ubuntu dapper-updates main restricted universe multiversedeb http://archive。

ubuntu。org。cn/ubuntu dapper-backports main universe multiverse restricteddeb http://archive。ubuntu。org。cn/ubuntu-cn dapper main universe multiverse restricteddeb http://archive。

ubuntu。org。cn/ubuntu-cn breezy main universe multiverse restricted

对于Fedora,首先修改yum的软件源,使用速度比较快的国内镜像。按照以下修改/etc/yum。repos。

d目录的下面fedora-core。repo,fedora-extras。repo和fedora-updates。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-$releaseverenabled=1gpgcheck=1gpgkey=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-$releaseverenabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extrasgpgcheck=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$releaseverenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

然后建议加上freshrpms这个软件源(这个源包括了mp3插件,Mplayer,BmpX,aMule,unrar等等)。

首先以root用户运行如下命令导入密钥:

rpm ——import http://freshrpms。net/RPM-GPG-KEY-freshrpms。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值