Yum -userguide

Posted Daimon.gu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Yum -userguide相关的知识,希望对你有一定的参考价值。

Introduction

Yum(Yellow dog Updater, Modified) is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.More information can be refers to the website http://yum.baseurl.org/

 

 

Configuration on the Redhat OS

1.Plugged in the OS Image DVD to the SUT ODD

2.Umount the OS image from the directory /dev/sr0

[[email protected] ~]# umount /dev/sr0

3.Mount the OS image to the directory /dev/sr0 /mnt

[[email protected] ~]# mount /dev/sr0 /mnt/

4.Create a file to save the yum url & import the redhat dependent package
[[email protected] ~]# vim /etc/yum.repos.d/dvd.repo

[testyum]
name=dvd
baseurl=file:///mnt
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gdp/RPM-GPG-KEY-redhat-release

5.Test yum

[[email protected] ~]# yum -y install dovecot

6.check the install result

[[email protected] ~]# rpm -qa dovecot

7.delete the package

[[email protected] ~]# yum -y remove dovecot

以上是关于Yum -userguide的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 如何搭建本地和局域网yum源

RHEL / CentOS 配置YUM源 及YUM介绍

Linux中yum yum yum

CentOS-7.5 更换清华大学 yum 源

centos 7 常用yum源配置

centos7 怎么配置yum 163的源