Yum

#简介
Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装


#教程
http://www.runoob.com/linux/linux-yum.html


#yum镜像源更改
http://blog.csdn.net/inslow/article/details/54177191


1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup


2、下载ailiyun的yum源配置文件到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo


3、运行yum makecache生成缓存
yum makecache








#CentOS 7 升级Python到3.5后,yum,和gnome-twear-tool 出现的问题
#/usr/libexec/urlgrabber-ext-down", line 28     except OSError, e:
vi /usr/libexec/urlgrabber-ext-down 修改python 为python2.7




使用yum或rpm方式安装文件默认在/etc目录下




#wget安装方式
yum -y install wget




#安装lsof
yum install lsof


#安装netstat
yum install net-tools
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值