Linux software source settings

Source: Internet
Author: User
Linux system software source settings-general Linux technology-Linux technology and application information, the following is a detailed description. These four Linux versions can install or upgrade software online by setting the software source. 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 contrib
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

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:

Http://archive.ubuntu.org.cn/ubuntu dapper main restricted universe multiverse
Deb http://archive.ubuntu.org.cn/ubuntu dapper-security main restricted universe multiverse
Dapper-updates main restricted universe multiverse
Deb http://archive.ubuntu.org.cn/ubuntu dapper-backports main universe multiverse restricted
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

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 = Signature/
# Baseurl = http://mirrors.geekbone.org/fedora/core/?releasever/?basearch/ OS/
# Define list = 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 = Signature/
# Baseurl = http://mirrors.geekbone.org/fedora/extras/?releasever/?basearch/
# Define list = 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 = Signature
# Baseurl = http://mirrors.geekbone.org/fedora/core/updates/?releasever/#basearch/
# Define list = http://fedora.redhat.com/download/mirrors/updates-released-fc1_releasever
Enabled = 1
Gpgcheck = 1
Gpgkey = 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-Freshrpms
Baseurl = Signature/
# Baseurl = http://ayo.freshrpms.net/fedora/linux/?releasever/?basearch/freshrpms/
# Define list = http://ayo.freshrpms.net/fedora/linux/?releasever/mirrors-freshrpms
Enabled = 1
Gpgcheck = 1
Gpgkey = 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-Base
Baseurl =
Ftp://ftp3.tsinghua.edu.cn/#/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/
Bytes/
Failovermethod = priority
# Items list = http://rpm.livna.org/mirrorlist-5
Enabled = 0
Gpgcheck = 1
Gpgkey = 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. 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: /// cooker@mirror.mandrakelinux.cn/plf/free/2006.0/
Urpmi. addmedia plf-non-free ftp: // cooker@mirror.mandrakelinux.cn/plf/non-free/2006.0/

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.