Software source settings in different versions of Linux

Source: Internet
Author: User
Tags free ftp
Article Title: software source settings in different versions of Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. These four Linux versions can install or upgrade software online by setting software sources. Debian and Ubuntu use apt, Fedora uses yum, and Mandriva uses urpm to perform these operations. First, select the appropriate software source.
 
For Debian, we recommend that you use the ustc source to modify the/etc/apt/source. list file as follows:
 
  

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


 
The Debian installer only installs the basic software package. to install the basic Gnome system, run the following command:
 
Apt-get install x-window-system-core gnome-core running Agent xscreensaver
 
For Ubuntu, we recommend that you use the Ubuntu Chinese site source. Modify the/etc/apt/source. list file as follows:
 
  

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


 
For Fedora, first modify the yum software source to use domestic images that are faster. The following fedora-core.repo, fedora-extras.repo, and fedora-updates.repo files under the/etc/yum. repos. d directory are modified as follows:
 
  

#/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


 
We recommend that you add the freshrpms software source (which includes mp3 plug-ins, Mplayer, bmp x, aMule, unrar, and so on ). First, run the following command as the root user to import the key:
 
Rpm -- import http://freshrpms.net/RPM-GPG-KEY-freshrpms
 
Create a new freshrpms. repo file in the/etc/yum. repos. d directory. The content is as follows:
 
  

[freshrpms]name=Fedora Core $releasever - $basearch - Freshrpmsbaseurl=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-freshrpmsenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms


 
We recommend that you add the livna software source (which includes MP3 plug-ins, Mplayer, Totem-xine, NTFS plug-ins, and so on ). First, run the following command as the root user to import the key:
 
Rpm -- import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
 
Create a livna. repo file in the/etc/yum. repos. d directory. The content is as follows:
 
  

[livna]name=Livna for Fedora Core $releasever - $basearch - Basebaseurl=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-5enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-LIVNA-GPG-KEY


 
For Mandriva, it is recommended to use the source of the domestic image of Mandriva. In the console, enter the following command line:
 
  

/etc/urpmi/urpmi.cfgrm -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://cooker@mirror.mandrakelinux.cn/plf/free/2006.0/urpmi.addmedia plf-non-free ftp://cooker@mirror.mandrakelinux.cn/plf/non-free/2006.0/


 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.