linux源的配置如何更新
发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,本篇内容介绍了"linux源的配置如何更新"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!Ubuntu
千家信息网最后更新 2025年02月03日linux源的配置如何更新
本篇内容介绍了"linux源的配置如何更新"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
Ubuntu 首先编辑sources.list这个文件
vi /etc/apt/sources.list
把sources.list文件内容替换成如下
deb http://mirrors.aliyun.com/debian wheezy main contrib non-freedeb-src http://mirrors.aliyun.com/debian wheezy main contrib non-freedeb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-freedeb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-freedeb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-freedeb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
接下来执行以下命令,就完成阿里云kali linux镜像源了
apt-get update
Centos
修改CentOS默认yum源为mirrors.aliyun.com
1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载ailiyun的yum源配置文件到/etc/yum.repos.d/ CentOS7
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
CentOS6
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS5
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
3、运行yum makecache生成缓存
[root@localhost ~]# yum makecache
4、这时候再更新系统就会看到以下mirrors.aliyun.com信息
[root@localhost ~]# yum -y update
已加载插件:fastestmirror, refresh-packagekit, security
设置更新进程Loading mirror speeds from cached hostfile
base: mirrors.aliyun.com
extras: mirrors.aliyun.com
updates: mirrors.aliyun.com
"linux源的配置如何更新"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!
更新
配置
文件
内容
接下来
更多
知识
系统
实用
学有所成
信息
命令
困境
备份
实际
情况
插件
文章
案例
缓存
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
电脑软件开发病毒
数据库事务状态转换条件
软件开发优秀简历怎么写
公务员信息数据库的作用
锐起辅服务器管理器
新时代网络技术的主要特点
浪潮服务器面板指示灯
工资管理系统数据库设计分析
软件开发 基线
北京网络安全技术峰会视频
服务器管理器怎么分区
收费站机电网络安全培训
关注月被关注 数据库设计
软件开发中的原理
软件开发新用户需要学什么
服务器没有从远端服务器
无锡市网络安全等级保护
杭州提供分布式存储服务器
格来云服务器停运
中国科学引文数据库是几级文献
广西电信集团网络安全
steam手机服务器连接异常
ps4 服务器会关闭吗
计算机网络技术期末答案
移动网络安全是什么
上海互联网教育科技经验丰富
606服务器播放日韩黄色
怎样测试数据库端口是否通
web软件开发培训班
数据库有几个表就有几个实体图吗