linux本地源的配置(linux本地源)-编程之家

centos7安装过程怎么设置本地安装源?

安装过程不用设置安装源,系统光盘安装就是了安装完成后,可以将系统盘设为yum源:mount /dev/cdrom /mntvi /etc/yum.repos.d/cdrom.repo内容:name=Red Hat Enterprise Linux $releaserver – $basearch – Sourcebaseurl=file:///mntenabled=1gpgcheck=0

如何设置Linux最快的更新源?

我一般是通过命令获取的:

#sudo apt-get update

而/etc/apt/sources.list这个文件中是一个指示apt程序到哪里去获取资源的资源列表文件。apt-get update之后的内容不会反应在这里。另外,apt-get update只是更新了apt的资源列表,没有真正的对系统执行更新。如果需要,要使用apt-get upgrade来更新。

这个英文短文就是一些关于这个命令的说明,可以查看一下

Syncking with Repository After saving your sources.list file, we first want to update our local database so that it’s in sync with Debian’s sources:

apt-get updateThe output will show apt-get downloading the information from Debian’s servers and then syncking its own database. Your output should look something like this:

linuxhelp.net:~# apt-get updateGet:1 ftp://ftp.debian.org testing/main Packages Get:2 http://security.debian.org stable/updates/main Packages Get:3 http://security.debian.org stable/updates/main Release Get:4 ftp://ftp.debian.org testing/main Release Get:5ftp://ftp.debian.org testing/main Sources Get:6 ftp://ftp.debian.org testing/main Release Fetched 4744kB in 2m40s (29.5kB/s)Reading Package Lists… Donelinuxhelp.net:~#

linux系统装好后怎么更新源?

Linux软件源的设置方法

1 打开数据源配置文件

vi /etc/apt/sources.list

添加相关的数据源,可以选择以下的数据源,不要写太多,否则会影响更新速度。

之后使用apt-get update更新源列表

为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。

#######################################

# 163

#######################################

deb http://mirrors.163.com/debian/ lenny main contrib non-free

deb-src http://mirrors.163.com/debian lenny main contrib non-free

deb http://mirrors.163.com/debian-security/ stable/updates main

deb-src http://mirrors.163.com/debian-security/ stable/updates main

#######################################

# official

#######################################

deb http://ftp.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ stable/updates main

deb-src http://security.debian.org/ stable/updates main

deb http://volatile.debian.org/debian-volatile stable/volatile main

deb-src http://volatile.debian.org/debian-volatile stable/volatile main

#######################################

# 台湾及大陆教育网高校等

#######################################

deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free

deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free

deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free

deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

### ustc debian-multimedia

deb http://debian.ustc.edu.cn/debian-multimedia/ stable main

deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main

### ustc debian-security

deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

台湾及大陆教育网高校等

#######################################

deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free

deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free

deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free

deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free

deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free

deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free

### ustc debian-multimedia

deb http://debian.ustc.edu.cn/debian-multimedia/ stable main

deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main

### ustc debian-security

deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib