How to use Yum package installer in linux?

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

[root@daimon ~]# umount /dev/sr0

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

[root@daimon ~]# mount /dev/sr0 /mnt/

4.Create a file to save the yum url & import the redhat dependent package
[root@daimon ~]# 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

[root@daimon ~]# yum -y install dovecot

6.check the install result

[root@daimon ~]# rpm -qa dovecot

7.delete the package

[root@daimon ~]# yum -y remove dovecot

posted on 2017-04-08 17:12  Daimon.gu 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/yongdaiblog-201409/p/6682339.html

Linux系统报错"Unable to locate package yum"时,这通常是因为系统无法找到所需的软件包。解决这个问题的步骤如下: 1. 首先,确保你的系统已经正确设置了软件源。你可以使用命令`sudo apt update`来更新软件源列表,以确保系统可以访问最新的软件包信息。 2. 如果更新软件源后仍然无法找到yum软件包,那么可能需要手动安装所需的依赖。你可以使用命令`sudo apt install yum-utils`来安装yum-utils软件包,它包含了yum命令所需的一些工具和依赖项。 请注意,yum是主要用于Red Hat系列的Linux发行版(比如CentOS和Fedora),而不是用于Debian系列的Linux发行版(比如Ubuntu)。在Debian系列的Linux上使用apt命令来管理软件包。 综上所述,要解决Linux报错"Unable to locate package yum",你可以尝试更新软件源并安装yum-utils软件包。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决linux安装yum报错 E: Unable to locate package yum](https://blog.csdn.net/weixin_36665875/article/details/129582239)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [linux安装yum报错Unable to locate package yum](https://blog.csdn.net/qq_45856525/article/details/121131212)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [docker容器调用yum报错的解决办法](https://download.csdn.net/download/weixin_38601311/12898834)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值