创建配置格式文件的格式 C语言源代码安装三步骤 yum

创建配置文件的格式:

[base]

name= centos cdrom

mirrorlist=file:///root/baselist

gpgkey=file:///mnt/cdrom/rpm-gpg-key-centos-7

 

 

[epel]

name=epel

baseurl=https://mirrors aliyun.com/epel/7/×86_641

gpgcheck=0

enabled=0

 

C语言源代码安装三步骤

1、./configure

2、make

3、make install

 

 

 

yum
CentOS: yum, dnf
YUM: Yellowdog Update Modifier,rpm的前端程序,可解决软件包相关依赖性,可在多个库之间定位软件包,up2date的替代工具
yum repository: yum repo,存储了众多rpm包,以及包的相关的元数据文件(放置于特定目录repodata下)
文件服务器:
http://
https://
ftp://
file://
yum配置文件
yum客户端配置文件:
/etc/yum.conf:为所有仓库提供公共配置
/etc/yum.repos.d/*.repo:为仓库的指向提供配置
仓库指向的定义:
[repositoryID]
name=Some name for this repository
baseurl=url://path/to/repository/
enabled={1|0}
gpgcheck={1|0}
gpgkey=URL
enablegroups={1|0}
failovermethod={roundrobin|priority}
roundrobin:意为随机挑选,默认值
priority:按顺序访问
cost= 默认为1000
yum仓库
yum的repo配置文件中可用的变量:
$releasever: 当前OS的发行版的主版本号
$arch: 平台,i386,i486,i586,x86_64等
$basearch:基础平台;i386, x86_64
$YUM0-$YUM9:自定义变量
 实例:
http://server/centos/$releasever/$basearch/
yum源
 阿里云repo文件:
CentOS系统的yum源
 阿里云:https://mirrors.aliyun.com/centos/$releasever/os/x86_64/
 教学环境: http://172.20.0.1/cobbler/ks_mirror/$releasever/
EPEL的yum源:
 阿里云: https://mirrors.aliyun.com/epel/$releasever/x86_64
 教学环境: http://172.20.0.1/fedora-epel/$releasever/x86_64/
 生成172.16.0.1_cobbler_ks_mirror_CentOS-X-x86_64_.repo
yum-config-manager –add-repo= http://172.16.0.1/cobbler/ks_mirror/7/
yum-config-manager –disable “仓库名” 禁用仓库
yum-config-manager –enable “仓库名” 启用仓库
yum命令
yum命令的用法:
yum [options] [command] [package …]
 显示仓库列表:
yum repolist [all|enabled|disabled]
 显示程序包:
yum list
yum list [all | glob_exp1] [glob_exp2] […]
yum list {available|installed|updates} [glob_exp1] […]
 安装程序包:
yum install package1 [package2] […]
yum reinstall package1 [package2] […] (重新安装

本文来自投稿,不代表Linux运维部落立场,如若转载,请注明出处:http://www.178linux.com/96789

(1)
你的命字你的命字
上一篇 2018-04-22 15:55
下一篇 2018-04-22 15:58

相关推荐

  • Linux文件系统简介

    “一切皆是文件”是Linux基本哲学思想之一,可见文件系统在linux系统中的重要性,学好文件系统将为以后深入研究与学习Linux系统奠定良好的基础。

    2018-03-30
  • 配置yum源

    配置yum源

    2018-04-23
  • 无题()

    周志

    Linux笔记 2018-06-01
  • 自制mini的Linux系统

    如何打造一个小的Linux系统。这个可以当做一个很简单的启动盘,并使它能够成功启动且能有简单的shell环境。

    Linux笔记 2018-05-11
  • 正则表达式

    Linux文本处理三剑客 *************************************************grep:文本过滤(pattern模式)工具 grep egrep fgrepsed:stream editor,文本编辑工具awk:Linux上的实现gawk,文本报告生成器 *****************************…

    Linux笔记 2018-04-07
  • 简述osi七层模型和TCP/IP五层模型

        OSI七层模型各层定义 物理层:提供为建立、维护和拆除物理链路所需要的机械的、电气的、功能的和规程的特性;有关的物理链路上传输非结构的位流以及故障检测指示。 数据链路层:在网络层实体间提供数据发送和接收的功能和过程;提供数据链路的流控。 网络层:控制分组传送系统的操作、路由选择、拥护控制、网络互连等功能,它的作用是将具体的物理传送…

    2018-06-15